in reply to SOAP call to .NET Service

The following code makes the call successfully.
Changed URI to http (as hossman noticed) and the construct of the onAction header.
#use SOAP::Lite +trace; use SOAP::Lite; my $s = SOAP::Lite -> uri('http://my.ephit.com/WebServices/Website') -> proxy('http://my-test.ephit.com/webservices/website.asmx') -> on_action(sub{sprintf 'http://my.ephit.com/WebServices/Website/%s' +, $_[1] }); my $Req = SOAP::Data->new(name => 'Req', value => "ASTHMA", type =>'xs +i:string'); my $Gender = SOAP::Data->new(name => 'Gender', value => "MALE", type = +> 'xsi:string'); my $Age = SOAP::Data->new(name => 'Age', value => "38", type => 'xsi:i +nt'); $result = $s->GetConditionsText($Req, $Gender, $Age)->result; use Data::Dumper; print Dumper($result);

Replies are listed 'Best First'.
Re^2: SOAP call to .NET Service
by Hammy (Scribe) on Jan 08, 2008 at 14:28 UTC
    Thank you very much! That solved my problem. I thought it might have something to do with the on_action, but I could not figure it out. You have made my morning!