locked
Response of a SOAP header

    คำถาม

  • 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

    30 เมษายน 2555 12:37

ตอบทั้งหมด