cancel
Showing results for 
Search instead for 
Did you mean: 

Need Help on HTTP Post ?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Sunaina,

Can you please paste the Link as it got missed I suppose.

Also my application has to send message not to wdynpro application but to XI system to its Http adapter.

Regards

0 Kudos

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

Former Member
0 Kudos

Hi,

No more fights here goes the actual link for this where Bertram Ganz explains "not-so-obvious" Web Dynpro features

Regards

Ayyapparaj

0 Kudos

Ayyapparaj,

I based [my reply|] on this article and mentioned so along with another help.sap.com article.

Vishwas.

Former Member
0 Kudos

Hi @,

Thanks for response I a closing this thread though it is still unresolved.

Regards