Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.

已锁定 Response of a SOAP header

  • 2012年4月30日 12:37
     
     

    Hello,

    I am consuimg a webservice developed in Seibel , so for the security enhancement, I need to pass the username and password and the connection type and the response will be a sessionID within the header. Please find a sample.. So how can i retrieve this sessionToken from SOAP header?

    Request

    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <soap:Header>
        <Header1 xmlns="http://siebel.com/webservices">
          <UsernameToken>midhun.sunny@metrosystems.net</UsernameToken>
          <PasswordText>world.1234</PasswordText>
          <SessionType>Stateless</SessionType>
        </Header1>
      </soap:Header>
      <soap:Body>
        <MG_spcPicking_spcParameter_spcExport_spcV02_spcW_Input xmlns="http://siebel.com/CustomUI" />
      </soap:Body>
    </soap:Envelope>

    Response

    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
       <SOAP-ENV:Header>
          <siebel-header:SessionToken xmlns:siebel-header="http://siebel.com/webservices">NMJ5kb4xLYKa5OpdbQ61Wrc8nblpEXQ6DprcI50GTKo8keNDX-BxOKJOlfuB3.zcuOs1znmT36iye9ynPr1a8enSrjgzkN12nI9fPlzJNXrO9fnN.nEMYVZj74pCWzdcC9Z-fqZyZ.HLdcrrCU-kLlO0K1LpkN01eXjnFMplwdsHZBKEouqHaUdgkqaZKAd7E0vlD86ClOzDV9zJnFrYxvcfPko0epl1N3Iipa4RLPwNEqg4eAaUPvKBj69F18U8Xl-kHjkVHoZrJjeyYbhtR6bMUaf53eHY</siebel-header:SessionToken>
       </SOAP-ENV:Header>
       <SOAP-ENV:Body>

    ----

    <soap:Body>
        <MG_spcPicking_spcParameter_spcExport_spcV02_spcW_Input xmlns="http://siebel.com/CustomUI" />
      </soap:Body>
    </soap:Envelope>

    Please help..

    Thanks in advance

    Midhun Sunny

全部回复