cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikolay Elenkov <n...@sarion.co.jp>
Subject wrong targetNamespace in generated WSDL
Date Fri, 23 Apr 2010 09:09:00 GMT
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.


Mime
View raw message