On Friday 23 April 2010 5:09:00 am Nikolay Elenkov wrote:
> 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.

Are you using an aop proxy or similar?   You may need to specify the 
implementorClass attribute on the jaxws:endpoint so we can get the right class 
and find the appropriate WebService annotation.


-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to