I get a good response (for a valid USERID), But when I use the CICS WEB OPEN, WEB SEND & WEB RECEIVE commands, I consistently get a HTTP Error 400 (Bad Request) response.
This is how my WEB commands look:
Code:
Exec cics web open host(ws-hostname) HTTP sesstoken(ws-sessiontoken) resp(ws-resp-code) End-exec
where ws-hostname = "testing.shippingapis.com"
Code:
Exec cics web send sesstoken(ws-sessiontoken) GET
path(ws-path) pathlength(20) querystring(ws-querystring)
querystrlen(232) resp(ws-resp-code) End-exec
where ws-path = "/Shippingapis.dll" and ws-querystring is set to "API=Verify&XML=<AddressValidateRequest USERID="xxxx"><Address ID="0"><Address1></Address1><Address2>6406 Ivy Lane</Address2><City>Greenbelt</City><State>MD</State><Zip5></Zip5><Zip4></Zip4></Address></AddressValidateRequest>"
I see 400 in ws-statuscode and "Bad Request" in ws-statustext
if you could see something I'm doing wrong or if there are alternate ways of accomplishing this task, let me know please... I would really appreciate your help.
EK
Good Luck, I am able to do initiate a successful request to USPS and my TCP IP software says I am getting a good status code and response text. But I am able to see only the good status code, the response text is getting lost somewhere!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum