Here, I am going to explain how to consume SOAP WSDL from external and invoke it from BW6.x business process.
Sample SOAP URL: http://www.dneonline.com/calculator.asmx?wsdl
which contains 4 operations - Add, Divide, Multiply, Subtract.
Create a new project and go to Resources folder > Right click New > Others > type WSDL
Select WSDL file and click on Next, Next and Finish.
Goto Source Tab, copy and paste the WSDL content from
http://www.dneonline.com/calculator.asmx?wsdl
Ensure to remove top line "THIS XML FILE..etc". And then SAVE it.
Click on Design Tab, where you can see list of Operations and respective elements. No need to make any changes here.
Create a Empty Business Process and drag and drop WSDL on right side of the process and select Invoke Operation.
Go to business process, place HTTP Receiver activity.
Specify HTTP Connection (created earlier), Context Path and Parameters.
Map Query parameters to WSDL Operation's inputs
Take SendHTTPResponse activity to send response to HTTPRequest and map it accordingly.
That's all. Now test the application from SOAP UI or PostMan.
http://localhost:8080/sub/?a=100&b=50
Thanks for reading :-)
No comments:
Post a Comment