Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

SOAP WSDL server not starting

by Sixtease (Friar)
on Apr 14, 2010 at 11:59 UTC ( #834655=perlquestion: print w/replies, xml ) Need Help??
Sixtease has asked for the wisdom of the Perl Monks concerning the following question:

Fellow Monks,

A friend of mine is struggling with WSDL SOAP.

He wants to run a server where a SOAP service will run. He uses:

  • XML::Compile::WSDL11 2.12
  • XML::Compile::SOAP11 2.12
  • XML::Compile::SOAP::HTTPDaemon 2.02

Attempting to run the server leaves this error in the user.log file: no definitions for `service' found

The WSDL can be obtained here:

use XML::Compile::WSDL11; use XML::Compile::SOAP11; use XML::Compile::SOAP::HTTPDaemon; my @schemas = ( '/home/.../wsdl_soap/parlayx-3.0/WSDL/parlayx-3.0/parlayx_sms_send +_service_3_1.wsdl', ); my $wsdl = XML::Compile::WSDL11->new; $wsdl->importDefinitions(\@schemas); my $daemon = XML::Compile::SOAP::HTTPDaemon->new; $daemon->operationsFromWSDL($wsdl); $daemon->run(name => 'SMS', host => 'localhost', port => 8877,);

Any ideas?

use strict; use warnings; print "Just Another Perl Hacker\n";

Replies are listed 'Best First'.
Re: SOAP WSDL server not starting
by Anonymous Monk on Apr 14, 2010 at 12:50 UTC
    my @services = $wsdl->findDef('service'); use Data::Dumper; print Dumper(\@services );
    I tried to run it but ran into win32 bugs related to Log::Report.

      Hi. Thanks for the try.

      I tried to include your code like this:

      my @schemas = ('/path/to/parlayx_sms_send_service_3_1.wsdl',); my $wsdl = XML::Compile::WSDL11->new; $wsdl->importDefinitions(\@schemas); my @services = $wsdl->findDef('service'); use Data::Dumper; print Dumper(\@services );

      Unfortunately, the Dumper was not executed. The script must have exited earlier, during importing the wsdl file... So it outputs nothing.

        Solved. It was just needed to use all necessary wsdl and xsd files correctly:

        my @schemas = ( 'parlayx_common_types_3_1.xsd', 'parlayx_sms_types_3_0.xsd', ); my $wsdl = XML::Compile::WSDL11->new; $wsdl->importDefinitions(\@schemas); $wsdl->addWSDL('parlayx_sms_send_service_3_1.wsdl'); $wsdl->addWSDL('parlayx_sms_send_interface_3_1.wsdl'); $wsdl->addWSDL('parlayx_common_faults_3_0.wsdl');

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://834655]
Approved by marto
and the universe expands...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2018-03-20 09:01 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (248 votes). Check out past polls.