I need some help understanding the WebService Annotations.

1. In the jUDDI project we generated our WebServices Java classes from the WSDL using the CXF tooling. For the InquiryService it created annotations on the interface of:

@WebService(name = "UDDI_Inquiry_PortType", targetNamespace = "urn:uddi-org:v3_service")
public interface UDDIInquiryPortType

and on the implementation class:

@WebService(serviceName="UDDIInquiryService",
            endpointInterface="org.uddi.v3_service.UDDIInquiryPortType",
            targetNamespace = "urn:uddi-org:v3_service")
public class UDDIInquiryImpl extends AuthenticatedService implements UDDIInquiryPortType



2. On the client side we are calling into the service with:

QName qName = new QName("urn:uddi-org:v3_service", "UDDI_Inquiry_Port");
Service service = Service.create(new URL(endpointURL), qName);
inquiryService = (UDDIInquiryPortType) service.getPort(UDDIInquiryPortType.class);


3. All seems to work quite well, however https://issues.apache.org/jira/browse/JUDDI-428 reports that they get the following warning when deployed to JBoss

"2010-11-02 14:00:36,921 WARN [org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder] Cannot get service '{urn:uddi-org:v3_service}UDDIInquiryService' from the given wsdl definitions! Eventual policies attached to this service won't be considered."

QUESTION:

Can someone explain to me what the difference is between the @WebService name on the interface and the @WebService serviceName on the implementation. Should they be the same as the warning seems to suggest? Or might this be a bug on the JBoss side of things.

Thanks for any insight you may have!

--Kurt



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to