on 08-04-2011 9:25 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.