Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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";

Replies are listed 'Best First'.
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?
[stonecolddevin]: I think Stevie Ray is one of maybe 2 or 3 people that could take a Hendrix song and make you go "...huh. this is close." https://open. spotify.com/track/ 0UVM9trirBK5s1xBwL oVhZ
[stonecolddevin]: https://open. spotify.com/track/ 0UVM9trirBK5s1xBwL oVhZ rather
[Corion]: Sadly I must go to bed now :-| See y'all!
[erix]: I really loved/love this "Recorded Live" record, 1973 (yes, I'm that old)
[stonecolddevin]: goodnight Corion
[erix]: cya Corion :)
[stevieb]: Joan Jett, Hendrix, Neil Young, Dave Keuning (The Killers)... I have my mind elsewhere so I'm limited in my capacity to think about this righ tnow ;)
[erix]: another blues with Big Red :)
[stonecolddevin]: I will say John Mayer is an excellent guitarist, I don't like his music but he's pretty damn good
[erix]: scd: maybe you like John Mayall better :)

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2017-06-22 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (531 votes). Check out past polls.