cancel
Showing results for 
Search instead for 
Did you mean: 

WebServices in EJBs

Former Member
0 Kudos

Hi,

Is it possible to deploy a standard EJB into the NetWeaver AS and then host a Web Service from this EJB.

After this, Is it possible to call this WebService from outside (EG: A Java APP outside the context of the Server?)

Cheers,

Earlence

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Is it possible to deploy a standard EJB into the NetWeaver AS and then host a Web Service from this EJB.

Yes, see [Creating an Inside-Out Web Service from an Enterprise Java Bean|http://help.sap.com/saphelp_nwpi711/helpdata/en/46/78955dcb496ef0e10000000a1553f6/frameset.htm]

After this, Is it possible to call this WebService from outside

Yes, [deploy the Web service|http://help.sap.com/saphelp_nwpi711/helpdata/en/44/f3e0e6e8ce6c30e10000000a114a6b/frameset.htm] and then [create an endpoint|http://help.sap.com/saphelp_nwpi711/helpdata/en/4a/16934f06441b40e10000000a42189c/frameset.htm] for it. Now you will be able to call the Web service.

Hope this helps,

Rossen

Former Member
0 Kudos

Hi,

That information was very good.

I don't have much experience with EJBs. Can you point me to a step-by-step guide/wiki/blog where the procedure is detailed?

Cheers,

Earlence

ekaterinamitova
Advisor
Advisor
0 Kudos

Hi Earlence,

This is a document from the EJB documentation at SAP Help Portal that explains how to expose an EJB as an Web service endpoint:

http://help.sap.com/saphelp_nwce711/helpdata/en/46/307a6c50094f09e10000000a114a6b/frameset.htm

I hope this helps.

Best regards,

Ekaterina

Former Member
0 Kudos

Hi Earlence,

You can try some of these tutorials:

[create ejb application and configure it into webservices |;

[How-to create a web service with attachments|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/6014] [original link is broken] [original link is broken] [original link is broken];

[How-To Create Dynamic & Configurable Web Services Easily With Netweaver Development Components|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5838] [original link is broken] [original link is broken] [original link is broken];

[Developing Web Services in J2EE and consuming in SAP NetWeaver Visual Composer|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/14743] [original link is broken] [original link is broken] [original link is broken];

[How to Create a Web Service using Enterprise JavaBeans|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10]

You can find many more results like these by [searching SDN|http://www.sdn.sap.com/irj/scn/advancedsearch?query=ejbwebservice].

Hope this helps,

Rossen

Answers (0)