Author: ningjiang
Date: Mon Sep 21 13:19:42 2009
New Revision: 817240
URL: http://svn.apache.org/viewvc?rev=817240&view=rev
Log:
CAMEL-1994 fixed the WS-Adressing issue in POJO mode
Added:
camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/wsa/
camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/wsa/WSAddressingTest.java
(with props)
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/WSAddressingTest-context.xml
(with props)
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/client.xml
(with props)
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/msg.xml
(with props)
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/server.xml
(with props)
Modified:
camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfBinding.java
camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java
camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
Modified:
camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfBinding.java
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfBinding.java?rev=817240&r1=817239&r2=817240&view=diff
==============================================================================
---
camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfBinding.java
(original)
+++
camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfBinding.java
Mon Sep 21 13:19:42 2009
@@ -116,5 +116,27 @@
void populateCxfResponseFromExchange(org.apache.camel.Exchange
camelExchange,
Exchange cxfExchange);
+ /**
+ * <p>
+ * Extract the message headers which key are start from javax.xml.ws* from
the
+ * CXF exchange's inMessage, and put these headers into the context
+ * </p>
+ *
+ *
+ * @param cxfExchange CXF exchange to be populated
+ * @param context The map which used to store the message headers
+ */
+ void extractJaxWsContext(Exchange cxfExchange, Map<String, Object>
context);
+
+ /**
+ * <p>
+ * Copy the javax.xml.ws* headers into cxfExchange's outMessage,
+ * if the cxfExchange has no outMessage, skip this copy
+ * </p>
+ *
+ * @param cxfExchange CXF exchange to be populated
+ * @param context The map which used to store the message headers
+ */
+ void copyJaxWsContext(Exchange cxfExchange, Map<String, Object> context);
}
Modified:
camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java?rev=817240&r1=817239&r2=817240&view=diff
==============================================================================
---
camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java
(original)
+++
camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java
Mon Sep 21 13:19:42 2009
@@ -17,13 +17,20 @@
package org.apache.camel.component.cxf;
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.xml.ws.handler.MessageContext.Scope;
+
import org.apache.camel.Processor;
import org.apache.camel.impl.DefaultConsumer;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.cxf.endpoint.Server;
import org.apache.cxf.frontend.ServerFactoryBean;
+import org.apache.cxf.helpers.CastUtils;
import org.apache.cxf.interceptor.Fault;
+import org.apache.cxf.jaxws.context.WrappedMessageContext;
import org.apache.cxf.message.Exchange;
import org.apache.cxf.service.invoker.Invoker;
import org.apache.cxf.service.model.BindingOperationInfo;
@@ -79,7 +86,10 @@
// bind the CXF request into a Camel exchange
binding.populateExchangeFromCxfRequest(cxfExchange,
camelExchange);
-
+
+ // extract the javax.xml.ws header
+ Map<String, Object> context = new HashMap<String, Object>();
+ binding.extractJaxWsContext(cxfExchange, context);
// send Camel exchange to the target processor
try {
getProcessor().process(camelExchange);
@@ -98,15 +108,17 @@
// bind the Camel response into a CXF response
if (camelExchange.getPattern().isOutCapable()) {
binding.populateCxfResponseFromExchange(camelExchange,
cxfExchange);
- }
+ }
+ // copy the headers javax.xml.ws header back
+ binding.copyJaxWsContext(cxfExchange, context);
// response should have been set in outMessage's content
return null;
}
});
server = svrBean.create();
- }
+ }
@Override
protected void doStart() throws Exception {
Modified:
camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java?rev=817240&r1=817239&r2=817240&view=diff
==============================================================================
---
camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
(original)
+++
camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
Mon Sep 21 13:19:42 2009
@@ -227,7 +227,7 @@
// propagate contexts
if (dataFormat != DataFormat.POJO) {
// copying response context to out message seems to cause problem
in POJO mode
- outMessage.putAll(responseContext);
+ outMessage.putAll(responseContext);
}
outMessage.put(Client.RESPONSE_CONTEXT, responseContext);
@@ -358,7 +358,7 @@
}
}
}
-
+
// propagate SOAP/protocol header list
String key = Header.HEADER_LIST;
@@ -373,7 +373,6 @@
((List<?>)value).clear();
}
}
-
}
protected void propagateHeadersFromCamelToCxf(Exchange camelExchange,
@@ -433,6 +432,7 @@
listValue.add(entry.getValue().toString());
transportHeaders.put(entry.getKey(), listValue);
}
+
}
if (transportHeaders.size() > 0) {
@@ -491,4 +491,25 @@
return answer;
}
+ public void copyJaxWsContext(org.apache.cxf.message.Exchange cxfExchange,
Map<String, Object> context) {
+ if (cxfExchange.getOutMessage() != null) {
+ org.apache.cxf.message.Message outMessage =
cxfExchange.getOutMessage();
+ for (Map.Entry<String, Object> entry : context.entrySet()) {
+ if (outMessage.get(entry.getKey()) == null) {
+ outMessage.put(entry.getKey(), entry.getValue());
+ }
+ }
+ }
+ }
+
+ public void extractJaxWsContext(org.apache.cxf.message.Exchange
cxfExchange, Map<String, Object> context) {
+ org.apache.cxf.message.Message inMessage = cxfExchange.getInMessage();
+ for (Map.Entry<String, Object> entry : inMessage.entrySet()) {
+ if (entry.getKey().startsWith("javax.xml.ws")) {
+ context.put(entry.getKey(), entry.getValue());
+ }
+ }
+
+ }
+
}
Added:
camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/wsa/WSAddressingTest.java
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/wsa/WSAddressingTest.java?rev=817240&view=auto
==============================================================================
---
camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/wsa/WSAddressingTest.java
(added)
+++
camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/wsa/WSAddressingTest.java
Mon Sep 21 13:19:42 2009
@@ -0,0 +1,125 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.cxf.wsa;
+
+import java.net.URL;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.Exchange;
+import org.apache.camel.Processor;
+import org.apache.camel.ProducerTemplate;
+import org.apache.cxf.bus.spring.SpringBusFactory;
+import org.apache.cxf.common.classloader.ClassLoaderUtils;
+import org.apache.cxf.endpoint.Server;
+import org.apache.cxf.frontend.ClientFactoryBean;
+import org.apache.cxf.frontend.ClientProxyFactoryBean;
+import org.apache.cxf.frontend.ServerFactoryBean;
+import org.apache.cxf.headers.Header;
+import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
+import org.apache.cxf.jaxws.JaxWsServerFactoryBean;
+import org.apache.hello_world_soap_http.Greeter;
+import org.apache.hello_world_soap_http.GreeterImpl;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import
org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
+
+import static org.junit.Assert.assertEquals;
+
+/**
+ *
+ * @version $Revision$
+ */
+...@contextconfiguration
+public class WSAddressingTest extends AbstractJUnit4SpringContextTests {
+
+ @Autowired
+ protected CamelContext context;
+ protected ProducerTemplate template;
+
+ private Server serviceEndpoint;
+
+ @Before
+ public void setUp() throws Exception {
+ template = context.createProducerTemplate();
+ JaxWsServerFactoryBean svrBean = new JaxWsServerFactoryBean();
+ svrBean.setAddress("http://localhost:9001/SoapContext/SoapPort");
+ svrBean.setServiceClass(Greeter.class);
+ svrBean.setServiceBean(new GreeterImpl());
+ SpringBusFactory bf = new SpringBusFactory();
+ URL cxfConfig = null;
+
+ if (getCxfServerConfig() != null) {
+ cxfConfig = ClassLoaderUtils.getResource(getCxfServerConfig(),
this.getClass());
+ }
+ svrBean.setBus(bf.createBus(cxfConfig));
+ serviceEndpoint = svrBean.create();
+
+ }
+
+ @After
+ public void tearDown() throws Exception {
+ if (serviceEndpoint != null) {
+ serviceEndpoint.stop();
+ }
+ }
+
+ @Test
+ public void testWSAddressing() throws Exception {
+ JaxWsProxyFactoryBean proxyFactory = new JaxWsProxyFactoryBean();
+ ClientFactoryBean clientBean = proxyFactory.getClientFactoryBean();
+ clientBean.setAddress("http://localhost:9000/SoapContext/SoapPort");
+ clientBean.setServiceClass(Greeter.class);
+ SpringBusFactory bf = new SpringBusFactory();
+ URL cxfConfig = null;
+
+ if (getCxfClientConfig() != null) {
+ cxfConfig = ClassLoaderUtils.getResource(getCxfClientConfig(),
this.getClass());
+ }
+ clientBean.setBus(bf.createBus(cxfConfig));
+ Greeter client = (Greeter) proxyFactory.create();
+ String result = client.greetMe("world!");
+ assertEquals("Get a wrong response", "Hello world!", result);
+ }
+
+ /**
+ * @return
+ */
+ protected String getCxfServerConfig() {
+ return "server.xml";
+ }
+
+ /**
+ * @return
+ */
+ protected String getCxfClientConfig() {
+ return "client.xml";
+ }
+
+ public static class RemoveRequestOutHeaderProcessor implements Processor {
+
+ public void process(Exchange exchange) throws Exception {
+ exchange.getIn().removeHeader(Header.HEADER_LIST);
+ }
+
+ }
+
+
+
+}
Propchange:
camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/wsa/WSAddressingTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/wsa/WSAddressingTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/WSAddressingTest-context.xml
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/WSAddressingTest-context.xml?rev=817240&view=auto
==============================================================================
---
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/WSAddressingTest-context.xml
(added)
+++
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/WSAddressingTest-context.xml
Mon Sep 21 13:19:42 2009
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <!--
+ Licensed to the Apache Software Foundation (ASF) under one or
more
+ contributor license agreements. See the NOTICE file distributed
with
+ this work for additional information regarding copyright
ownership.
+ The ASF licenses this file to You under the Apache License,
Version
+ 2.0 (the "License"); you may not use this file except in
compliance
+ with the License. You may obtain a copy of the License at
+ http://www.apache.org/licenses/LICENSE-2.0 Unless required by
+ applicable law or agreed to in writing, software distributed
under the
+ License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
OR
+ CONDITIONS OF ANY KIND, either express or implied. See the
License for
+ the specific language governing permissions and limitations
under the
+ License.
+ -->
+<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"
+ xmlns:util="http://www.springframework.org/schema/util"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+ http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-2.0.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
+ ">
+ <cxf:cxfEndpoint id="routerEndpoint"
+ address="http://localhost:9000/SoapContext/SoapPort"
endpointName="tns:SoapPort"
+ serviceName="tns:SOAPService" wsdlURL="/wsdl/hello_world.wsdl"
+ serviceClass="org.apache.hello_world_soap_http.Greeter"
+ xmlns:tns="http://apache.org/hello_world_soap_http">
+ <cxf:inInterceptors>
+ <ref bean="logInbound" />
+ </cxf:inInterceptors>
+ <cxf:outInterceptors>
+ <ref bean="loggingOutInterceptor" />
+ </cxf:outInterceptors>
+ <cxf:features>
+ <wsa:addressing
xmlns:wsa="http://cxf.apache.org/ws/addressing" />
+ </cxf:features>
+ </cxf:cxfEndpoint>
+ <cxf:cxfEndpoint id="serviceEndpoint"
+ address="http://localhost:9001/SoapContext/SoapPort"
endpointName="tns:SoapPort"
+ serviceName="tns:SOAPService" wsdlURL="/wsdl/hello_world.wsdl"
+ serviceClass="org.apache.hello_world_soap_http.Greeter"
+ xmlns:tns="http://apache.org/hello_world_soap_http">
+ <cxf:inInterceptors>
+ <ref bean="logInbound" />
+ </cxf:inInterceptors>
+ <cxf:outInterceptors>
+ <ref bean="loggingOutInterceptor" />
+ </cxf:outInterceptors>
+ <!-- cxf:features>
+ <wsa:addressing
xmlns:wsa="http://cxf.apache.org/ws/addressing" />
+ </cxf:features-->
+ </cxf:cxfEndpoint>
+
+ <camelContext id="camel" trace="true"
xmlns="http://camel.apache.org/schema/spring">
+ <route>
+ <from uri="cxf:bean:routerEndpoint" />
+ <!-- need to remove the addressing header, since the
back end service doesn't support addressing -->
+ <process ref="removeRequestOutHeaderProcessor" />
+ <to uri="cxf:bean:serviceEndpoint" />
+ </route>
+ </camelContext>
+
+ <bean id="removeRequestOutHeaderProcessor"
+
class="org.apache.camel.component.cxf.wsa.WSAddressingTest$RemoveRequestOutHeaderProcessor"
/>
+
+ <bean id="loggingOutInterceptor"
class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
+ <bean id="logInbound"
class="org.apache.cxf.interceptor.LoggingInInterceptor" />
+</beans>
\ No newline at end of file
Propchange:
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/WSAddressingTest-context.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/WSAddressingTest-context.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/WSAddressingTest-context.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added:
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/client.xml
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/client.xml?rev=817240&view=auto
==============================================================================
---
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/client.xml
(added)
+++
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/client.xml
Mon Sep 21 13:19:42 2009
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:cxf="http://cxf.apache.org/core"
+ xmlns:wsa="http://cxf.apache.org/ws/addressing"
+ xmlns:http="http://cxf.apache.org/transports/http/configuration"
+ xsi:schemaLocation="
+ http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
+ http://cxf.apache.org/transports/http/configuration
http://cxf.apache.org/schemas/configuration/http-conf.xsd
+ http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
+
+ <http:conduit
name="{http://apache.org/hello_world_soap_http}SoapPort.http-conduit">
+ <http:client
DecoupledEndpoint="http://localhost:9990/decoupled_endpoint"/>
+ </http:conduit>
+
+ <cxf:bus>
+ <cxf:features>
+ <wsa:addressing usingAddressingAdvisory="true" />
+ </cxf:features>
+
+ <cxf:inInterceptors>
+ <ref bean="logInbound"/>
+ </cxf:inInterceptors>
+ <cxf:outInterceptors>
+ <ref bean="loggingOutInterceptor"/>
+ </cxf:outInterceptors>
+ </cxf:bus>
+
+ <bean id="loggingOutInterceptor"
class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
+ <bean id="logInbound"
class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
+
+</beans>
Propchange:
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/client.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/client.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/client.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added:
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/msg.xml
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/msg.xml?rev=817240&view=auto
==============================================================================
---
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/msg.xml
(added)
+++
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/msg.xml
Mon Sep 21 13:19:42 2009
@@ -0,0 +1,41 @@
+<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
+ <soap:Header>
+ <Action xmlns="http://www.w3.org/2005/08/addressing">
+
http://hello_world_soap_http.apache.org/GreeterPortType/greetMe
+ </Action>
+ <MessageID xmlns="http://www.w3.org/2005/08/addressing">
+
urn:uuid:d67279aa-9230-4e47-a57e-4166a44d9d96</MessageID>
+ <To
xmlns="http://www.w3.org/2005/08/addressing">http://localhost:9001/SoapContext/SoapPort
+ </To>
+ <ReplyTo xmlns="http://www.w3.org/2005/08/addressing">
+ <Address>http://www.w3.org/2005/08/addressing/anonymous
+ </Address>
+ </ReplyTo>
+ </soap:Header>
+ <soap:Body>
+ <ns1:greetMe
xmlns:ns1="http://hello_world_soap_http.apache.org/">
+ <ns2:arg0
xmlns="http://apache.org/hello_world_soap_http/types"
+
xmlns:ns2="http://hello_world_soap_http.apache.org/">world!</ns2:arg0>
+ </ns1:greetMe>
+ </soap:Body>
+</soap:Envelope>
+
+<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
+ <soap:Header>
+ <Action xmlns="http://www.w3.org/2005/08/addressing">
+
http://hello_world_soap_http.apache.org/GreeterPortType/greetMeResponse
+ </Action>
+ <MessageID xmlns="http://www.w3.org/2005/08/addressing">
+
urn:uuid:ab509c5d-6c8a-49fc-b4e1-d3dc80e90812</MessageID>
+ <To
xmlns="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/anonymous
+ </To>
+ <RelatesTo xmlns="http://www.w3.org/2005/08/addressing">
+
urn:uuid:d67279aa-9230-4e47-a57e-4166a44d9d96</RelatesTo>
+ </soap:Header>
+ <soap:Body>
+ <ns1:greetMeResponse
xmlns:ns1="http://hello_world_soap_http.apache.org/">
+ <ns2:return
xmlns="http://apache.org/hello_world_soap_http/types"
+
xmlns:ns2="http://hello_world_soap_http.apache.org/">Hello world!</ns2:return>
+ </ns1:greetMeResponse>
+ </soap:Body>
+</soap:Envelope>
\ No newline at end of file
Propchange:
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/msg.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/msg.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/msg.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added:
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/server.xml
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/server.xml?rev=817240&view=auto
==============================================================================
---
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/server.xml
(added)
+++
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/server.xml
Mon Sep 21 13:19:42 2009
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:cxf="http://cxf.apache.org/core"
+ xmlns:wsa="http://cxf.apache.org/ws/addressing"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
+http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
+
+ <cxf:bus>
+
+ <!-- cxf:features>
+ <wsa:addressing/>
+ </cxf:features-->
+ <cxf:inInterceptors>
+ <ref bean="logInbound"/>
+ </cxf:inInterceptors>
+ <cxf:outInterceptors>
+ <ref bean="loggingOutInterceptor"/>
+ </cxf:outInterceptors>
+
+ </cxf:bus>
+
+ <bean id="loggingOutInterceptor"
class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
+ <bean id="logInbound"
class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
+
+</beans>
Propchange:
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/server.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/server.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
camel/trunk/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/wsa/server.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml