camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: [CxfBinding] Document Style ?
Date Sun, 11 Jul 2010 08:44:11 GMT
Yes, here is a way to work around this issue by doing some customer 
configure on the cxfEndpoint, then use "cxf:bean:producerEndpoint" as 
the url to send the request.

Please check out this example

<beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:cxf="http://camel.apache.org/schema/cxf"

        xsi:schemaLocation="
        http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
        http://camel.apache.org/schema/cxf 
http://camel.apache.org/schema/cxf/camel-cxf.xsd
        http://camel.apache.org/schema/spring 
http://camel.apache.org/schema/spring/camel-spring.xsd
     ">
    <import resource="classpath:META-INF/cxf/cxf.xml"/>
    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
    <import 
resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" />

    <cxf:cxfEndpoint id="producerEndpoint" 
address="http://localhost:9001/SoapContext/SoapPort"
     		serviceClass="org.apache.hello_world_soap_http.Greeter"
     		endpointName="s:SoapPort"
     		serviceName="s:SOAPService"
     	xmlns:s="http://apache.org/hello_world_soap_http" >
     	<cxf:serviceFactory>
     	    <bean 
class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean">
	     <!-- You can set this property to make the request to be wrapped 
or just document-literal -->
               <property name="wrapped" value="false"/>
    			</bean>
     	</cxf:serviceFactory>
    </cxf:cxfEndpoint>
</beans>

Willem
----------------------------------
Apache Camel, Apache CXF committer
Open SOA http://www.fusesource.com
Blog http://willemjiang.blogspot.com
Tiwtter http://twitter.com/willemjiang


Olivier Roger wrote:
> My bad I confused the different modes.
> 
> I will try that I get back to you.
> 
> It there a possibility not to modify the SEI but the CXF Endpoint definition
> instead ?


Mime
View raw message