cancel
Showing results for 
Search instead for 
Did you mean: 

Posting data through XML and HTTP Post

Former Member
0 Kudos

What is the procedure to pass parameters via POST using WebDynpro ?

I am required to pass XML Data via POST through WebDynpro.

I have gone through the following :

a) http://help.sap.com/saphelp_nw04/helpdata/en/9e/a073001903c9419592b14c2aa63669/content.htm

b) Inter Navigation Application in Web Dynpro

However, I could not find any reference to do the same via POST.

Can anyone throw light on the same ?

Best Regards,

Subramanian V.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

1. Use portal eventing if applicable. It is possible to POST arguments this way.

2. If you don't need to navigate to application, but just submit data to it try to use java.net.URLConnection

VS

Former Member
0 Kudos

Yes I just need to send data from my WebDynpro application to a third party application and the data is an XML File. So, all I need to do is use java.net.URLConnection ?

If so is the case, then thanks a million, Valery.

Thank you.

Regards,

Subramanian V.

Former Member
0 Kudos

Yes, if this is case then:

1. Create URL (typically, without params) as java.net.URL

2. use URL.openConnection to create instance of java.net.URLConnection

3. Set headers, get input stream and write request

4. Close input stream, open output stream and read result

5. Google for more details -- there are a plenty of samples

VS

Former Member
0 Kudos

Thank you very much for your quick replies and thanks for pointing out the direction that I need to follow.

Cheers,

Subramanian V.

Answers (0)