Hello, I have finally gotten a REQUEST DOCUMENT statement that retrieves some Employee Info from a PeopleSoft webservice to work. However, it is just a test URL that I am hitting, and it doesn’t require a password or userid. I’m anticipating that in the future, we will need to password protect the access to the webservice. I read on the web that one can put the login and password into the SOAP header, but I also see that the REQUEST DOCUMENT statement has USER and PASSWORD options. Does anyone have any experience using either method? We are using HTTPS for the webservice. Thank you!
Here is the SOAP request:
COMPRESS
'<?xml version="1.0" encoding="utf-8" ?>' -
'<soapenv:Envelope ' -
'xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" ' -
'xmlns:get="http://xmlns.oracle.com/Enterprise/Tools/schemas/' -
'GetEmpBioInfoResp.V1">'
'<soapenv:Header/>' -
'<soapenv:Body>' -
'<GetEmpBioInfoReq ' -
'xmlns="http://xmlns.oracle.com/Enterprise/Tools/schemas/' -
'GetEmpBioInfoReq.V1">' -
'<GetEmpBioInfo>' -
'<UTZ_EMP_SRCH_VW class="R"' -
' xmlns="http://xmlns.oracle.com/Enterprise/Tools/schemas/' -
'GetEmpBioInfo.V1">' -
'<SSN>123456789</SSN>' -
' <EMPLID>TESTEMPLID</EMPLID>' -
' </UTZ_EMP_SRCH_VW>' -
' </GetEmpBioInfo>' -
'</GetEmpBioInfoReq>' -
'</soapenv:Body>' -
'</soapenv:Envelope>'
INTO #DOCUMENT LEAVING NO
**
Here is the REQUEST DOCUMENT statement:
REQUEST DOCUMENT FROM #FROM
WITH
* USER 'wildingl' PASSWORD 'hello'
HEADER 'Content-Type' 'text/xml;charset=iso-8859-1'
* 'Content-Length' #L
'SOAPAction' 'UTZ_EMP_BIO_INFO.v1'
'Request-method' 'POST'
DATA ALL #DOCUMENT
ENCODED CODEPAGE 'iso-8859-1'
* ENCODED CODEPAGE 'UTF-8'
RETURN
HEADER ALL #HEADER
NAME 'Content-Type' #DOC-CHARSET
PAGE #PAGE ENCODED
RESPONSE #RC
GIVING #RTERR