JAX-WS web services with MyEclipse

Posted on 2009-04-28
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 (, 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}/ 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?
Question by:mrjoltcola
    1 Comment
    LVL 40

    Accepted Solution

    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.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project ( automates most of the tasks discussed in this article. You can even fin…
    In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
    This video teaches viewers about errors in exception handling.
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now