in reply to Connection to SOAP WSDL service using perl
Original parent node thanks to google cache:
Hello Monks,
I have some troubles connecting to SOAP WSDL service using perl and module XML::Compile::SOAP.
Service to which I am trying to connect doesn't provide any documentation for perl they well documented php connection:
PHP call for status method:
In perl I wrote:require_once('nusoap.php'); $soapClient = new nusoap_client('https://myservice.com/service.php +?w +sdl', true); $result = $soapClient->call( 'doQueryAllSysStatus', array( array( 'cou +ntryId' => 1, 'webapiKey' => 'WEBAPI_KEY' ) ) );
use XML::Compile::WSDL11; # use WSDL version 1.1 use XML::Compile::SOAP11; # use SOAP version 1.1 use XML::Compile::Transport::SOAPHTTP my $wsdl = XML::Compile::WSDL11->new("https://myservice.com/service.ph + +p?wsdl"); $wsdl->importDefinitions('doQueryAllSysStatus'); my $call = $wsdl->compileClient('doQueryAllSysStatus');
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Connection to SOAP WSDL service using perl
by runrig (Abbot) on Oct 27, 2013 at 16:42 UTC |
In Section
Seekers of Perl Wisdom