on 10-02-2008 2:39 PM
Hi @,
I need to perform HTTP Post from webdypro application some XML data. How can I do this , I tried searching forums and blogs but couldn't find a suitable solution or Help.
Is it possible or will have to go for any external apis to achieve the same?
Regards
Hi,
You need to use Suspend plug to pass parameters with http POST. See this thread and this document for further directions.
Thread link
Document link
http://help.sap.com/saphelp_nw70/helpdata/en/68/3aee42c4257176e10000000a1550b0/frameset.htm
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This is possible - though not directly with Exit Plug of Interface View Controller.
You need to use Suspend plug to pass parameters with http POST. See this thread and this document for further directions.
From thread above, Replace
Map postParams = new HashMap();
postParams.put("Key1", "Value 1");
postParams.put("Key2", "Value2");
postParams.put("Key3", "Value 3");
wdThis.wdGetWDSuspendResumeWindowController().wdFirePlugTestSupend("http://www.sap.com", postParams);
with
WDDeployableObjectPart deployableObjectPart = WDDeployableObject.getDeployableObjectPart(deployableObjectName, "TargetApp", DDeployableObjectPartType.APPLICATION);
String urlToTargetApp = WDURLGenerator.getApplicationURL(deployableObjectPart);
Map postParams = new HashMap();
postParams.put("Key1", "Value1");
postParams.put("Key2", "Value2");
postParams.put("Key3", "Value 3");
wdThis.wdGetStartWindowController().wdFirePlugStartAppSuspend(urlToTargetApp, postParams);
In target application, onPlugDefault, use this code to get the values for parameters.
String val1 = WDProtocolAdapter.getProtocolAdapter().getRequestParameter("Key1");
String val2 = WDProtocolAdapter.getProtocolAdapter().getRequestParameter("Key2");
String val3 = WDProtocolAdapter.getProtocolAdapter().getRequestParameter("Key3");
wdComponentAPI.getMessageManager().reportSuccess(val1 + " - " + val2+ " - " + val3);
I've used this and it works.
Hope it helps.
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the point of copying someone else's post to answer a question that you probably have no idea about? Just gaining points by hook or crook is not the purpose of this forum.
You copied my post [from here|] without giving credit to original poster. This is nothing else but [plagiarism|http://en.wikipedia.org/wiki/Plagiarism]. Funny thing is that You could not even copy the post properly and missed the relevant links.
Please avoid such activities by all means.
Vishwas.
Armin/Bertram,
Another member did the same thing a few weeks earlier and now this. Please do something to tackle this behavior by some fellow members - Assigning negative points for each such activity may work.
Edited by: Vishwas Madhuvarshi on Oct 3, 2008 4:45 PM
User | Count |
---|---|
84 | |
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.