cancel
Showing results for 
Search instead for 
Did you mean: 

How to declear a Web service on SAP J2EE server

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Daniel,

Could you please give me some detail informations about this? Which type of DC should I use (e.g. Webdynpro ? or just Java DC)? This would be great helpful to us.

Thanks a lot.

Best regards

Deyang

Former Member
0 Kudos

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

Answers (0)