on 05-04-2006 2:18 PM
Hi,
I have a model created from Development Server wsdl and now when we migrate to QA Server the WSDL is same but the host is different. Can you please help me how can i create a webservice model with WSDL that is independent of Server. The webservice remains same on all the servers only the host name changes.
Please help me.
Haritha
Hi Vitaliano Trecca ,
Thanks for your response. Actually i do not have the webservice deployed in my Server. I have created the Model based on the WSDL. Now This WSDL will change when it goes to QA. So looking how can i make the url dynamic with the Server specific.
-Haritha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Haritha,
Where is your webservice is running?
If this webservice is not running on your WAS server, but it is a external service then why you want to change host name for the web service?
If at all, you want to change the hostname on different servers, then best idea is to make a web service destination in visual administrator for this web service and use this destination in the code.
To make it effective, you have to create destinations on each system like developement, QA, Productions.
I guess this is what you want, right?
Regards,
Bhavik
Hi Bhavik,
Yes the Webservice is running on another Server. And i have created a webservice model in my webdynpro component with the wsdl. This wsdl has the host and port of the dev server. Now when my Webdynpro component is moved to QA server still it will point to the Dev Server only right. And hence i have to change the host and port.
Can you plz give me a quick hint/link on creating http destination in Visual Admin and using the destination in the code.
-Haritha.
Haritha,
There is a tutorial on security for WD that includes HTTP destinations for web services. The link below is to the security tutorial page. You want tutorial #3 on the page. In the pdf doc, look at the contents page for HTTP Destinations to find the right page #. It describes how to set it up in WD and in Visual Admin.
https://www.sdn.sap.com/irj/sdn?rid=/webcontent/uuid/adcfa85d-0501-0010-a398-80a47b8e3fc2 [original link is broken]
-Cindy
Hai Haritha ,
you are using web service models from other server, it is changing the host right,
I solved this problem by doing this.
how you are executing your webservice in webdynpro.
do this
wdContext.currentRequestXXX().modelobject._setEndpoint("here type your wsdl full url in whch server you are using");
wdContext.currentRequestXXX().modelobject.execute();
Try this.
I hope this will solve your problem.
regards,
Naga Raju
I am not 100% sure but did you give a look at destination service? This is also how ADS client connects to the ADS server via web service.
Otherwise you will need some code to force the new destination in your web service proxy client.
here some info: http://help.sap.com/saphelp_nw04/helpdata/en/07/0d27932264284b883dab13ce1008a6/frameset.htm
and here: http://help.sap.com/saphelp_nw04/helpdata/en/59/e8e95d1eba48dfa86ae91ad8816f5d/frameset.htm
Kind Regards,
Vitaliano
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.