пятница, 4 декабря 2009 г.

Authorization: Digest

Task: Authorization with the Digest authentication to .NET webservice on IIS.
Trouble: cannot get wsdl

log:
Test connection: <200: ok="ok"> http://server.net/
Test connection: <200: ok="ok"> http://server.net/_vti_bin/DotNetWebservice.asmx
Test connection: <401: unauthorized="unauthorized"> http://server.net/_vti_bin/DotNetWebservice.asmx?WSDL

Found (after analyze of packets):
IE:
Authorization: Digest username="test", uri="/_vti_bin/DotNetWebservice.asmx", ....
Java:
Authorization: Digest username="test", uri="/_vti_bin/DotNetWebservice.asmx?WSDL",...