External Web Service Integration (BYD)

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).

Prerequisites

  1. You have opened a solution in the studio.
  2. 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.

Scenario

Current weather and weather conditions for major cities around the world.
Endpoint: http://www.webservicex.net/globalweather.asmx?WSDL

Process flow

  1. In the Solution Explorer, right-click your solution and select Add New Item.
    (The Add New Item dialog opens.)
  2. Select SAP Service Integration External Web Service Integration and click Add.
  3. The External Web Service Integration Wizard opens.
    1. In the Enter Web Service Name and Type step, enter a name for the Web service and select SOAP.
    2. Click Next.
  4. In the Import WSDL File Documents step, do the following:
    1. Select the WSDL file or enter Endpoint of the Web service that you want to integrate into your solution.
    2. 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.
    3. Click Next.
  5. In the Define Communication Scenario step, do the following:
    1. 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)
    2. Enter a name for the communication scenario.  It must start with a capital letter and can have 25 characters (letters, digits, and underscores)
    3. Optional: Select the Allow Non-Secure URLs (HTTP) checkbox to allow non-secure communication.
    4. Click Next.
  6. On the Review page, review your entries and click Finish
  7. In the solution Explorer, right-click the .wsid file, .csd file and click Activate.

Your Solution should look like this:

Configuration

To Test the service operations.

  1. 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

  1. 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

  1. Create a custom BO.
  2. Right-click BO and create Script File
    1. Getweather.absl – write the following code
    2. GetCities.absl – write the following code.
    3. Generate the screen
      1. Right click the BO > Create a screen.
      2. Design your QA Screen.

Test Weather SOAP Web service

Get City:
1. Run the QA Screen
2. Enter the city Name & Click Get Cities button.

GetWeather:
1. Enter the City name & Country name.
2. Click Get Weather button.

 

Questions?
Drop us an email: info@msight.us

Leave a Reply

Your email address will not be published. Required fields are marked *

© 2020 Copyright :mindsight