Hi,  

You can do it by specify the wsdlURL attribute in the cxfEndponit like you did 
on attribute wsdlLocation in jaws:endpoint.
It will tell CXF to build the service model from WSDL instead of SEI.


--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Friday, December 14, 2012 at 7:53 PM, Sachin wrote:

> Hi I am using Camel 2.9.1 with CXF 2.4.2.
> I am facing this issue where CXF is generating it's own wsdl and exposing it
> inspite of what i provided. Only differnce between these two wsdls is that
> CXF generated one doesnt have any wsdl: types defined in it.Which causing
> problem while accesing this web service using ..?wsdl url.
>  
> So how can we specify in camel-cxf to stop CXF to generate it's own wsdl. In
> plain CXF we can do that by  
> attribute wsdlLocation in the element jaxws:endpoint
>  
>  
> CXF WSDL:
>  
> wsdl:definitions name="CDSCompactService"
> targetNamespace="http://mustservice.summit";>
> <wsdl:types> </wsdl:types>
> <wsdl:message name="NewTradeResponse">........
>  
> Actual WSDL:
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> xmlns:tns="http://mustservice.summit";
> xmlns:xsd1="http://mustservice.summit/NewTrade";
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; name="CDSCompactService"
> targetNamespace="http://mustservice.summit";>
> <wsdl:types>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
> <xsd:import namespace="http://mustservice.summit/NewTrade";
> schemaLocation="mustservice/summit/NewTrade/NewTrade.xsd">
> </xsd:import></xsd:schema>
> </wsdl:types>
> <wsdl:message name="NewTradeRequest">.....
>  
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-to-stop-CXF-to-generate-it-s-own-wsdl-tp5724084.html
> Sent from the Camel - Users mailing list archive at Nabble.com 
> (http://Nabble.com).



Reply via email to