go ahead... be a heretic | |
PerlMonks |
SOAP::Lite -- transport vs SOAP faultsby Bill.Costa (Acolyte) |
on Jul 02, 2013 at 19:42 UTC ( [id://1042085]=perlquestion: print w/replies, xml ) | Need Help?? |
Bill.Costa has asked for the wisdom of the Perl Monks concerning the following question:
UPDATE: This is apparently a known bug which is fixed in github but that version is not in CPAN as of yet.
https://rt.cpan.org/Public/Bug/Display.html?id=85713
I'm new to SOAP and SOAP::Lite, so I'm still trying to wrap my head around SOAP::Lite's view of the world. Under certain circumstances SOAP::Lite is receiving valuable fault information from the server, but I can't figure out how to cleanly retrieve it. Consider the following example.
When we run this we get the following output:
So we can catch the error, which if we believe line 36, is a transport error. And if we try to examine the SOAP fault in line 37, we die because we're doing a method call after apparently ignoring a transport error. Nice touch. But the problem is that the reported error message is not very informative and if we look at the content of the http response we can see the very helpful fault string message... "Cannot find dispatch method".So I don't understand why this is being treated as a transport error when there is an actual SOAP response, and I don't understand how I am suppose to cleanly retrieve this response.
Back to
Seekers of Perl Wisdom
|
|