use SOAP::Lite +trace; my $s = SOAP::Lite -> uri('http://myURL') -> proxy('https://myURL/myService.asmx') -> on_action(sub{sprintf 'http://myURL/%s', $_[1] }); my $var = SOAP::Data->new(name => 'id', value => "123", type =>'xsi:string'); my $SoapCall = $s->Method($var); my $result = $SoapCall->result; #### Server was unable to process request. --> Object reference not set to an instance of an object.