Search the web
Sign In
New User? Sign Up
soaplite · SOAP::Lite for Perl (soaplite.com)
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Exception handling   Message List  
Reply | Forward Message #6264 of 6387 |
Hello all,

I am writing web service. I want to use soap lite for the client side
and for the server I am using jax-ws. I want to handle errors using
exceptions. My server side WS throws javax.xml.ws.WebServiceException.
My problem is no matter what I do, I can't catch the exception and get
the exception string out.

My client code:
#!/usr/bin/perl -w
use strict;

use SOAP::Lite
on_fault => sub { my($soap, $res) = @_;
die ref $res ? $res->faultdetail : $soap->transport->status, "\n";
};

my $res = SOAP::Lite
->service('http://localhost:8084/casi/CWS?wsdl');

my $var = SOAP::Data->type('string');
$var->name('p1');
$var->value('my p1');

eval {
print "before call\n";
my $result = $client->test1($var);
print $result. '\n';;
};
if ($@) {
print "$@\n";
}

Any ideas?




Mon Dec 8, 2008 11:43 pm

yairgot
Offline Offline
Send Email Send Email

Forward
Message #6264 of 6387 |
Expand Messages Author Sort by Date

Hello all, I am writing web service. I want to use soap lite for the client side and for the server I am using jax-ws. I want to handle errors using ...
Yair Gottdenker
yairgot
Offline Send Email
Dec 9, 2008
12:12 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help