cancel
Showing results for 
Search instead for 
Did you mean: 

EJB as WS.

arpitgoyal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Any tutorial for making EJB based APIs Web Service Enable (NW 7.1). (didnt find any such prior info on this forum).

Regards,

Arpit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Arpit,

you can read this tutorial

[click|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00be903b-8551-2b10-c28a-8520400c6451]

Instead of creating a command bean you can create easily in the session bean a web service of the session bean,

Regards

Flo

arpitgoyal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

I dont have access to this link. Could you point me to person who might grant me this permission or download the doc (if possible) and share it at some location (where i can access)

~A

Former Member
0 Kudos

Just annotate the bean with @WebService and the business methods (which you want to expose as Web Service operation) with @WebMethod. Annotations for Web Service are defined in [JSR 181: Web Services Metadata for the Java Platform|http://jcp.org/en/jsr/detail?id=181]

Also you may read [Exposing the Implementation EJB as a Web Service|http://help.sap.com/saphelp_nwce10/helpdata/en/46/a82783f9ee371ce10000000a11466f/frameset.htm] for step by step approach.

Bala

Answers (0)