Getting javax.xml.ws.WebServiceException: SEI is missing @WebService annotation: interface '<interface name>'

Solution Verified - Updated -

Issue

  • We have generated a web service client using the jboss wsconsume tool via the org.jboss.ws.plugins Maven 2 plugin. The wsdl file and web service is being provided by a third party and is implemented in .NET.

  • We had to generate the client code by pulling down the wsdl files and we are providing them on the local file system. We are also referencing the wsdl files from a local http server and changing the endpoint dynamically in the code that calls the generated client code.

  • We are getting the following error when we try to instantiate the remote interface class:

ERROR [colorado.dor.gip.service.mir.impl.MasterInterceptRepositoryWS, 2013/12/03 13:45:16]: caught exception creating remote interface: 
javax.xml.ws.WebServiceException: SEI is missing @WebService annotation: interface <ExampleInterface.class>
  • The ExampleInterface has the annotation in question present in the java class that the wsconsume tool generates. The suspect seems that there is some class loading issue but we are not sure where to start.

  • It appears as though the jboss web service client library parses the entire wsdl tree at run time. Is this behaviour avoidable?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content