cancel
Showing results for 
Search instead for 
Did you mean: 

WSDL Qestion - Urgent

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

I have created the Http Destination and used the same in the code but still its calling the WSDL that i used initially while creating the model.

Can you please let meknow where else i have to make code changes so that it looks for the destination that i created.

-Haritha.

Former Member
0 Kudos

Haritha,

Check out this post:

It mentions that if the destination or url in the destination is invalid, it will use the orignal url.

You might need to check that the destination names match and the url setup in Visual Admin. is correct.

-Cindy

Former Member
0 Kudos

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

Former Member
0 Kudos

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