Using Public Web Services

This chapter provides an overview of public web services for PeopleSoft Enterprise Portal, and discusses how to:

Click to jump to parent topicUnderstanding Public Web Services

These public web services enable an external system to send values to PeopleSoft Enterprise Portal to create content in features such as Collaborative Workspaces, Content Management, and Discussions. In the case of CWService.FindWorkSpaceByContextData, public web service can also be used to view PeopleSoft Enterprise Portal content from within the external system.

The following public web services are available:

Click to jump to parent topicEnabling Public Web Services

Public web service access to PeopleSoft Enterprise Portal APIs requires the use of PeopleSoft Integration Broker.

To enable public web services, perform the following steps:

  1. Enable publish/subscribe on the application server.

    Configure the appropriate application server to enable Pub/Sub Servers.

    See Enterprise PeopleTools 8.50 PeopleBook: System and Server Administration, “Setting Application Server Domain Parameters”

  2. Activate the message definition EO_PE_SOAPTOCI.

    Using PeopleSoft Application Designer, open the EO_PE_SOAPTOCI message. Access the message properties and ensure that the Use tab Status value is set to Active.

  3. Enable the message channel IB_CHNL

    Using PeopleSoft Application Designer, open the IB_CHNL message channel. Access the message channel properties and ensure that the Use tab Message Channel Status value is set to Run.

  4. Set up the integration broker gateway URL and integrationGateway.properties file.

  5. Set up the local portal node.

  6. Create a new external node and add EO_PE_SOAPTOCI message transactions to it.

  7. Add security to the associated component interfaces and SOAPTOCI web libraries.

    Associated component interfaces include EPPCM_ADDCONTENT, EPPCM_GETCONTENT, EPPCW_ADDMEMBER, EPPCW_CREATEWS, EPPCW_FINDWS, and EPPDF_ADDPOST.

  8. Use SendMaster to test SOAP calls to the component interfaces using WSDL.

Click to jump to parent topicUsing Content Management Public Web Services Schemas

This section presents examples of SOAP requests (this does not represent a complete reference to all available web services):

Click to jump to top of pageClick to jump to parent topicAdding Content with a Save SOAP Request

Following is an example of a Save SOAP request to add content:

<?xml version="1.0" encoding="UTF-8" ?> <SOAP-ENV:Envelope xmlns:SOAP ENV="http://schemas.xmlsoap.org/soap/envelope" xmlns:SOAP ENC="HTTP://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SOAP ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Header> <Security_Request> <Username>VP1</Username> <Password>VP1</Password> </Security_Request> </SOAP-ENV:Header> <SOAP-ENV:Body> <Update_CompIntfc_EPPCM_ADDCONTENT> <OPRID>VP1</OPRID> <PORTAL_NAME>EMPLOYEE</PORTAL_NAME> <EPPCM_CATG_TYPE>R</EPPCM_CATG_TYPE> <EPPCM_CATGID>1001</EPPCM_CATGID> <EPPCM_CONT_TYPE>U</EPPCM_CONT_TYPE> <EPPCM_TITLE>Test Sendmaster Content</EPPCM_TITLE> <EPPCM_CONT_LONG>http://www.yahoo.com</EPPCM_CONT_LONG> </Update_CompIntfc_EPPCM_ADDCONTENT> </SOAP-ENV:Body> </SOAP-ENV:Envelope>

The response from PeopleSoft, which uses a cloned SOAPTOCI message, is:

<?xml version="1.0" encoding="UTF-8" ?> <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP- ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP- ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Header /> <SOAP-ENV:Body> <Updatedata_CompIntf_EPPCM_ADDCONTENTResponse xmlns= "http://psfttemp.org"> <notification>The Content saved successfully. New Content ID = 2261.(18025,1738) </notification> <detail /> </Updatedata_CompIntfc_EPPCM_ADDCONTENTResponse> </SOAP-ENV:Body> <SOAP-ENV:Envelope>

Click to jump to top of pageClick to jump to parent topicGetting Content with a Get SOAP Request

Following is an example of a Get SOAP request to get content:

<?xml version="1.0" encoding="UTF-8" ?> <SOAP-ENV:Envelope SOAP- ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP- ENC:="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP- ENV:="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Header> <Security_Request> <Username>PS</Username> <Password>PS</Password> </Security_Request> </SOAP-ENV:Header> <SOAP-ENV:Body> <Get_CompIntfc_EPPCM_GETCONTENT> <OPRID>VP1</OPRID> <PORTAL_NAME>EMPLOYEE</PORTAL_NAME> <EPPCM_CATG_TYPE>R</EPPCM_CATG_TYPE> <EPPCM_CATGID>1001</EPPCM_CATGID> <EPPCM_CONTENTID>2004</EPPCM_CONTENTID> </Get_CompIntfc_EPPCM_GETCONTENT> </SOAP-ENV:Body> </SOAP-ENV:Envelope>

The response from PeopleSoft is:

<?xml version="1.0" encoding="UTF-8" ?> <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP- ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP- ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP- ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Header /> <SOAP-ENV:Body> <Get_CompIntfc_EPPCM_GETCONTENTResponse xmlns:="http://psfttemp.org"> <OPRID>VP1</OPRID> <PORTAL_NAME>EMPLOYEE</PORTAL_NAME> <EPPCM_CATG_TYPE>R</EPPCM_CATG_TYPE> <EPPCM_CATGID>1001</EPPCM_CATGID> <EPPCM_CONTENID>2004</EPPCM_CONTENTID> <EPPCM_TITLE>Test Web Service CI HTML</EPPCM_TITLE> <EPPCM_CONT_TYPE>H</EPPCM_CONT_TYPE> <EPPCM_CONT_LONG /> </Get_CompIntfc_EPPCM_GETCONTENTResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>

Click to jump to top of pageClick to jump to parent topicGetting Content with a Find SOAP Request

Following is an example of a Find SOAP request to get content:

<?xml version="1.0" encoding="UTF-8" ?> SOAP-ENV:Envelope SOAP- ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP- ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP- ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Header> <Security_Request> <Username>PS</Username> <Password>PS</Password> </Security_Request> </SOAP-ENV:Header> <SOAP-ENV:Body> <Find_CompIntfc_EPPCM_GETCONTENT> <OPRID>VP1</OPRID> <PORTAL_NAME>EMPLOYEE</PORTAL_NAME> <EPPCM_CATG_TYPE>R</EPPCM_CATG_TYPE> <EPPCM_CATGID>1001</EPPCM_CATGID> </Find_CompIntfc_EPPCM_GETCONTENT> </SOAP-ENV:Body> </SOAP-ENV:Envelope>

Following is the response from PeopleSoft:

<?xml version="1.0" encoding="UTF-8" ?> <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP- ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP- ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP- ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding"> <SOAP-ENV:Header /> <SOAP-ENV:Body> <Find_CompIntfc_EPPCM_GETCONTENTResponse xmlsn="http://psfttemp.org"> <EPPCM_GETCONTENT> <OPRID>VP1</OPRID> <PORTAL_NAME>EMPLOYEE</PORTAL_NAME> <EPPCM_CATG_TYPE>R</EPPCM_CATG_TYPE> <EPPCM_CATGID>1001</EPPCM_CATGID> <EPPCM_CONTENTID>2001</EPPCM_CONTENTID> <EPPCM_TITLE>Michele<EPPCM_TITLE> </EPPCM_GETCONTENT> <EPPCM_GETCONTENT> <OPRID>VP1</OPRID> <PORTAL_NAME>EMPLOYEE</PORTAL_NAME> <EPPCM_CATG_TYPE>R</EPPCM_CATG_TYPE> <EPPCM_CATGID>1001</EPPCM_CATGID> <EPPCM_CONTENTID>2004</EPPCM_CONTENTID> <EPPCM_TITLE>Test Web Service CI HTML</EPPCM_TITLE> </EPPCM_GETCONTENT> <EPPCM_GETCONTENT> <OPRID>VP1</OPRID) <PORTAL_NAME>EMPLOYEE</PORTAL_NAME> <EPPCM_CATG_TYPE>R</EPPCM_CATG_TYPE> <EPPCM_CATGID>1001</EPPCM_CATGID> <EPPCM_CONTENTID>2020</EPPCM_CONTENTID> <EPPCM_TITLE>Test Web Service CI</EPPCM_TITLE> </EPPCM_GETCONTENT> <EPPCM_GETCONTENT> <OPRID>VP1</OPRID) <PORTAL_NAME>EMPLOYEE</PORTAL_NAME> <EPPCM_CATG_TYPE>R</EPPCM_CATG_TYPE> <EPPCM_CATGID>1001</EPPCM_CATGID> <EPPCM_CONTENTID>2023</EPPCM_CONTENTID> <EPPCM_TITLE>Test URL</EPPCM_TITLE> </EPPCM_GETCONTENT> <EPPCM_GETCONTENT> <OPRID>VP1</OPRID) <PORTAL_NAME>EMPLOYEE</PORTAL_NAME> <EPPCM_CATG_TYPE>R</EPPCM_CATG_TYPE> <EPPCM_CATGID>1001</EPPCM_CATGID> <EPPCM_CONTENTID>2024</EPPCM_CONTENTID> <EPPCM_TITLE>Test URL from View</EPPCM_TITLE> </EPPCM_GETCONTENT> <EPPCM_GETCONTENT> <OPRID>VP1</OPRID) <PORTAL_NAME>EMPLOYEE</PORTAL_NAME> <EPPCM_CATG_TYPE>R</EPPCM_CATG_TYPE> <EPPCM_CATGID>1001</EPPCM_CATGID> <EPPCM_CONTENTID>2025</EPPCM_CONTENTID> <EPPCM_TITLE>Test URL Derived Record</EPPCM_TITLE> </EPPCM_GETCONTENT> </Find_CompIntfc_EPPCM_GETCONTENTRespone> </SOAP-ENV:Body> </SOAP-ENV:Envelope>