cancel
Showing results for 
Search instead for 
Did you mean: 

Importing Webservice

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member201361
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Fazal

Thanks for your reply while importing i am getting lot of node and attributes in which i am not able to identify the input and output parameters since i am not a webservice developer

Please help in providing the code for same also

Regards

Vinu

former_member201361
Active Contributor
0 Kudos

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

former_member201361
Active Contributor
0 Kudos

Hi,

for further information , please follow this link

[http://help.sap.com/saphelp_nwce10/helpdata/en/46/7a875063e42d86e10000000a11466f/frameset.htm]

Tanks and Regards

Answers (1)

Answers (1)

Former Member
0 Kudos

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