Loading ...
Sorry, an error occurred while loading the content.

Problem with WS-Security using perl

Expand Messages
  • Karanth Srihari
    Hi Group, I have a problem buggin me since a month. I want to constrct the following XML using Soap:lite and post it to a Dot Net Sever. But no matter what i
    Message 1 of 1 , Dec 22, 2005
    • 0 Attachment
      Hi Group,

      I have a problem buggin me since a month. I want to constrct
      the following XML using Soap:lite and post it to a Dot Net Sever. But
      no matter what i do the server is not recognising the header.. every
      time its saying "Please send atleast one Security Token", i tried
      posting the whole XML using LWP even then i get the same response.
      I tried googling it but i didnt find any solution in perl for
      this... i tried the sample program given
      in "http://msdn.microsoft.com/library/default.asp?url=/library/en-
      us/dnsql90/html/soapscenarios.asp" but even that is not helping. i
      cannot fgure out from where will we get "wsa:MessageID" and "wsu:Id"
      and how to construct the whole XML which a dot net server can
      recognize.
      whould be greatful if anyone can help in solving this.

      <?xml version="1.0" encoding="UTF-8"?>
      <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
      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"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soap:Header>
      <wsa:Action>http://karanth.info/pass/ModifySubscriber</wsa:Action>

      <wsa:MessageID>uuid:S5L77MM6GADB9dYpdFoiXSrovOr+AShuwTc/xbCqwzE=</wsa:
      MessageID>
      <wsa:ReplyTo>

      <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/ano
      nymous</wsa:Address>
      </wsa:ReplyTo>
      <wsa:To>http://110.12.12.2/pass/pass.asmx</wsa:To>
      <wsse:Security soap:mustUnderstand="1">
      <wsu:Timestamp wsu:Id="Timestamp-e4208bb8-765b-448e-8652-
      b91934d590e0">
      <wsu:Created>2005-11-08T07:08:35Z</wsu:Created>
      </wsu:Timestamp>
      <wsse:UsernameToken
      wsu:Id="SecurityToken-aa8bae13-ecaa-484e-bde1-9a1209f2108f"
      xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-
      wssecurity-utility-1.0.xsd">
      <wsse:Username>saloni</wsse:Username>
      <wsse:Password Type="http://docs.oasis-
      open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#Pas
      swordDigest">cKTiw00GbaBC7tgdbrjbdXUY9Lw=</wsse:Password>
      <wsse:Nonce>iC4/2ksh2OZooIYBXPRnIQ==</wsse:Nonce>
      <wsu:Created>2005-11-08T07:08:35Z</wsu:Created>
      </wsse:UsernameToken>
      </wsse:Security>
      </soap:Header>
      <soap:Body>
      <changePassword xmlns="http://karanth.info/pass">
      <newPass>newpassword</newPass>
      </changePassword>
      </soap:Body>
      </soap:Envelope>




      Thanks in advance,

      Regards,
      --Hari
    Your message has been successfully submitted and would be delivered to recipients shortly.