cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a Web Service From an existing Java Project

Former Member
0 Kudos

Hi folks,

I'm new to web services and SAP Netweaver so I need to know if I can use my exisiting Java codes (not EJB's though) for creating web services and the WSDL. I've already gotten the codes working and all and just need to make them into web services and deploy them (plus give my WSDL).

I've noticed in some samples that they used EJB's for creating new web services and I've been trying to find samples/steps on just creating webservices from exisitng java codes. I've been using AXIS but I've been told that creating web services using the Netweaver Developer Studio is rather easy.

Thanks in advance!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Yes...its just a piece of cake with NWDS follow the link below and you will find how you can expose your

a. Simple Java classes [http://help.sap.com/saphelp_nw04/helpdata/en/2b/a6888f335a6d48b968ffdd59a25d1b/content.htm]

b. EJBs [http://help.sap.com/saphelp_nw04/helpdata/en/f7/af60f2e04d0848888675a800623a81/frameset.htm]

as web services using NWDS and deploy them to SAP WebAS.

Former Member
0 Kudos

Hi Amol!

Thanks for the link

I was trying it out, but could you see if this was correct:

I just made one simple java project (with one class file) and using the link you sent me and did just the step for using the web service Creation Wizard. I made it say Test service and got into the Web Services Explorer but it says it couldn't open my wsdl:

IWAB0379E Unable to open http://localhost:50000/HelloBeanService/HelloBean?wsdl.

IWAB0135E An unexpected error has occurred.

WSDLException

WSDLException: faultCode=OTHER_ERROR: http://localhost:50000/HelloBeanService/HelloBean?wsdl

Did I miss a step?

Thanks again!

Former Member
0 Kudos

Ooops...I just realized I wasn't using version 7 of NWSD earlier and have now switched back to that.

Would you happen to know of any step by step instructions/samples that I can study?