In an ever moving world, the data can make or break a company, but the late or incorrect data will most definitely be the demise of the company, we decided to give you an insight into how you can integrate your external systems into BYD.
What is SOAP?
SOAP (Simple Object Access Protocol) is a messaging protocol that allows programs that run on disparate operating systems (such as Windows and Linux) to communicate using Hypertext Transfer Protocol (HTTP) and its Extensible Markup Language (XML).
- You have opened a solution in the studio.
- You have saved the WSDL file or Endpoint URL of the Web service that you want to integrate into your solution on your local computer.
Current weather and weather conditions for major cities around the world.
- In the Solution Explorer, right-click your solution and select Add New Item.
(The Add New Item dialog opens.)
- Select SAP Service Integration External Web Service Integration and click Add.
- The External Web Service Integration Wizard opens.
- In the Enter Web Service Name and Type step, enter a name for the Web service and select SOAP.
- Click Next.
- In the Import WSDL File Documents step, do the following:
- Select the WSDL file or enter Endpoint of the Web service that you want to integrate into your solution.
- Select the Use Session ID checkbox, if you want the external Web service to allow stateful communication, that is, return a session ID/cookie when it is called.
- Click Next.
- In the Define Communication Scenario step, do the following:
- Optional: Select the Create Communication Scenario checkbox to create a communication scenario that includes the Web service integration that you have defined. (if you chose not to select this option, you must assign the Web service integration to a communication scenario later)
- Enter a name for the communication scenario. It must start with a capital letter and can have 25 characters (letters, digits, and underscores)
- Optional: Select the Allow Non-Secure URLs (HTTP) checkbox to allow non-secure communication.
- Click Next.
- On the Review page, review your entries and click Finish
- In the solution Explorer, right-click the .wsid file, .csd file and click Activate.
Your Solution should look like this:
To Test the service operations.
- Right Click the .wsid file and select Test Service Operations.
Create a communication scenario
If you have not created a communication scenario yet, right-click the .wsid file and select Create Communication Scenario Definition.
Create a communication system & Arrangement
If you have created a communication scenario
- right-click the .csd file and select Manage Communication System.
you can now use the communication system to create a communication arrangement.
Consume SOAP Webservice
- Create a custom BO.
- Right-click BO and create Script File
- Getweather.absl – write the following code
- GetCities.absl – write the following code.
- Generate the screen
- Right click the BO > Create a screen.
- Design your QA Screen.
Test Weather SOAP Web service
1. Run the QA Screen
2. Enter the city Name & Click Get Cities button.
1. Enter the City name & Country name.
2. Click Get Weather button.
Drop us an email: email@example.com