on 05-30-2007 1:17 AM
Hi,
I need to capture URL of the webdynpro application for hostname and port and then use it in my application.
Please advise me in this regard.
Thanks
Prasad
Hai,
If you want to get the host name and port of your app simply use
String hostName = TaskBinder.getCurrentTask().getProtocolAdapter().getServerName();
int port = TaskBinder.getCurrentTask().getProtocolAdapter().getServerPort();
Regards,
Naga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can get the application url like this.
String deployableObjectName = wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
String part = wdComponentAPI.getApplication().getDeployableObjectPart().getName();
try {
WDDeployableObjectPart deployableObjectPart =WDDeployableObject.getDeployableObjectPart( deployableObjectName, part,WDDeployableObjectPartType.APPLICATION);
String applicationURL1 = WDURLGenerator.getAbsoluteWebResourceURL(deployableObjectPart) ;
wdComponentAPI.getMessageManager().reportSuccess("urlToTargetApp"+applicationURL1);
} catch (WDURLException e)
{
wdComponentAPI.getMessageManager().reportException("Exception:"+e,true);
}
catch (WDDeploymentException ex)
{
wdComponentAPI.getMessageManager().reportException("Exception:"+ex,true); }
Also check this thread for getting the server name
https://forums.sdn.sap.com/click.jspa?searchID=2783356&messageID=329724
Regards,
Vijai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prasad,
did you find the URL for your Web Dynpro app? If not, just right click on the app and that will give you the host name and port and parameteres passed etc.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.