SOAP-WSDL - Re: retrieving output

Posted on Thu Apr 24 02:50:55 2008 by noah in response to 7734 (See the whole thread of 9)
Re: retrieving output

You've already got your response object; in the example from your first post it's '$response'. From this you've got two primary options for mucking with the data;

1) As martin said, call $response->as_hash_ref() which will return a traditional hash reference with which you can work;

2) use the get_-prefixed called your $response object has available. To see which calls it exposes, examine the full error text returned when you call $response->get_nosuchmethod(). Each get_-prefixed call returns an object which references the corresponding tag in the SOAP response. Once you figure out what the first call is, working your way down the tree is just a matter of examining the objects returned from get_(whatever) with _DUMP().

It's a bit hairy the first time through, especially if you're not familiar with how Class::Std(::Fast)? works, but it makes sense.

Noah
Direct Responses: 7745 | Write a response