cancel
Showing results for 
Search instead for 
Did you mean: 

Web Services - Simple Java Classes

Former Member
0 Kudos

Hi folks,

I'm new to using Netweaver and web services in general. I have some existing simple java classes already that I want to convert to a web service. I've decided to try and do a simple test first to make sure I understood how to do this correctly so I followed the steps outlined in this link: (I find I understand this better than the other help files)

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60046fb9-ac5b-2910-08a6-b7b04b463c62">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60046fb9-ac5b-2910-08a6-b7b04b463c62</a>

In the end what I got was a class file that has been turned into webservices (the code has @WebService, etc). When I try to do a deployment, everything goes well but I'm not quite sure which link I should use to check out my WSDL or anything. I tried the link like in the article above (but used http://localhost:50000 instead) and wound up getting a 404 error. Is there something I'm doing wrong?

Also, as a quick follow up...since the link shows steps on building EJB's for web services, is it correct to assume that I can use the same steps when building simple java classes? (Create project --> Java Project, create my methods/classes, create new webserive and put slider to Test to check if everything works).

Any help with this will be greatly appreciated I've been trying to figure this out for days already.

Accepted Solutions (0)

Answers (1)

Answers (1)

Vlado
Advisor
Advisor
0 Kudos

Hi Bianca,

Welcome on SDN!

Have you tried to follow the steps exactly as described in the above document? That is, move the slider to "Develop service", then deploy your application, and request http://localhost:50000/HelloWorldBeanService/HelloWorldBean?wsdl - this worked fine for me.

> I find I understand this better than the other help files

Well, which help files you use depends on which version of the NetWeaver AS Java you're using. The link above is applicable to the Java EE 5 preview version; the help files you're probably referencing are the official documentation of the NetWeaver 04 and 04s releases.

Hope it helps!

-Vladimir