开发者

Use NuSoap basic auth webservice in C#

He there,

I have a basic webservice which works in C# if i remove the Basic auth option. But when i add the Basic auth meganism and set NetworkCredentials in C# I get this wierd error.

C# does authenticate correctly but after that something goed wrong.

Service s = new Service();
s.Credentials = new Credentials("jan", "password");

String result = s.getData();

The error i get is: HTTP-status 400: Bad Request. When I look in my error_log i see this error:

[Fri Jul 23 14:53:33 2010] [error] [client 192.165.10.47] Invalid开发者_开发知识库 URI in request 1POST /testzooi/rpc/index.php HTTP/1.1


I was checking with mono #c and I see no Service Object if it's System.Web.Services or a instatiation of a WSDL service the Service.Credentials seems to be to set a bollean value and not the Credentials object.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜