views:

296

answers:

1

I keep getting a Request format is invalid.

Here's the raw http that get's sent:

POST http://x.x.x.x/ws/MyWebService.asmx/TestEvent HTTP/1.1
contentType: "application/json; charset=utf-8",
  dataType: "json",
  data: {"strData":"1"}
Host: x.x.x.x
Content-Length: 4

Any help is greatly appreciated.

Thanks!

+4  A: 

I think it should be more like this:

POST /ws/MyWebService.asmx/TestEvent HTTP/1.1
Host: x.x.x.x
Content-Type: application/json; charset=utf-8
Content-Length: 15

{"strData":"1"}

And it is in the connection that you specify which server to connect to.

Alxandr