eugenio63 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, i'm Eugenio from Argentina and i'm using the SOAP::WSDL 2.0 library to provide web services. I have generated the soap modules without problems with wsdl2perl.pl. In the .cgi that i'm using as server, i have defined one function and i'd like it to throw an exception. So the question is: What module(s) should i use to throw a soap exception, so it can be caught from another application.
# server.cgi use My::SOAP::Server::Foo::FooSoap; my $server = My::SOAP::Server::Foo::FooSoap->new({ dispatch_to => 'main', transport_class => 'SOAP::WSDL::Server::CGI', # optional, default }); $server->handle(); sub register_user { my ($self, $body, $header) = @_; if ( not $foo ) { #throw exception here } return Educativa::SOAP::Elements::registrar_usuario_response->new( +{ usuario => 'Ok' #string }); }
  • Comment on What module(s) should i use to throw a SOAP exception in my server
  • Download Code

Replies are listed 'Best First'.
Re: What module(s) should i use to throw a SOAP exception in my server
by Khen1950fx (Canon) on Mar 05, 2008 at 00:56 UTC