|
Hello 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
}
return Educativa::SOAP::Elements::registrar_usuario_response->new( {
usuario => 'Ok' #string
},
);
|