SOAP-WSDL - Specifying the server URL from a client.

Posted on Mon Apr 28 20:31:15 2008 by asawczyn
Specifying the server URL from a client.
I've created a web service with SOAP::WSDL and now I'm writing a client. I'd like to test this client against a few different instances of this web service where each web service is on a different server. Using a couple of the included examples as template, this is how I am accessing my web service from the client...
my $soap = HotelInterfaces::HotelWebService::HotelWebService->new(); ... $result = $soap->cancel_request({shop_request_id => $shop_request_id});

Doing things this way, is it possible to specify the URL of the server? I tried the following but it did not work...
my $soap = HotelInterfaces::HotelWebService::HotelWebService->new( {proxy => $url} );
Direct Responses: 7782 | Write a response