cancel
Showing results for 
Search instead for 
Did you mean: 

Using HTTP Post from WD4A

Former Member
0 Kudos

Hi,

I have an enhancement on the WD Component ERC_C_REQ_MGMT_UI to push the job posting to the external job distributor. To launch the URL is not a problem; however, pushing the data via an HTTP POST method is a puzzle to me. The data can't be pushed in the URL, so some other way is required. I have read posts that suggest the HTTP_POST function module or cl_http_client=>create_by_url. I have not been able to get either method to work. The data to pass is not in XML but in the following format:

<form method="Post" action=u201Dhttp://staging.company.com/dir/application.aspxu201D Target=u201DAnother_Windowu201D >

<input type=u201Dhiddenu201D name=u201DTargetURLu201D value=u201Dhttp://staging.company.com/dir/AppPoster.aspxu201D >

<input type=u201Dhiddenu201D name=u201DPartneridu201D value=u201DZZZ111u201D>

<input type="hidden" name="username" value="My Uname">

<input type="hidden" name="password" value="My Password">

<input type="hidden" name="JobCode" value="9999">

<input type="hidden" name="InternalJobID" value="My Job ID">

....

</form>

Can anyone suggest how I do this?

Thank you

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you...that pointed me in the right direction. I was able to create a BSP that does an HTTP POST. The WD application calls that BSP.

The only thing is that I don't know how to automatically submit the BSP page instead of needing to put a button on the page to submit the request.

saravanan_narayanan
Active Contributor
0 Kudos

Hello,

I dont think POST is possible in webdynpro only GET is possible. in the sense we can append parameters to the URL. since you have password data this is not a good option for you.

Alternative would be to store the data in shared memory objects and redirect to BSP page and then trigger the POST operation. Here I assume BSP supports HTTP POST. Please verify this as well.

BR, Saravanan