on 05-19-2011 7:23 PM
Hello,
I have been provided with an Servlet URL to get some details to be populated in an WebDynpro Application.
How should i invoke the servlet url inside the webdynpro application?
Regards
Bobu
Hi Bopu,
I believe you could start from the WDProtocolAdapter, i.e.
IProtocolAdapter protAdapter = (IProtocolAdapter)WDProtocolAdapter.getProtocolAdapter();
IRequest requestObj = protAdapter.getRequestObjectInternal();
HttpServletRequest request = (HttpServletRequest)requestObj.getProtocolRequest();
However, I believe a better approach is using the Application Integrator, see http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0446f5c-fcb9-2910-e082-88becbe3d... for a thorough explanation
Cheers,
Robin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Although I haven't tried it myself, I believe you could just use the normal java URL connection, i.e.
URL url = new URL("http://yourdomain/YourServlet");
URLConnection conn = url.openConnection();
conn.setDoOutput(true);
BufferedWriter out = new BufferedWriter( new OutputStreamWriter( conn.getOutputStream() ) );
and then handle the response of your servlet
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.