in reply to Using SOAP::Lite without a proxy

The URL & Proxy parameters are used when you don't have a WSDL to reference. Since you do have a WSDL file, Try this:

use SOAP::Lite; print SOAP::Lite -> service('http://internalserver/WebServices/Mail.WSDL') -> SendMail ("email address", "Test subject", "Test Message");

Replies are listed 'Best First'.
Re: Re: Using SOAP::Lite without a proxy
by Anonymous Monk on Oct 30, 2003 at 23:09 UTC
    Thanks for getting back to me.

    I tried your sugestion, but I get the following error:

    401 Access Denied

    How can I pass credentials? I didn't see it in the documentation. In VB it would be...
    ConnectorProperty("AuthUser") = "domain\username" ConnectorProperty("AuthPassword") = "Password"

      If the endpoint uses basic authentication then you have to override the get_basic_credentials method in SOAP::Transport::HTTP::Client...

      sub SOAP::Transport::HTTP::Client::get_basic_credentials { return('domain\username','Password'); }

      perl.com has a good SOAP::Lite tutorial which covers other kinds of authentication you might encounter on the endpoint.


      We're not surrounded, we're in a target-rich environment!