Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9171057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:06:41+00:00 2026-06-17T16:06:41+00:00

I have been doing some reading up on web services programming with Java, Eclipse,

  • 0

I have been doing some reading up on web services programming with Java, Eclipse, etc. and I found one particular example where the person created the web service and client by doing the following:

  1. define the web service java class (interface + impl)
  2. deploy the web service using Endpoint.publish
  3. grab the wsdl from the url of the web service (eg, localhost://greeting?wsdl)
  4. use wsimport to generate stubs
  5. create a client class using generated stubs

Is there another way to generate the wsdl without having to publish the web service and download it? Perhaps a maven plugin to auto-generate wsdl and client stubs?

Update: Rather than creating a new question I am just going to piggyback on this one.

I have created my web service by defining an interface:

@WebService
public interface HelloWorldWs {
    @WebMethod
    public String sayHello(String name);
}

and an impl class:

@WebService(endpointInterface = "com.me.helloworldws.HelloWorldWs")
public class HelloWorldWsImpl implements HelloWorldWs {
    @Override
    @WebMethod
    public String sayHello(String name) {
        return "Hello World Ws, " + name;
    }
}

When I run wsgen I get the following error:

The @javax.jws.WebMethod annotation cannot be used in with @javax.jws.WebService.endpointInterface element.

Eclipse seems to be okay with it.

Any idea why?

Note, I originally did not have the annotation but when I tried to call my webservice I got the following error:

com.me.helloworldws.HelloWorldWsImpl is not an interface
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:06:41+00:00Added an answer on June 17, 2026 at 4:06 pm

    The JSR 224 says in 3.1 section:

    An SEI is a Java interface that meets all of the following criteria:

    • Any of its methods MAY carry a javax.jws.WebMethod annotation (see 7.11.2).
    • javax.jws.WebMethod if used, MUST NOT have the exclude element set to true.

    If the implementation class include the javax.jws.WebMethod, then you cant put @WebMethod(exclude=true) and that in not possible, according to specification.

    Depends of custom version of Eclipse, shows a warning for this. e.g. Rational Application Developer for Websphere shows:

    JSR-181, 3.1: WebMethod cannot be used with the endpointInterface 
                  property of WebService
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been doing some reading lately one article I read was from Opera.
I've been doing some simple web programming using python, and I have a basic
I have been doing some x86 programming in Windows with NASM and I have
I have been doing a little reading on Flow Based Programming over the last
I have been doing some reading, and I see that I can use getch()
I have been doing some reading about the JBoss Naming Service JNDI provider. I
I have been doing some reading in preparation for starting my first WCF project
I've been doing some reading recently and have encountered the Law of Demeter. Now
I have been doing some unsafe bitmap operations and have found out that increasing
I've been doing my research about exposing Eclipse plugins as web services, but I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.