in reply to Re^3: convert SOAP message to perl data structure
in thread convert SOAP message to perl data structure

HI : Thanks for your comments, I have read a lot of SOAP and XML but I cannont undertand yet how can I get the data and transfer to Perl data stucture. If you see the label <anytype xsi:type="objManifiesto"> exist after <manifiestos> ... In my script I have the above line, is this the one that display the dat ? code if($response->code == 200) { print $response->as_string; } How can I get each field from $response-> ? Best regards, Caribesoft /code
  • Comment on Re^4: convert SOAP message to perl data structure

Replies are listed 'Best First'.
Re^5: convert SOAP message to perl data structure
by gellyfish (Monsignor) on Jul 13, 2006 at 15:53 UTC

    If you are using LWP::UserAgent as it appears then you might just as well do something like:

    # .. your modules use XML::Simple; use Data::Dumper; # make request and get response; # ... my $data = XMLin($response->as_string); # the following just to show you the structure. print Dumper($data);
    You should read the XML::Simple documentation for more on how to control the parsed data structure.

    /J\