[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

JAX-WS web services with MyEclipse

Posted on 2009-04-28
1
Medium Priority
?
2,108 Views
Last Modified: 2013-12-15
If anyone here has experience with JAX-WS in Eclipse, or especially MyEclipse, how do you name your services / packages? I ask, because when I create a single package for my services (foo.services), and then create a POJO in the package and create a web service with the wizard, the code is generated under .apt_generated/foo/services/jaxws directory according to the package name and method name, so presumably if I have multiple classes with the same method name in that package, there will be a clash.

This is what I mean:

I write:

{package name}/FooService.java and add an Add method to FooService

MyEclipse / JAX-WS Annotation Processing Tool generates:

.apt_generated/{package name}/jaxws/{method name}.java


My approach with services is to use CRUD operations per each domain object, or whatever makes sense in my application. Usually I instantiate with Spring. However, mapping them to JAX-WS is a bit confusing, because I cannot find good documentation on how JAX-WS expects namespaces / packages. I do not like having a different package for each web service, but is this what is required?
0
Comment
Question by:mrjoltcola
1 Comment
 
LVL 40

Accepted Solution

by:
mrjoltcola earned 0 total points
ID: 24257210
I ended up using a package per service, to solve the clash. This is the only option I see, besides using a single, large service class.
0

Featured Post

When ransomware hits your clients, what do you do?

MSPs: Endpoint security isn’t enough to prevent ransomware.
As the impact and severity of crypto ransomware attacks has grown, Webroot fought back, not just by building a next-gen endpoint solution capable of preventing ransomware attacks but also by being a thought leader.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses
Course of the Month18 days, 9 hours left to enroll

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question