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
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