on 09-09-2008 4:59 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
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.