[Xml-compile] wsdl soap call fails with missing data in response
Mark Overmeer
mark at overmeer.net
Mon Jan 24 22:00:04 GMT 2011
* Paul B. Henson (henson at acm.org) [110124 21:49]:
> On Thu, Jan 20, 2011 at 11:40:00PM -0800, Mark Overmeer wrote:
>
> Hmm, I tried:
> sub nonvalidating_xml {
> my ($xml, $args, $path, $type, $r) = @_;
> print "($xml, $args, $path, $type, $r)\n";
> ($type => XMLin($xml));
> }
>
> $wsdl->addHook(type => 'readReturn', replace => &nonvalidating_xml);
> which resulted in:
> Use of uninitialized value in concatenation (.) or string at ./test.pl
> line 17.
> (, , , , )
> data source test.xml not found in ./
Try with a backslash before the & ;-)
> $wsdl->addHook(type => 'readReturn',
replace => sub { my ($xml, $args, $path, $type, $r) = @_;
>
> Which I didn't think would make a difference, but with this I just get
> the original error:
> error: data for element or block starting with `success' missing at
> {http://www.hannonhill.com/ws/ns/AssetOperationService}readResponse/readReturn
You must specify the namespace of 'readReturn' as well. Now, the hook
is not activated.
--
Regards,
MarkOv
------------------------------------------------------------------------
Mark Overmeer MSc MARKOV Solutions
Mark at Overmeer.net solutions at overmeer.net
http://Mark.Overmeer.net http://solutions.overmeer.net
More information about the Xml-compile
mailing list