cancel
Showing results for 
Search instead for 
Did you mean: 

change end point of web service model

Former Member
0 Kudos

Hi all

I need to dynamically modify end point for a web service model without reimport/rebuild/deploy.

When I invoke ws I can't change end point url, but I can change it only in NWDS model properties.

This is very inefficient when I need to maintenance my application (for example in develop/test/production

steps).

There's any way to change ws url? SLD? Configuration file?

Thanks

Andrea

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Andrea,

Use following code to change endpoint dynamically.

wdContext.current<model node>Element().modelObject()._setEndPoint("<End point>");

Write this code before executing your WS model.

Regards,

Bhavik

sridhar_k2
Active Contributor
0 Kudos

Hi Bhavik,

Can you plz give some more information how to change the endpoint?

Do we have any option to change in a particular file( any .xml file), without changing the model Logical Ports? If any one has done this before , plz help me.

Thanks,

Sridhar

Former Member
0 Kudos

Hi Andrea,

You cannot change the end point of the web service without reimporting the web service model.

No other way to do.

regards,

Mahesh