on 02-17-2011 5:58 PM
Hello all,
I need to call a SAP function (RFC) as a webservice in JavaBeans. Im looking for information or a simple example but Im not able to find it. Do you know any link or documentation to be able to start with it?.
I tried to invoke the service from JavaBeans but it doesn´t works.
I can add the webservice in JavaBeans without any problem and the classes are generated fine (response etc...), but ¿how to call it?
Thanks in advance.
Regards.
Hi,
I hope you already generated webservice out of RFC.
You should call RFC webservice like any other webservice from Java bean (I guess by creating object of webservice class and calling method).
Regards,
Gourav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>what do you mean with generate webservice out of RFC?
In order to consume RFC as webservice you need to generate webservice from RFC (using webservice creation wizard).
I guess you already did.
I don't know exact java code to call WS, once you created proxy in NWDS you should be able to see class and method which you can call to consume webservice.
Regards,
Gourav
Hi,
Please refer the following link:
http://www.riyaz.net/blog/xipi-consuming-xi-web-services-using-web-dynpro-part-ii/technology/sap/7/
I hope this helps to understand the process
Thanks,
Himadama
Hello,
that is a matter of taste but you could also do following:
You could try to use the JCo in order to call it from the Java Bean via RFC.
http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/content.htm
Further on you can create a WebService from the Java Bean if needed.
P.S.
I suppose the Function is remote enabled (if not you have to write a remote-enabled wrapper).
Best Regards,
Diana Abu-Gosh
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.