Can't send parameters to a webservice made with DotNet From a soap::lite client in Perl

  • Thread starter jean-françois labbe
  • Start date
J

jean-françois labbe

Hello,

I want to connect to a webservice made with DotNet and send it parameters. I
can connect to it and receive a value but i can't send it parameters and i
don't know why. Is someone can help me ?

here is part of my code

#paramètre à passer au webservice
my $testStr = "test";

my $uri = "http://tempuri.org/COD3_Util_Cognos_ReportNet_ws/Service1/";
my $proxy = "file.asmx";

my $soap = SOAP::Lite
-> uri($uri)
-> on_action( sub { return $uri.'HelloWorldStr'} )
-> on_debug(sub{print@_})
-> proxy ($proxy)
->HelloWorldStr( $testStr);#appel de la méthode avec passage du
paramètre

#affichage du résultat avec gestion des erreurs
unless($soap -> fault){
print $soap->result();
print "\n";
}
else{
print join', ',
$soap ->faultcode,
$soap ->faultstring,
$soap ->faultdetail;
}

thank you.

Jefonline
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top