[Xml-compile] Sometimes answer is not populated because of Return section
Mark Overmeer
mark at overmeer.net
Wed Apr 5 11:21:51 GMT 2017
Hi Simon,
* Simon Cruickshank (simon.cruickshank at gmail.com) [170405 10:00]:
> First post. Be gentle :-)
We should always be gentle ;-b
> ($answer, $trace) = $wsdl->call(Y_UK_WEBPORTAL_ATP => $request);
> Answer not populated. Presumably because of warning message?
> <ATP_COV>83.000</ATP_COV>
> <RETURN>
> <TYPE>W</TYPE>
> <ID>M3351Material VSB22I</ID>
> <NUMBER>750</NUMBER>
> <MESSAGE> not maintained in plant 6000</MESSAGE>
...
Quite often error returns contain bugs... just as in any program.
> This works with older versions with precompiled Perl libraries wsdl2perl.
> Is there a parameter/switch that I can use to still populate the
> answer despite the RETURN population. Is it that the Return is
> incorrectly populated?
You catch the $trace which contains debug information, amongst things
an error message.
print $trace->error;
Have you produced a template of the call?
$wsdl->explain(Y_UK_WEBPORTAL_ATP => PERL => OUTPUT, recurser => 1);
Compare the template with the returned message. The XC error message
cannot always pinpoint the exact location of the problem.
--
Success
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