On Sun, Feb 10, 2013 at 2:10 PM, sekaijin <jean-yves.terr...@sap.aphp.fr> wrote: > Hello, > > I need to define a camel route that invokes a web service. > I thought about using camel-cxf to call the web service. > > My routes are defined in Java dsl > the parameters are read in a database and a RouteBuilder define route in > java DSL. > > I have several platform (Dev, Qual, Integration, Recipe, Production, > Training) each platform has a different server that hosts the webservice. > > the url camel-cxf is like > cxf://http://hostname/service/myService?wsdlURL=... > > on each platform the RoutBuilder produces diferent url > cxf://http://wsdevhost.fr/service/myService?wsdlURL=... > cxf://http://qualif-ws-server.fr/service/myService?wsdlURL=... > etc. > > The problem comes with wsdl. > Following the doc the wsdl file is placed in META-INF/wsdl/myService.wsdl > but inside the wsdl contains the address of the service > <soap:address location="http:///wsdevhost.fr/myService"/> > > This file is included in the jar during compilation. When we will install it > jar on another platform, there will be a difference between the service and > the url of the endpoint configuration. > ex: on Qualif platform I've > cxf://http://qualif-ws-server.fr/service/myService?wsdlURL=... for the > endpoint > but the wsdl in jar contains > <soap:address location="http:///wsdevhost.fr/myService"/> > > how to have a wsdl which is consistent with the configuration of the > endpoint? >
I think CXF will be default output the actual soap:address when you use ?wsdl on the http url. > A+JYT > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/RouteBuilder-CXF-WebService-Url-and-WSDL-tp5727301.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen