Skip to Content
avatar image
Former Member

adaptative web service or EJB ?

Hi everybody,

I want consume a web service from a system SAP R/3.

Apparently, we can consume with component EJB ...

What is the difference between a adaptative web service and EJB ?

More security with EJB ?

Thanks

Rodolphe.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 20, 2008 at 05:20 AM

    Hi,

    We use for ejbs when we have to store data in database..

    if ejbs r like a medium for data transfer..where session bean contain ur business logic..

    u cn use webdynpro interface as well as jsp interface wid ejb..

    if u r using ejb u'll have to create an ejb projct first then u'll hav to create java proct which will contain ur wrapper class for fields.later on u'll have to create one application project tht wud b an Ear projct.nw u create a web service for session bean ..aftr doin this all u can test webservice which will b executed for ur business method.

    for more security u can use ejb security model :[http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Security.html]

    Web services r created for session bean..so that u cn directly access ur methods via url..

    for a detailed description of web service go through :- [http://help.sap.com/saphelp_nw04/helpdata/en/d6/f9bc3d52f39d33e10000000a11405a/content.htm]

    for ejb project go through this1 :[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca4a9c90-0201-0010-c389-8738cd51a88e]

    Regards,

    Khushboo

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 19, 2008 at 01:37 PM

    Hi,

    If you is using NWDS 7.0 you can't consume an EJB directly, you will need to create a Command (Pattern) to wrapper your calls to EJB, so is more practice consume a Web Service Directly.

    I suggest you to read this document about Adpative Web Service. https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b04308ed-62d5-2910-b3a6-c26771b1c78e

    Best Regards

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I want consume a web service from a system SAP R/3.

      Apparently, we can consume with component EJB ...

      What is the difference between a adaptative web service and EJB ?

      More security with EJB ?

      I would suggest you to use adaptive webservice.

      If you use ejb to wrap the service this will be an additional layer and an overhead.

      Regards

      Ayyapparaj

  • avatar image
    Former Member
    Aug 20, 2008 at 06:54 AM

    Hi,

    For more information on Adaptive Webservice Model you can refer this thread also:

    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq%2b-%2bmodels%2b-%2badaptive%2bweb%2bservice

    you can also expose your stateless session beans which houses your business logic as webservices.

    You can configure the sequrity setting for Webservice in Visual Admin.

    In Context of ESOA ,Using of Webservice Makes your UI Loosly Coupled with your Business logic and makes your Application Scalable and Flexible,Later on if you want to migrate your business logic to other UI you can do that without extensive efforts,

    Regards,

    Siddharth

    Add comment
    10|10000 characters needed characters exceeded