Hello,

I am using apche-cxf 2.2.7, and I can't seem to find a way to set the
target namespace of the WSDL returned by Service?wsdl. It is always
http://www.springframework.org/schema/beans. See below:

<wsdl:definitions name="MyService"
targetNamespace="http://www.springframework.org/schema/beans";>
<wsdl:import
location="https://server/myws/services/MyService?wsdl=MyService.wsdl";
namespace="http://my.namespace.com/";>
    </wsdl:import>

The  namespace on the wsdl:import is correct, but not the one on
wsdl:definitions is not. I've set the namespace on my implementation class
with @WebService(targetNamespace="..."), but that seems to be ignored.
My service is defined in cxf-servlet.xml, but there seems to be no way
to pass the targetNamespace to <jaxws:endpoint> either. Am I missing something
obvious?

Any hints are much appreciated.

Reply via email to