This project is read-only.

400 bad requst

Topics: Web Api
Sep 22, 2011 at 5:36 PM

My client getting 400 Bad request when send URL in below format:


If I am send with / like http://localhost:8080/?ipAddress= it is working well.

The code is

var host = new HttpServiceHost(typeof(DirectClientService), "http://localhost:8080" );  //http://localhost:8080/ - is same"

and IService:

        [WebGet(UriTemplate = "?FunctionName=Register&ipAddress={ipAddress}&port={port}")]
        string RegisterAction( string telesetNumber, string ipAddress); 

Please help urgent