views:

96

answers:

1

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

A: 

Hi,

i am trying to use php web service in asp.net C#,2.0. and i am beginner in web services.

please help me out in this.

Thanks in advance,

Dion