on 07-23-2009 8:43 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi,
we can't set http post method.
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,
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
in addtion to the above post
could u explain the problem more clearly
bvr
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi
If you are talking about Wedynpro java.......then i don't think it support any HTTP method.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.