Hi

I am a newbie to perl so please bare with me..

I need to create a script that will do a http post of a SOAP request to a server and wait for response. Our system has changed to include WSSE security header for the SOAP request.. Now i am so lost on what to use soap lite or LWP. LWP means i will need to create the xml request manually? Here is the expected request packet, please can you advice on how i should go about this...
POST /lbs HTTP/1.1 Content-Type: application/soap+xml;charset=UTF-8 User-Agent: Jakarta Commons-HttpClient/3.0.1 Host: xxxxxxxxxx Content-Length: 949 <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xm +lns:urn="urn:IBS_WS_IMPLEMENTATION"> <soap:Header> <wsse:Security soap:mustUnderstand="true" xmlns:wsse="http://docs.oasi +s-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><w +sse:UsernameToken wsu:Id="UsernameToken-xxxxx" xmlns:wsu="http://docs +.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.x +sd"><wsse:Username>xxxx</wsse:Username><wsse:Password Type="http://do +cs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile +-1.0#PasswordText">xxxxxx</wsse:Password><wsse:Nonce>CU4+WBi/+E8HY8/2 +nYLf1A==</wsse:Nonce><wsu:Created>2009-12-01T15:35:13.942Z</wsu:Creat +ed></wsse:UsernameToken></wsse:Security></soap:Header> <soap:Body> <urn:getLocation> <MSISDN>xxxxxxx</MSISDN> <CLIENTID>xxxxx</CLIENTID> <EXT_TRANS_ID>xxxxxxx</EXT_TRANS_ID> </urn:getLocation> </soap:Body> </soap:Envelope>
Thank you monks....

In reply to HTTP POST OF SOAP REQUEST by ninz857

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.