in reply to Re: SOAP::Lite Client - Read response header
in thread SOAP::Lite Client - Read response header
That definitely works if I can get at the raw XML response from the server. Which is what I posted and you used for $xml.
However, I should have been a bit clearer in my initial post. The XML response I posted above was captured via a tcpdump. The problem I'm getting is that when I use SOAP::Lite and print the results via Dumper, I'm only seeing the value in the body. So it looks like SOAP::Lite may be stripping the header off before I can get access to it.
Using the same code as from the first post, this is the what I see from the dumper printout
$VAR1 = bless( { 'resultCount' => '152', 'options' => undef, 'query' => 'SELECT DISTINCT huge-ass sql statement', 'filter' => 'DeviceType=\'NAS\'', 'maxResults' => '5000', 'firstResultPos' => '0', 'contextId' => 'ContextId_1364302533581', 'contextType' => 'Export_Device', 'internalResultCount' => '0' }, 'WSContext' );
So, I'm thinking there needs to be something changed in these two lines in order to read the header (Or else, I need to do this with some completely different method) - just not sure what
## MAKE THE CALL, PRINT THE RESULTS my $client = SOAP::Lite ->service($WSDL); my $result = $client->initExportDevice($filter);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: SOAP::Lite Client - Read response header
by McA (Priest) on Mar 26, 2013 at 14:19 UTC | |
by Anonymous Monk on Mar 26, 2013 at 15:33 UTC |