cancel
Showing results for 
Search instead for 
Did you mean: 

Http post method

Former Member
0 Kudos

Hi All!

Does anyone knows, where I can set the http post method when I change in my web application to a new view??

Thanks and Regards

Alkistis

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

The initial request would be Get ,if u want

U can pass post parameters using Web Dynpro Suspend Plugs

1) Define a an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map.

2) In your controller code create a HashMap instance and put some key/value-pairs in it:

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);

3) RESULT: The Web Dynpro Java Runtime will then pass these parameters via a POST request to the Suspen/Resume target application like the following HTTPWatch-Log demonstrates:

00:00:02.817 0.253 1812 POST 405 text/html http://www.sap.com/?sap-wd-resumeurl=http%3A%2F%2Fwdfd00181849a%3A57000%2Fwebdynpro%2Fdispatcher%2Fl...

and the following three POST-Parameters Key3=Value3&Key1=Value1&Key2=Value2

Go through the Blog

/people/sasivarnan.sundarakandasamy/blog/2008/12/29/http-post-in-web-dynpro-suspend-plug

This may help u.

Regards,

srikanth

Edited by: Srikanth Thatipally on Jul 24, 2009 11:33 AM

Former Member
0 Kudos

I have tried to create a postParams parameter of type java.util.Map in my outbound plug of type Exit, but when I try to build it keeps saying that the parameter type of 'postParams' needs to be a build-in type. Was your suggestion only for 7.1? I am running 7.0 here, and something is not working as it should.

/Best regards, Björn Bergenheim

Former Member
0 Kudos

Hi,

we can't set http post method.

Regards,

Sunaina Reddy T

Former Member
0 Kudos

Hi,

We can't change the Http rerquest method as it is based on in built framework.And also there is a restriction in EP7.0 to access any Http objectdue to some security reasons.In EP6.0 it was possible.

Regards,

srikanth

Edited by: Srikanth Thatipally on Jul 23, 2009 10:17 AM

Former Member
0 Kudos

Hmmm... that's not nice. ;o)

But thank you for your help!

Best regards

Alkistis

Former Member
0 Kudos

Hi again!

We use NetWeaver 7.0!

BR

Alkistis

ravindra_bollapalli2
Active Contributor
0 Kudos

hi,

in addtion to the above post

could u explain the problem more clearly

bvr

Former Member
0 Kudos

Of course.

In our application we use formulars. When we change the Web sites in the adress line of the browser you see all the parameters. So I guess that here the http get method is used by default. In this case it is possible that s.o. from outside is able to change them and get access to personal data.

we also have a cache problem and as with the posted forms won't be cached by the proxy server it is also preferred to use this.

hope I could make our problem more clearly now.

Best regards

Alkistis

former_member192434
Active Contributor
0 Kudos

Hi

If you are talking about Wedynpro java.......then i don't think it support any HTTP method.

Thanks

Former Member
0 Kudos

Hi Anup!

Thank you for your input!+

Yes, I am using Webdynpro for Java. I was wondering, if maybe there would be a general setting for this, as our customer want to use post methods in the http request, because it is more save.

Best regards

Alkistis

Edited by: A. Kostogiannis on Jul 24, 2009 9:22 AM