Forum Discussion
Delta_Force_270
Nimbostratus
Oct 01, 2007querying iControl without parsing the response
Hello,
I would like to query iControl but not parse the response which comes back.
I am looking at the example scripts which come with the SDK and would like the raw data which com...
Oct 03, 2007
If that's really what you want to do, then you can bypass all deserializing on the response by using the outputxml(true) option on the SOAP::Lite object
...
$soap = SOAP::Lite
-> uri('urn:iControl/ITCMSystem/SystemInfo')
-> outputxml(true)
-> proxy("https://$sHost:$sPort/iControl/iControlPortal.cgi");
$soapResponse = $soap->get_system_information();
print "Response: $soapResponse\n";Keep in mind that once you go this route you cannot make use of the SOAP::Lite helpers to determine if faults occurred or help with deserializing structures and multideminsional arrays. You'll have to do the parsing yourself.
If you are just interested in seeing the raw SOAP messages during debugging to help determine what the output looks like, you can turn on SOAP::Lite debugging by using the following "use" line at the top of your script
use SOAP::Lite + trace => qw(method debug);This will dump to standard output a bunch of stuff including the request and response soap messages.
Good luck!
-Joe
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
