PeopleSoft Integration Broker and Web ServicesPosted: June 14, 2008
PeopleSoft Integration Broker and Web Services
Integrating PeopleSoft to external systems using web services is similar, if not simpler, to integrating to third party systems prior to “web services” age. Today, I will try to go through step by step instructions to integrate PeopleSoft with google web services API. If I have some time this weekend, I will try to go through the same with Amazon web services.
Google WSDL is located at this URL Google WSDL.
1. Import the WSDL
PeopleSoft lets you create the messages, queues (called channels before), routings (called transactions before) and service operations and services manually or automatically. Before web services you had to create all these (except services and operations) manually. With WSDL, all these are automatically created for you once WSDL import it done.
2. Verify all the required service operations are created.
3. Create request and response code
Based on the WSDL and request message parameter you need to create the SOAP request.
Local SOAPDoc &SOAPDoc;
Local XmlNode &lnodeEnvNode;
&SOAPDoc = CreateSOAPDoc();
&lnodeEnvNode = &SOAPDoc.EnvelopeNode;
&lxmlDoc = CreateXmlDoc(&SOAPDoc.GenXmlString());
&lmsgGoRequest = CreateMessage(Operation.DOGOOGLESEARCH);
MY_LDAP_TEST.RAWXML1.Value = &lxmlDoc.GenXmlString();
&lmsgGoResponse = %IntBroker.SyncRequest(&lmsgGoRequest);
MY_LDAP_TEST.RAWXML2.Value = &lmsgGoResponse.GenXMLString();
4. Test the code
I created a simple page which will trigger the code above. Here is the request and response. You might need to get Google API key. I had to change one in the screen shot (sorry)