Integration Broker - Consume 3rd Party Web Service (WSDL)

 To connect PeopleSoft with any third party tool or to move data from PeopleSoft to any other Application you need to consume the web services (WSDL).

The WSDL is consumed and can be use by this method in PeopleSoft.

We are going to consume a Free WSDL of a calculator.
Note: Before performing the steps please make sure that Integration Broker is configured

Step 1: Setting up Node
First set up the node for your web service.
Open the Following Navigation.




















 




Click on WSDL_NODE and copy the node.






















Enter your Node name and Save it.



















Step 2:  Consume Web Service
Once you set-up the node, now you have to consume your web service.
Follow the navigation to consume your web service




















Enter you WSDL Link here and click on next button
I used this open WSDL link(Many open WSDL are available on internet)

http://www.dneonline.com/calculator.asmx?WSDL

























Your WSDL will be available here, click on next button













Select your desired service and click on next















Select the functions of WSDL you want to consume and click on next button


 
















The the operations of your WSDL will set-up like this. Click on next button



























Select use existing node and click on Finish Button

















After clicking on finish button following screen will appear.


























Step 3: Applying web service on your Node
Enter your WSDL name, click on search button and open your WSDL



















 








Go to connectors tab and select connect ID : HTTPTARGET
and on Primary URL write the Primary URL address of your WSDL
http://www.dneonline.com/calculator.asmx























Now Ping the node.



















If Success means your WSDL node is successfully connected.












Now save the node























Step 4: Setting up Operation Security.

Goto following navigation and search your service, by service name.















When you click on Search button, your operations will visible.




















Open the operation and click on "Service Operation Security"




















Add the following three services and service of your access page you want to give
1. HSCPSERVICE
2. HCSPSERVICETL
3. HCSPSOASERVICES
and save it.




























Now click View Message and check the Message type






















Message type should be Non Rowset Based, now click on save button














 

Your WSDL is finally set-up on PeopleSoft, Now you have to utilize it according to your need.

Step  5: Calling WSDL using PeopleCode

Open the Application Designer and make fields according to your WSDL.
I made 2 Fields and a Button, and I used an static function + of WSDL.



 













 

Now open the Button and click on View Record Peoplecode


















and add the following Peoplecode on Field Change of your Button






















Now Save the PeopleCode and button and Publish it on Front-End.













Now click on Get Response to check the response.









Finally your WSDL is Consumed and data is available on Peoplesoft, now you can utilize it as you like.

No comments:

Post a Comment

PeopleCode to retrieve Google map between two addresses

  PeopleCode Example: /* Define constants for the API request */ Local string &origin = "123 Main St, Anytown, USA";   /* ...