Here, We will see how to create a simple SOAP webservice with one operation and then we will test it from SOAP UI and BW-SOAP client.
Open Business Studio and create a project by choosing File–>New–>Project option from the main menu bar.
Specify Project Name and click on Next
Select the folders as per your requirement. If you want more folders you can create it. Infact, not needed.
Project and folder structure will be created automatically..
Click on arrow as shown below for creating SOAP service (Provider)
Next, Create/Specify Schema as per your requirement. But, here no changes are needed
Now we have the process with an operation but there is still no implementation of the operation, so drag and drop it on Process. Select "Implement Operation".
Receive and Reply activities with the names OperationIn and OperationOut will get added in the process.
Select Reply activity, and specify output or response messages.
In real-time, you may include DB, Salesforce..etc data as response. But, I am explaining by making simple logic to understand clearly for beginners.
On Reply activity-Properties, specify response.
Binding: Here, we need to specify SOAP configuration details and transport configurations using the connection resource
Select the SOAP Service Binding, then change the Transport Type as shown below
Then, specify HTTP Connector as shown below..
Ensure to save the process, whenever you made changes.
Enter location and File Name and click on Next
You can test the WSDL process either by SOAP UI or BW client process
Either you can Debug or Run. Here, I've debugged the process by deploying them on BW Runtime.
Check the console for output .
That's all about creating WSDL service and testing through SOAP UI
*****************************************************************
Now, we will create a Consumer process to invoke Provider process (WSDL) just created above.
Create another process for invoking Provider WSDL logic
Enter name of the process and click on Finish
Drag and drop the WSDL Operation to the Process.
Keep Timer activity to start the process.
On Invoke activity, specify Input Parameters
Debug/ Run - Provider (WSDL ) and Consumer processes
Check the inputs/ outputs of Provider and Consumer processes.
That's all.
No comments:
Post a Comment