on 11-12-2008 12:33 PM
Dear Expert
I have imported a webservice and created the model context and controller context. I need to identify what are the input and output of the webservice.
One more question how to set the input parameters and retrive the output parameters
and what is the code for executing webservice
Thanks & Regards
Vinu
Hi,
u can test the service in the web service navigator.
finally u have to execute the model in the component Controller .
Thanks and Regards
Fazal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinu,
log into wsnavigator http://nwserver:portnumber/wsnavigator .
select your service and here u will find methods defined for the same .
select the method required for ur component , test the method .
while testing , u will able to find the input and output parameters .
Thanks and regards
Hi ,
Please find the below code which I used for adaptive webservice model.
here my webservice is ABAP webservice.
WddoIniti()
Modeltest model = new Modeltest();
Request_BAPI_MATERIAL_EXISTENCECHECK req = new Request_BAPI_MATERIAL_EXISTENCECHECK(model);
BAPI_MATERIAL_EXISTENCECHECK mat = new BAPI_MATERIAL_EXISTENCECHECK(model);
req.setBAPI_MATERIAL_EXISTENCECHECK(mat);
wdContext.nodeRequest_BAPI_MATERIAL_EXISTENCECHECK().bind(req);
and write this code in onAction of button.
wdContext.currentRequest_BAPI_MATERIAL_EXISTENCECHECKElement().modelObject().execute();
wdContext.nodeResponse().invalidate();
Note: What ever you have under response node is output and what ever you have under main node is request.
You need to pass the data to input node and you get the output to response node.
working with webservice like setting and getting the data is similar to your RFC code. One more point is
wdContext.nodeResponse().invalidate(); is must in webservice.
Thanks,
Gopi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
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.