1 Reply Latest reply: Aug 22, 2013 1:23 PM by brunolps0 RSS

    Testing Enrollment Web Services (EWS) with SoapUI - Fault: Basic Authentication Required

    user1150060

      Greetings!

       

      I am trying to test some PeopleSoft services using SoapUI. First I went to Main Menu > PeopleTools > Integration Broker > Web Services > Provide Web Service. I created a WSDL for several items and provided them to SoapUI in a New Project. I can use SoapUI to test the SOAPAction: "SSR_GET_COURSES.V1" and it works great. However, when I try to use the SOAPAction: "SSR_GET_COURSES_R_POST.v1" for a response I get the fault error "Basic Authentication required for Service Operation  SSR_GET_COURSES_R_POST. (158,563)".

       

      I have tried following this: Applying WS-Security | SOAP and WSDL to add the "wsse:Security" UsernameToken but it does not seem to help any. Must I use some form of certificate? The details of the request and response (with a few details changed for privacy) are below:

       

      Request:

       

      POST http://<domain>/PSIGW/PeopleSoftServiceListeningConnector/CS9TST HTTP/1.1

      Accept-Encoding: gzip,deflate

      Content-Type: text/xml;charset=UTF-8

      SOAPAction: "SSR_GET_COURSES_R_POST.v1"

      Content-Length: 1208

      Host: <domain>

      Connection: Keep-Alive

      User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

       

      <soapenv:Envelope xmlns:ser="http://xmlns.oracle.com/Enterprise/HCM/services" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

         <soapenv:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsse:UsernameToken wsu:Id="UsernameToken-21"><wsse:Username>ME_GUEST</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">ME_GUEST_PASSWORD</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">/zB4biHpwoCYaja7GoLLXA==</wsse:Nonce><wsu:Created>2013-08-13T20:26:51.544Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header>

         <soapenv:Body>

            <ser:SSR_GET_COURSES_REQ>

               <ser:COURSE_SEARCH_REQUEST>

                  <ser:INSTITUTION>ABC01</ser:INSTITUTION>

                  <ser:SUBJECT>CHEM</ser:SUBJECT>

                  <ser:SSR_CRS_SRCH_MODE>H</ser:SSR_CRS_SRCH_MODE>

               </ser:COURSE_SEARCH_REQUEST>

            </ser:SSR_GET_COURSES_REQ>

         </soapenv:Body>

      </soapenv:Envelope>

       

      Response:

       

      <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

         <SOAP-ENV:Body>

            <SOAP-ENV:Fault>

               <faultcode>SOAP-ENV:Server</faultcode>

               <faultstring>null</faultstring>

               <detail>

                  <IBResponse type="error">

                     <DefaultTitle>Integration Broker Response</DefaultTitle>

                     <StatusCode>20</StatusCode>

                     <MessageID>563</MessageID>

                     <DefaultMessage>Basic Authentication required for Service Operation  SSR_GET_COURSES_R_POST. (158,563)</DefaultMessage>

                     <MessageParameters>

                        <Parameter>SSR_GET_COURSES_R_POST</Parameter>

                     </MessageParameters>

                  </IBResponse>

               </detail>

            </SOAP-ENV:Fault>

         </SOAP-ENV:Body>

      </SOAP-ENV:Envelope>

       

      The ANONYMOUS Node has WS Security tab set to Authentication Token Type "Username Token" with no checkboxes selected.

       

      Any Clues? Thanks so much!