cancel
Showing results for 
Search instead for 
Did you mean: 

WebService Model

Former Member
0 Kudos

Hi,

I have created a webdynpro model from webservice using the webservice url.

Now the problem is that the same webservice is deployed on to another system and how can my webdynpro model can point to the new url of the webservice?

Is there any way where I can change the new location of the server without rebuilding or deploying again?

Thanks for your time and effort.

Regards,

Shiva Kumar.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Shiva,

If you have to do this without rebuilding or re-deploying, you should use J2EE HTTP Destination. Then, the URL is not "hard-coded" in the application. If you have a chance, re-model your application so that you dont have an issue next time.

Regards, Parag.

Former Member
0 Kudos

Hi Parag,

Thank you very much for your response. Can you tell me briefly how to use j2ee http Destination without hard coding the url in webdynpro or else point me to some document or pdf which explains the whole process.

Thanks your time.

Regards,

Shiva

Former Member
0 Kudos

Hello Shiva,

You could see the following thread . Once you retrieve the URL from the HTTP destination, call the _setEndpoint method to set this dynamically. Now, your application is dependent on the HTTP Destination parameters. Of course, you have to hard code the HTTP Destination or if you realy want to do it dynamic, use application parameters and pass the HTTP destination as parameter value.

There are other forum threads that also talk about this; dont know if there is a tutorial on this topic.

Hope it helps, all the best.

Regards, Parag.

Former Member
0 Kudos

Hi Parag,

Thank you very much for the information. I tried the same thing and able to get the http url in my code and set the same using setHTTPDestinationName() and set some dummy url in Config1PortDocument.

But unfortunately it still points to Config1Port_Document and says that so such dummy url exists instead it should take from _getHTTPDestinationName method.

Do you any have idea on how to proceed further?

Thanks & Regards,

Shiva Kumar.

Former Member
0 Kudos

Hi Parag,

Its working .. Thank you very much for your help.

Giving full points ...

Regards,

Shiva Kumar

Answers (1)

Answers (1)

former_member8655
Active Participant
0 Kudos

hi Shiva

In your model you have created you will have a file

<b>logical port-->configport_document</b>

in this file u put up your new url and now ur model will point to that system

Happy New Year

Mitesh