Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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: http://oneapi.aepona.com/content/gsma/WSDL-3-0-distribution.zip

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";

Comment on SOAP WSDL server not starting
Select or Download Code
Re: SOAP WSDL server not starting
by Anonymous Monk on Apr 14, 2010 at 12:50 UTC
    Try
    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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://834655]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-09-21 12:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls