Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Facing difficulties in using SOAP::WSDL

by sandeepb (Novice)
on Nov 30, 2012 at 07:43 UTC ( #1006422=perlquestion: print w/replies, xml ) Need Help??
sandeepb has asked for the wisdom of the Perl Monks concerning the following question:

here is my code

use Data::Dumper; use SOAP::Lite +trace=>"debug"; # it debugs whether the connection is +set or not use SOAP::WSDL::Client; use SOAP::WSDL; my $soap = SOAP::WSDL->new( wsdl => ' +ce.svc?wsdl'); $soap->wsdlinit(); $soap->servicename( 'SessionService' ); my $res = $soap->call('GetSessions'); print Dumper($res->result);

getting error as : Error processing WSDL: can't find the path '/wsdl:definitions/wsdl:types/xsd:schema/xsd:element@name="GetSessions"/xsd:complexType/descendant::xsd:element'

using SOAP::WSDL of $VERSION = "1.27"; thanks your Help will be appreciated

Replies are listed 'Best First'.
Re: Facing difficulties in using SOAP::WSDL
by Anonymous Monk on Nov 30, 2012 at 09:09 UTC

    sing SOAP::WSDL of $VERSION = "1.27"; thanks your Help will be appreciated


    Try installing the latest, cpan MKUTTER/SOAP-WSDL-2.00.99_3.tar.gz , although that doesn't exactly work for me either (wsdl2perl chokes)

    On the other hand SOAP::Simple seems to work ... its built on XML::Compile::SOAP/

    #!/usr/bin/perl -- use strict; use warnings; use Data::Dump; use SOAP::Simple; #~ +l my $soap = SOAP::Simple->new('Service.svc@wsdl'); my ($answer, $trace) = $soap->GetSessions; dd $answer; dd $trace;

      Thanks, for your inputs.

      I successfully installed SOAP::Simple, where as it having plenty of dependency modules, i too installed many in that, but not able to install its dependency modules"XML::LibXML"

      Any idea why we are not able to install the same

      thanks Sandeep

        Any idea why we are not able to install the same

        PEBKAC, but that's too easy

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1006422]
Approved by Athanasius
[LanX]: do you know the story of the triangle player?
[choroba]: Oh, the Czech one playing the German composition?
[choroba]: BTW, the elections are over. We already have the final results.
[choroba]: I should probably apply for a job somewhere abroad.
[LanX]: nope this one One day the triangle player of an orchestra gets very ill and goes to the hospital.. ..

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2017-10-21 19:34 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (270 votes). Check out past polls.