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

Is that really what you are getting back? This doesn't appear to "well formed XML" as there is a closing </anyType> without a corresponding opening one. If it really is what you are getting back then you will need to fix that problem before attempting to process it.

/J\

Replies are listed 'Best First'.
Re^4: convert SOAP message to perl data structure
by Anonymous Monk on Jul 13, 2006 at 15:33 UTC
    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

      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\