0 Replies Latest reply on Jun 12, 2013 11:47 AM by bob.thompson1@navy.mil

    soap header

    bob.thompson1@navy.mil

      I need to added security to the the soap header for a web service call from a PDF, this is what I'm getting now:

       

      ...

      <ns0: SOAP-ENV:encodingStyle="http://schemas.xmlsoap.ort/soap/encoding/" xlsns:ns0="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">

      <Security>

           <UsernameToken>

                <Password xsi:type="xsd:string">pppp</Password>

                <Username xsi:type="xsd:string">uuuu</Username>

           </UsernameToken>

      </Security>

      </ns0>

      ...

       

      from this code:

       

      var oHeader = { "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd:" :

      { Security : {

           UsernameToken : {

                Username : "uuuuu",

                Password : "pppp"

                }

           }

      }};

       

      var service = SOAP.request( {

      cURL: myURL,

              oRequest: myRequest,

              cAction: myAction,

              oReqHeader: oHeader

      });

       

       

      and I needs something like this in the SOAP Header:

      ...

      <xlsns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">

      <ns1:Security>

          <ns1:UsernameToken>

              <ns1:Password>pppp</ns1:Password>

              <ns1:Username>uuuu</ns1:Username>

          </ns1:UsernameToken>

      </ns1:Security>

      ...

       

       

      Thanks in advanced.

       

      Bob