Home: Perl Programming Help: Advanced:
SOAP::LITE + WSDL



ptop
Novice

Mar 12, 2009, 3:27 AM


Views: 3841
SOAP::LITE + WSDL

Hi ,all

I'm trying to write an "automatic" SOAP client , the script should get the WDSL url path , analyzing the SERVICE name and automaticliy resolve the FUNCTIONS names form the SERVICE , then it should generate request to each of the existings FUNCTIONS with the Functions parameters.

I'm not able to get the Functions name and the Parameters name , how do i get then and generating the SOAP requests ???

Thanks.

my script:

#! /usr/bin/perl

use SOAP::Lite;
use XML::Simple;


my $wsdl = "http://www.WSDLTEST.com/Test.asmx?wsdl" ;
my $soap_service = SOAP::Lite->service($wsdl);

print $soap_service; # The Service Name

exit(0);

Thanks !!!


1arryb
User

Mar 12, 2009, 7:24 AM


Views: 3838
Re: [ptop] SOAP::LITE + WSDL

Hi ptop,

Disclaimer: I am not a SOAP programmer. However, a quick survey of the SOAP::Lite perldoc combined with some examples from another language (see http://www.diveintopython.org/soap_web_services/introspection.html) hints that:

Code
SOAP::Lite->proxy($wsdl)->methods()

or

Code
SOAP::Lite->server($wsdl)->methods()

Might return a structure whose keys are the method names and whose values might contain the call parameters.

Sorry my help is so thin. Please post back what you discover.

Cheers,

Larry


ramindya
New User

Oct 2, 2009, 3:44 PM


Views: 3605
Re: [1arryb] SOAP::LITE + WSDL

I am tyring to do the same thing but I am agetting the error

"document/literal support is EXPERIMENTAL in SOAP::Lite"

My code is

use SOAP::Lite;
my $soap = SOAP::Lite->service("http://xxxx/tttt/V2.5/services.asmx?wsdl");
print $soap;

Thanks in advance!