http://www.perlmonks.org?node_id=1006422

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

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

    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