PDA

View Full Version : Retreivng data from HTTP POST


create_idea
07-26-2005, 10:29
Hi,

I have a reqirement, where my cleint will be sending the data to my service, In my service I will be redirecting to wm.tn/receive service by using pub.cleint.http.
While redirecting, how can I retreive the Input data from the HTTP POST and send it to my serice.

1)Client send the data(xml data) thru http post, calls my serivcethru pub.client.http(http://myserver:5555/invoke/myservice/service?)
2)In my developer, I will receive the data and use another service to redirect to TN.(http://myserver:/invoke/wm.tn/receive)
Q) In 1 how can I get the XML data which is coming form http post .

Please help me
Thanks in advance ...

Regards,
Sunny



Regards,
Sunny

rsamban
07-26-2005, 11:04
Sunny,

XML string will be available to your service as a node object, if the client sets the Content-Type as text/xml.your service should have node object as input and use XMLNodetoXMLDocument service to convert it into document and process it how ever you want.

ramesh.

rmg
07-26-2005, 15:28
Sunny,

Your receiving service input should be node object ,this will be in the pipeline when doing http request posting xml document directly to a custom gateway service.This is a very basic procedure in WM.

Your first step should be XMLNodeToDocument(for XML parsing)

HTH,
RMG

create_idea
08-03-2005, 09:30
Hi Ramesh & RMG,

That worked....Thanks a lot for your help.


Regards,
Sunny