Skip to Content
avatar image
Former Member

How to declear a Web service on SAP J2EE server

Hello everyone,

we have the following requirement: we implement our application service layer through POJO not EJB. and we would like to expose these service method as web service.

So does anybody knows how to declear them as web service?

Thanks a lot!!

Best regards

Deyang

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Sep 18, 2007 at 04:24 PM

    Hi,

    Use SAP Developer Studio. You could also define WebServices from POJOs. In the WebService Perspective right mouse on your class and there should be a menu entry to create the ws.

    Regards,

    Daniel

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      If you want to use DCs you have to create a DC of Type Java which helds your POJO. In the WS perspective select "Show DC projcets only" (click on the black triangle in the top right corner of the WS Perspective Java Explorer). Then mark your class and select "Create Web Service ...". When your WS is created select the Web Service Definition and choose "Add WSD to public part". After that make a DC Build and you get an ear file which you can deploy to the engine.

      Regards,

      Daniel