cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure the sort and port of a SOAP address dynamically

Former Member
0 Kudos

Hi All,

In the “wsdl” we have the SOAP Address defined but in practice we would like to configure the host and the port. As the server on which the service resides may/will change.

For example:

http://usciq74.wdf.sap.corp:50077/sap/bc/srt/rfc/sap/CPM_PLANNING_HISTORY?sap-client=003

We would like to configure the proxy to point to say:

http://<host>:<port>//sap/bc/srt/rfc/sap/CPM_PLANNING_HISTORY?sap-client=003

What we see in the Proxy Code is:

port.setSOAPAddress(new com.sap.flex.ws.runtime.SOAPAddress("http://usciq74.wdf.sap.corp:50077/sap/bc/srt/rfc/sap/CPM_PLANNING_HISTORY?sap-client=003"));

How could this be achieved.

Please help.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Deboshree, do you have any documents on SAP interaction with hand held system. Please fwd to my email id anirudh.das@gmail.com

sbhutani1
Contributor
0 Kudos

you can edit your wsdl and can change the host name and port. just right click on wsdl and open it in notepad there you can change the host and port.

Also one more thing, whenever you will download the wsdl the host and port information will be pick according the the current system from which you are exporting the wsdl.

To change your host or make it dynamic, go to SICF and double click on default_host, there you can configure your host under host configuration information.

Regards

Sumit Bhutani

Former Member
0 Kudos

Hi Sumit,

Thanks for the quick response. However, I do not want to change the host and the port in the wsdl. I want it to be so, that it will pick the host and port dynamically(as you have mentioned). However, in out case, the web service has the SOAP address hardcoded as <b>http://usciq74.wdf.sap.corp:50077</b>.

We would want to write something as http://host:port and then let it pick the host and port dynamically. How is that possible.

Best Regards,

Debashree.

sbhutani1
Contributor
0 Kudos

Hi Debashree,

I think the one option is to create a virtual host for this.

You can refer this link for setting up the virtual hosts in ICF configuration

http://help.sap.com/saphelp_nw04/helpdata/en/85/5c543aa24b511ce10000000a11402f/content.htm

Regards

Sumit Bhutani