cancel
Showing results for 
Search instead for 
Did you mean: 

How Webdynpro accepts & processes POST request from other Website

Former Member
0 Kudos

Hi,

Could you please let me know how to accept and process the POST request from external website ?

Vinit

Accepted Solutions (1)

Accepted Solutions (1)

former_member192152
Active Participant
0 Kudos

  //@@begin javadoc:loadCountItemsParameter()
	/** Declared method. */
  //@@end
  public void loadCountItemsParameter( )
  {
    //@@begin loadCountItemsParameter()
		boolean count = false;
		try {
			String paramCountItems = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("CountItems");
			//this.messageShowMessage("[loadCountItemsParameter]: paramCountItems = " + paramCountItems, PBMessagesTypes.TP_Exception, null);
			count = Boolean.valueOf(paramCountItems).booleanValue();
		} catch (Exception ex) {
			wdComponentAPI.getMessageManager().reportException(new com.sap.tc.webdynpro.services.exceptions.WDNonFatalException(ex), false);
		}
		wdContext.currentVnAppPropertiesElement().setVaCountItems(count);
    //@@end
  }

regards,

Angelo

Former Member
0 Kudos

Thanks, but is it possible to catch these values in the same session.

currently what is happening is, I need to pass a URL to external site on which it can return the data.

1. How do we get the current application URL and when I pass that URL is it possible to stop the browser refresh and catch the value in the same iview.

Thanks,

Vinit

former_member192152
Active Participant
0 Kudos

You need to create "plug suspended" and specify some attributes in WebDynpro application.

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a08c287b-96a5-2a10-a691-b8b8bc40ea43

regards,

Angelo

Former Member
0 Kudos

But this can be used only for stand alone application, I can not create iVIew out of it and use it.

Also is there a way to read the POST parameters once when the application is resumed and in which method we should red them ?

former_member192152
Active Participant
0 Kudos

Excuse me ... I believe that I'm not understanding your scenario!

Former Member
0 Kudos

Any answer ?

Former Member
0 Kudos

Hello Angelo,

My requirement is interact back and forth with an external website.

Ex, I need to call the external website from my webdynpro application on portal, read the data from the external site and use them in my webdynpro application.

Here I need to send the external website a URL - HOOK_URL, and external site would return me data back on the same url I passed. When I pass my application url i get the data, however I loose the portal window, i.e it is redirected to standalone application url.

Please advise.

Thanks,

Vinit Pugaliya

former_member192152
Active Participant
0 Kudos

Vinit

I believe the solution to your problem is the construction of an EJB (statefull) is exposed via WebService playing the role of middleware.

regards,

Angelo

Former Member
0 Kudos

Sounds Good, but can i use a standalone application instead of EJB to process the data.

Also can you please let me know how do I pass the parameter from the standalone webdynpro application to the application which is created as an iView.

Basically in my standalone application i get the data, however I am unable to navigate to my main iview, can we use EPCF eventing to pass the values and if yes, please let me know how ?

Thanks,

Vinit

Answers (0)