Menu

#164 WSDL Generated Functions do not return Fault

0.71
closed-invalid
WSDL (18)
5
2010-02-28
2009-07-13
No

Hi all ,

WSDL Generated Functions do not return error informations. I pass all
the required login credentials to the server side where I check it with
the existing user information. If the user is not existing,the script dies
with an error description. But with my WSDL implementation I am unable to
get the fault message.

The client side code looks like this.

my $soap = SOAP::Lite->service('http:/IP/demo.wsdl');

if($soap->call->fault)
{
print "Err",$soap->call->faultstring;
exit;
}
else
{
print $result;
}

when I use this code am getting an error "Can't find method element in the
message at /usr/local/share/perl/5.8.8/SOAP/Lite.pm line 2724.". The
particular line at the soap::Lite states that

die "Can't find method element in the message"
unless $request->match($som->method);

Is it means I can call fault function only on SOAP::SOM Object or am I
doing something wrong.?Please help me.

Discussion

  • Martin Kutter

    Martin Kutter - 2010-02-28

    Please direct usage questions to the mailing list or the Yahoo forum.

    Martin

     
  • Martin Kutter

    Martin Kutter - 2010-02-28
    • status: open --> closed-invalid
     

Log in to post a comment.