in reply to SOAP::[MIME/Lite] and SwA...
Where the $envelope is the XML I have created (This is the whole thing, envelope/head/body).my $response = $service->transport->send_receive( envelope => $envelope );
You can then do this:my $entity = $parser->parse_data($response);
I hasten to add I didn't like the fact I couldn't use a SOAP::* module but I had immense difficulty (at the time) getting SOAP::Lite and Sun to play together anyother way (this was a year ago btw).# We have some parts - one XML at least my $num_parts = $entity->parts; # No guarantee of order for(my $i = 0; $i < $num_parts; $i++) { my $part = $entity->parts($i); if($part->mime_type eq 'text/xml') { # Do stuff with XML } else { $datatype = $part->mime_type; # Do stuff with attachment } }
|
|---|