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

Facing difficulties in using SOAP::WSDL

by sandeepb (Initiate)
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 => 'http://webservices.legis.ga.gov/GGAServices/Session/Servi +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

Comment on Facing difficulties in using SOAP::WSDL
Download Code
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

    Why?

    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/http://perl.overmeer.net/xml-compile/

    #!/usr/bin/perl -- use strict; use warnings; use Data::Dump; use SOAP::Simple; #~ http://webservices.legis.ga.gov/GGAServices/Session/Service.svc?wsd +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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2014-10-02 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (43 votes), past polls