on 03-12-2011 12:22 AM
Hello all,
I would like to get the host and port of the current Web Dispatcher.
There is a method IF_HTTP_SERVER~GET_LOCATION to get the current server instance, however I need the dispatcher.
Is there any method to get this information?
Thank you for your assistance.
Best regards,
Kurt.
Hi,
I think you can find your answer if you follow the below link.
http://help.sap.com/saphelp_nw70/helpdata/en/ea/c30829166944edbc74b3c805bf529f/content.htm
Also look into the below link for more related information.
http://help.sap.com/SAPhelp_nw70/helpdata/en/fe/cda776f2f64d5287c614b2f715c25f/content.htm
Hope it helps.
Regards,
Sujit.
Edited by: Sujit Kumar Banerjee on Mar 12, 2011 3:47 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If your web dispatcher is well configured, you can get the needed information in the header fileds set by the web dispatcher :
host
clientprotocol parameter : wdisp/add_clientprotocol_header = true
x-sap-webdisp-ap parameter : wdisp/handle_webdisp_ap_header = true
There are abap methods to read header fields.
IF_HTTP_ENTITY~GET_FORM_FIELD for exemple
Regards,
Olivier
Hello Olivier,
thank you for your hint!
I set the above mentioned parameters, however I got no entry by the IF_HTTP_ENTITY~GET_FORM_FIELD.
I also tried to get all parameters by IF_HTTP_ENTITY~GET_FORM_FIELDS (gets all field values). It is also not working.
Is there any other possibility to get the host/port of current Web Dispatcher?
Thanks & best regards,
Kurt.
Hello Kurt,
I've never done it my self but of course it is possible because SAP standard code does it.
My suggestion : Enable the it00 standard BSP application.
Then call the following URL :
https://webdispatcher/sap/bc/bsp/sap/it00/misc_echo.htm
All header fields will be displayed including the ones I told you.
Then look at the source code of this page. I am not an abaper but it seems that the interesting code is :
DATA: ffs TYPE TIHTTPNVP,
ff TYPE IHTTPNVP.
request->GET_HEADER_FIELDS( CHANGING fields = ffs ).
LOOP AT ffs INTO ff.
So I think my mistake was to tell you GET_FORM_FIELDS instead of GET_HEADER_FIELDS.
Hope this helps.
Olivier
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.