on 08-11-2009 4:08 PM
Hi,
I have create a WebService Model with DEV url (some Dev URL ) using
Import WebService Model DEPRECATED option
Now my application is moving to TEST and PROD.
Is it possible to change DEV URL in webdynpro application application without reconfiguring MODEL or recreating new
with TEST and PROD urls.
Please help me
Hi,
You need to use adaptive webservice model to change the webservice URL based on the environment i.e. Dev,Test or production which is availiable in NWDS 2004s environment.
You can refer to links mentioned in below forum.
if you you are using webservice model then you need to write the code to generate URL for end point dynamically based on the application environment.
and then you need to set EndPoint of webservice model with that URL befroe execution of the model.
e.g.
String l_endpointurl ="http://"+ l_Server+ ":"+ l_port+ "/webservice name/Config1?style=document";
l_modeloobject.modelObject()._setEndPoint(l_endpointurl);
//if service is secured....
l_modeloobject.modelObject()._setUser(l_userID);
l_modeloobject.modelObject()._setPassword(l_pwd);
l_modeloobject.modelObject().execute();
Regards,
Shruti.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Instead of Using depricated model Adaptive Webservice mdel should be used.
You can modify logical destinations in Visual admin as based on the location of the webservice such as Development,quality or production.
You can get the information about adaptive webservice model in the following artical.
and if you are using depricated model then you can use the code which i have mentioned in the previous reply.
Regads,
Shruti.
hi
best thing was to go with using import webservice model rather than deprecated model
and create destination in visual admin tool , this will help you when you move from dev to QA to prod or even to
test server .
because when you create destinations in the visual admin tool for the webservice which points to the development
when you are working on the development server , you need just change the paramaters for the destinations in
visual admin tool which currently points to development serve to test server or any other which ever needed ,
as your destination would contain the metadata of your webservice , there is no need to change the webservice
every time you move from server to other .
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes it is possible. If you are working in NWDS 7.1 CE , you can use logical destination. In case of earlier versions you can use HTTP destinations on dev , test and prod server. Then every time you move your application you dnt hv to bother about changing URL of models.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am not sure if thre is any straight forward way. Try if there is any file in Package Explorer of the component.
Regards
Srini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.