This is an example script from the SOAP::Lite dooumentation:
use SOAP::Lite; print SOAP::Lite -> uri('http://www.soaplite.com/Temperatures') -> proxy('http://services.soaplite.com/temper.cgi') -> f2c(32) -> result;
Here 'Temperatures' is the namespace (url before is ignored), 'http://services.soaplite.com/temper.cgi' is the URL of the remote script, f2c is the name of the method called, 32 is data the method accepts. In this case the data returned by server is one scalar and is converted to perl scalar type on the fly. Usually you know what kind of data the server returns, and many types are automatically converted to Perl data structures.

At first adapt the example script to fit your needs (all parameters marked italic need to be replaced with your ones!) and try to find out which data is returned from server. Data::Dumper can help you if you have no suggestions about it :) And if you fail, try to ask here a less general question.


In reply to Re: convert SOAP message to perl data structure by Ieronim
in thread convert SOAP message to perl data structure by caribesoft

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.