Details
Description
WSDL first with spring results in the following Exception:
javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for ... Namespace prefixes must be set on the Definition object using the addNamespace(...) method.
The Spring configuration is as follows:
<import resource="classpath:META-INF/cxf/cxf.xml"/>
<import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
<bean id="ccInfoServiceImpl" class="ch.bedag.a11.ccinfo.business.service.impl.CCInfoWSImpl">
</bean>
<jaxws:endpoint id="ccInfoServiceEndpoint" implementor="#ccInfoServiceImpl" address="/ccinfo">
<jaxws:features>
<bean class="org.apache.cxf.feature.LoggingFeature"/>
</jaxws:features>
</jaxws:endpoint>
I have to specify the spring configuration as follows to make it working:
<jaxws:endpoint id="ccInfoServiceEndpoint" implementor="#ccInfoServiceImpl" address="/ccinfo"
xmlns:tns="http://www.bedag.ch/cc-info"
xmlns:cdt="http://www.bedag.ch/cc-info/common/types"
serviceName="tns:CCService"
endpointName="tns:CCPortType">
<jaxws:features>
<bean class="org.apache.cxf.feature.LoggingFeature"/>
</jaxws:features>
</jaxws:endpoint>
I dont know why i have to specify the porttype again. I added the used wsdl files for bug tracking.