cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Roberts <i.robe...@dcs.shef.ac.uk>
Subject Re: Attributes portName, serviceName and endpointInterface are not allowed in the @WebService annotation
Date Tue, 22 Apr 2008 16:40:09 GMT
jblack wrote:
> I am using the example code from the link below as a reference, but the
> webapp fails to initialize with the a stack trace.
> http://www.lumidant.com/blog/web-services-tutorial-with-apache-cxf/
> http://www.lumidant.com/blog/web-services-tutorial-with-apache-cxf/ 
> 
> I also found a number of examples where the @Webservice annotation has
> multiple combinations of the attributes in question, so I'm looking for some
> definitive help.

The serviceName, targetNamespace, portName, etc. belong on the 
@WebService annotation on the interface.  The implementation class 
should just have @WebService(endpointInterface = "interfacename").

Ian

-- 
Ian Roberts               | Department of Computer Science
i.roberts@dcs.shef.ac.uk  | University of Sheffield, UK

Mime
View raw message