on 11-13-2006 11:18 AM
Hi.
I am importing an adaptive webservice model in webdynpro using a URL. When asked i choose <i>no logical destinations - use WSDL URL for metadataretrieval and webservice execution</i>.
The webservice exports one function only:
public String returnTestString(String arg1);
.
In my component controller wdInit() i have the following code:
String_arctest model = new String_arctest();
wdContext.nodeRequest_ReturnTestString().bind(new Request_ReturnTestString(model));
wdContext.
nodeRequest_ReturnTestString()
.nodeReturnTestString()
.bind(new ReturnTestString(model));
wdContext.nodeRequest_ReturnTestString()
.nodeReturnTestString()
.currentReturnTestStringElement().setArg1("HalloWelt");
wdContext.nodeRequest_ReturnTestString()
.currentRequest_ReturnTestStringElement().modelObject().execute();
wdContext.nodeResponse().invalidate();
wdContext.nodeResponse().nodeReturnTestStringResponse().invalidate();
When executing the code the <b>execute()</b> throws an <i>com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException </i> with following message cause: <i>Cannot find the required parameter [arg1] in request message content. Exception on execution of web service with WSDL URL </i>
I appreciate any help. Thanks in advance.
Hi,
Sorry.That is SetXXX method not addXX
Ex : req.setReturnTestString(str);
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try the following.
String_arctest model = new String_arctest();
ReturnTestString str=new ReturnTestString(model);
str.setArg1("HalloWelt");
Request_ReturnTestString req=new Request_ReturnTestString(model);
req.addReturnTestString(str);
wdContext.nodeRequest_ReturnTestString().bind(req);
wdContext.nodeRequest_ReturnTestString()
.currentRequest_ReturnTestStringElement().modelObject().execute();
wdContext.nodeResponse().invalidate();
wdContext.nodeResponse().nodeReturnTestStringResponse().invalidate();
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.