cancel
Showing results for 
Search instead for 
Did you mean: 

WebService security

Former Member
0 Kudos

hi all...

Do any one know how to pass the url directly in the http destination so that on change of server manual hardcore is not required

Accepted Solutions (1)

Accepted Solutions (1)

Abhinav_Sharma
Contributor
0 Kudos

Hi,

You want to pass the url of your webservice to the destination? and you don't want to hard code it? right.

You can get the <webservicename>Impl var = ModelName.getServiceImple();

and then you can use

String url_target = var.getConfig1PortDocument()._getProperty(

var.getConfig1PortDocument().ENDPOINT_ADDRESS_PROPERTY)

+ "";

Hope this helps.

Plz reward points.

Abhinav Sharma

Former Member
0 Kudos

Hi all,

Thanks to u all i think i got the solution...for my problem

Answers (2)

Answers (2)

Former Member
0 Kudos

Hai ,

wdContext.currentRequest_XXX.modelobject()._setHttpDestintaionName("http destionation");

or

wdContext.currentRequest_XXX.modelobject()._setEndpoint("webservice url");

regards,

naga

Former Member
0 Kudos

can you please explain in detail