ppetree 2 Junior Poster

Often times I see a SOAP document (blog or example) that references the WSDL from the client side as: http://yourUserid:yourPassword@example.com/foobar.wsdl as in this example:

$client = new SoapClient("https://yourLogin:yourPassword@foo.com/bar.wsdl", array(
    "login"      => "yourLogin", 
    "password"   => "yourPassword",
    "trace"      => 1, 
    "exceptions" => 0));

How are they processing the userid/password and managing the login? Is this some implementation of WS_Secutity or some other security protocol or is there a way to map the callers userid/password to a login function?

I currently have a login function that works but using my SOAP service requires two calls: 1) login (returns a token) and; 2) submit your request. It would be more convenient for my callers if they could pass all the login info in the client create process.

Anyone able to explain to me how this is done?

Thanks,

Pete