cancel
Showing results for 
Search instead for 
Did you mean: 

How to change adaptive webservice destination

Former Member
0 Kudos

Hai Every one ,

i developed adaptive websrvice model using WSDL file.

that WSDL destination is changed.

For this where i need to change the wsdl path in application.

i want to know how to change wsdl file path in adaptive webservice model.

Accepted Solutions (1)

Accepted Solutions (1)

snehal_kendre
Active Contributor
0 Kudos

Hi,

You can change the wsdl path , there are standerd methods of WS model,using which you can refer to other destination.

wdcontext().current##########().modelObject()._ setEndPoint

using _setendpoint, _setusername _setpassword. you can change path and credentials of WS

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If you want to destinations or wsdl URL, then

follow this way.

Expand Models node in Webdynpro explorer

Models><ModelName>>Model Classes--> double click on any <Request_ Node>.

Now choose properties below.

Here you can change URL and destinations

OR

If you want to do it programatically, then use this code

<ModelName> model=new <ModelName>();

<RequestNode> objRequest = new <RequestNode>(objModel);

objRequest.wdSetInvocationModifier(new IWDWSInvocationModifier() {

public void doModifyInvocation(Object port) {

HTTPControlInterface httpItf = HTTPControlFactory.getInterface(port);

SOAPHeaderInterface soaptf = SOAPHeaderIFactory.getInterface(port);

httpItf.setEndpointURL(<new WSDL URL>);

public void doModifyAfterInvocation(){}

});

Regards

LN

Edited by: Lakshmi Narayana Chowdary Namala on Sep 9, 2008 1:45 PM

Edited by: Lakshmi Narayana Chowdary Namala on Sep 9, 2008 1:46 PM