on 04-15-2007 2:57 AM
Hi to all
I want do it the following task:
Make a FM in Abap (Transaction code SE37)
Make a local Web Services
I want do it a Web dynpro for Java, and call this Web services
I already make the FM, and the WS,...
But, How Can I do it, by call rhe WS from my WD ??
Thank you by their aid
regards
Dario
Hi Hernan,
You can use the webservice model to use either any local or third-party webservices. Since the the only interfaces of any webservice for our programs are the REQUEST and RESPONSE parameters so the imported webservice model will have various request and response variables. ( Same as we have input & output incase of RFCs)
Steps :
1. Get the wsdl file for the webservice. Store it on local drive.
2. Create a WD application that uses a webservice model.
3. Create a webservice model and import the WSDL file fro previous steps.
3. The model proxy classes are automatically created. You can see the request
& response parameters.
4. Identify the request and response parameters of your interest.
5.. Create a component controller context structure as per the identified
parameters from the model.
6. Do model binding. i.e map the model parameters to that of the controller's
context variables.
7. Create an event source and an event handler.
8. Call the webservice execute function in the event handler( same as adaptive rfc).
One more important step. You can test the wsdl file from the original source itself.
1. Go to Enterprise Portal perspective of NWDS.
2. Goto Window -> Show view -> SAP Enterprise POrtal Webservice Checker.
3. In the pane that appears, enter the url for the wsdl file of webservice.
4. You can see the SOAP request and Response parameters here.
5. You can enter dummy values for the request parameters and see the response
( output) on running it.
Hope this helps you.
Regards,
Prasanna.
P.S : Award points for helpful reply
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Dario
If your J2EE version is NW04 SP17 or more(NW04s SP6 or more), it is
recommended to use Adaptive Web Service Model of WD Java.
Web Dynpro Java FAQ - Models - Adaptive Web Service
And for the unit test after you created Web Service, i recommend
you to test first with Web Services Navigator!
http://help.sap.com/saphelp_nw04s/helpdata/en/b7/d7baaf1481a349ab723e3acd7334b3/content.htm
Best Regards.
Sejoon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
check this out for "Importing web service model"
http://help.sap.com/saphelp_nw04/helpdata/en/f4/abe4107f46334bb8640a090e5806fc/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/da/2bf042493ef54499a77394ef6be096/frameset.htm
also check this thread
and here you will get some tutorials on the same
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c8780... [original link is broken]
hope it helps
regards
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 'Web Service' tutorial.
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/46bae990-0201-0010-bc98-d2fecedfaf... [original link is broken]
Omri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can create a model within Web Dynpro, I believe one of the options(other than Adaptive RFC) is web service. Simply choose this option. I would assume that it would ask you for the WSDL file and then generate the model based on that. Then you can simply execute the model from your WDJ application.
Regards,
RIch Heilman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.