Just trying out Yii Web Service authentication/authorization here.
Generated CRUD controller extended with IWebServiceProvider implementation from Phonebook sample. Method getFirstItem added to safeMethods array.
With a PHP client all works well, even the login method and my custom method requiring login. The latter method calls are commented out.
HTTP request from PHP client executes getFirstItem() as expected
Quote
Host: somehost.com
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.2.4-2ubuntu5.5
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:ItemControllerwsdl#getFirstItem"
Content-Length: 394
C# client ends up with the "Login required" exception
Quote
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.3082)
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:ItemControllerwsdl#getFirstItem"
Host: somehost.com
Content-Length: 472
Expect: 100-continue
Connection: Keep-Alive
Something wrong with my C# client config? It worked well until I added the IWebServiceProvider implementation in the controller.
/Tommy