CXF will throw javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR
Issue
CXF will throw javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR, deploying a WebServiceProvider.
@Stateless
@WebServiceProvider(serviceName="BasicWSHttpProvider", targetNamespace="http://org.jboss.support" target="_blank">http://org.jboss.support")
@ServiceMode(value=Service.Mode.MESSAGE)
@BindingType(SOAPBinding.SOAP11HTTP_BINDING)
public class BasicWSHttpProvider implements Provider<SOAPMessage> {
...
The error below is thrown
Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'http://www.w3.org/2007/05/addressing/metadata" target="_blank">http://www.w3.org/2007/05/addressing/metadata'. Namespace prefixes must be set on the Definition object using the addNamespace(...) method.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 6.1.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
