Hi
I have generated Java stubs from a Person.wsdl. I implemented the interface
and is exposed as Apache CXF web service. However, I want to expose the
original Wsdl that I started from, Person.wsdl. Is there a way to do that?
Right now I have the following configuration:
<jaxws:endpoint id="PersonEndpoint"
implementor="a.b.PersonImpl"
endpointName="e: PersonEN" serviceName="s:PersonSN"
address="/Person"
xmlns:e="http://service.jaxws.cxf.apache.org/endpoint"
xmlns:s="http://service.jaxws.cxf.apache.org/service"/>
But with this configuration, when I try to build a SoapUI project using the
hosted wsdl (http://localhost:7001/mywar/Person?wsdl) url I get the following
error on server-side:
Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR:
Can't find prefix for 'http://www.w3.org/2007/05/addressing/metadata'.
Namespace prefixes must be set on the Definition object using the
addNamespace(...) method.
I looked at the exposed Wsdl that's accessible at web-app context such as
http://localhost:7001/mywar/Person?wsdl and noticed that there are no
references to the internal XSD's that I have in the original wsdl.
Thanks
Sonam Nepali