I've a service to consume, the details of the service are as follows.
POST /API/v02/JsonWs.svc/json/V02 HTTP/1.1 [OR] POST /API/Public/v02/JsonWs.svc/json/V02 HTTP/1.1
Host: dev.domain.us
Content-Type: application/json; charset=utf-8
Cookie: LogicAuth=3821F201156EA833......; path=/; HttpOnly
{"Header":{"Procedure":"Family_Insert"},"Body":{"EmailAddress":"[email protected]","Password":"test14","IdPhoneNumber":3051234567,"Address":{"Line1":"1234 Avenue","Line2":"Suite 900","City":"Coral","ZipCode":"33327","State":{"IdState":10}},"TimeZone":{"IdTimeZone":-5},"User":{"IdGender":1,"NameFirst":"Tom","NameMiddle":"Larry","NameLast":"Lewis","DateBirth":"10-21-1978","ClubName":"ABC","Communities":[1,2],"UserConnectTypes":[3,4]}}}
The javascript code to initiate from:
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("POST", "/json-handler");
xmlhttp.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
In your answer, you don't have to use all variables, I just need some help to get me going...
Edit:
Please specify the next steps of how to send json data to the server after I set the request headers in xmlhttp. I'm not sure what URL to send data to the above service.
On the side can someone tell me how to test the above service in chrome postman?