You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by rr...@apache.org on 2009/09/08 12:12:39 UTC

svn commit: r812429 - in /ode/branches/APACHE_ODE_1.X/jbi/src: main/java/org/apache/ode/jbi/msgmap/ test/java/org/apache/ode/jbi/ test/resources/ test/resources/EmptyRespJbiTest/

Author: rr
Date: Tue Sep  8 10:12:38 2009
New Revision: 812429

URL: http://svn.apache.org/viewvc?rev=812429&view=rev
Log:
ServiceMixMapper fix for no parts messages + JBI test case

Added:
    ode/branches/APACHE_ODE_1.X/jbi/src/test/java/org/apache/ode/jbi/EmptyRespJbiTest.java   (with props)
    ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/
    ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Ping.bpel
    ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Ping.wsdl   (with props)
    ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Pong.bpel
    ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Pong.wsdl   (with props)
    ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/deploy.xml   (with props)
    ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/smx.xml   (with props)
    ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/test.properties   (with props)
Modified:
    ode/branches/APACHE_ODE_1.X/jbi/src/main/java/org/apache/ode/jbi/msgmap/ServiceMixMapper.java
    ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/log4j.properties

Modified: ode/branches/APACHE_ODE_1.X/jbi/src/main/java/org/apache/ode/jbi/msgmap/ServiceMixMapper.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/main/java/org/apache/ode/jbi/msgmap/ServiceMixMapper.java?rev=812429&r1=812428&r2=812429&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/jbi/src/main/java/org/apache/ode/jbi/msgmap/ServiceMixMapper.java (original)
+++ ode/branches/APACHE_ODE_1.X/jbi/src/main/java/org/apache/ode/jbi/msgmap/ServiceMixMapper.java Tue Sep  8 10:12:38 2009
@@ -150,7 +150,12 @@
             return;
         }
 
-        if (msgdef.getParts().size() > 1 || ((Part) msgdef.getParts().values().iterator().next()).getElementName() == null) {
+        if (msgdef.getParts().size() == 0) {
+            if (__log.isDebugEnabled())
+                __log.debug("toNMS() ode message (rpc-like): no parts");
+            nmsMsg.setContent(null);
+            return;
+        } else if (msgdef.getParts().size() != 1 || ((Part) msgdef.getParts().values().iterator().next()).getElementName() == null) {
             // If we have more than one part, or a single non-element part, then we can't use the standard
             // NMS doc-lit like convention. Instead we place the entire message on the bus and hope for the
             // best.
@@ -166,13 +171,25 @@
     }
 
     public void toODE(Message odeMsg, NormalizedMessage nmsMsg, javax.wsdl.Message msgdef) throws MessageTranslationException {
-        Element nms = parse(nmsMsg.getContent());
-        boolean docLit = false;
-
+        Element nms;
+        if (nmsMsg.getContent() != null) {
+            nms = parse(nmsMsg.getContent());
+        } else {
+            Document doc = newDocument();
+            Element message = doc.createElement("message");
+            odeMsg.setMessage(message);
+            if (__log.isDebugEnabled()) {
+                __log.debug("toODE() normalized message:\n" + prettyPrint(message));
+            }
+            return;
+        }
+        
         if (__log.isDebugEnabled()) {
             __log.debug("toODE() normalized message:\n" + prettyPrint(nms));
         }
 
+        boolean docLit = false;
+
         for (String pname : ((Set<String>) msgdef.getParts().keySet())) {
             Part part = msgdef.getPart(pname);
             // servicemix-http has a (bad) habit of placing the SOAP body content directly in the normalized message

Added: ode/branches/APACHE_ODE_1.X/jbi/src/test/java/org/apache/ode/jbi/EmptyRespJbiTest.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/java/org/apache/ode/jbi/EmptyRespJbiTest.java?rev=812429&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/jbi/src/test/java/org/apache/ode/jbi/EmptyRespJbiTest.java (added)
+++ ode/branches/APACHE_ODE_1.X/jbi/src/test/java/org/apache/ode/jbi/EmptyRespJbiTest.java Tue Sep  8 10:12:38 2009
@@ -0,0 +1,23 @@
+/*
+ * 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.ode.jbi;
+
+public class EmptyRespJbiTest extends JbiTestBase {
+    public void testEmptyResp() throws Exception {
+        go();
+    }
+}

Propchange: ode/branches/APACHE_ODE_1.X/jbi/src/test/java/org/apache/ode/jbi/EmptyRespJbiTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Ping.bpel
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Ping.bpel?rev=812429&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Ping.bpel (added)
+++ ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Ping.bpel Tue Sep  8 10:12:38 2009
@@ -0,0 +1,101 @@
+<?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.
+  -->
+<process
+        name="Ping"
+        xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+        targetNamespace="urn:/Ping.bpel"
+        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+        xmlns:tns="urn:/Ping.bpel"
+        xmlns:ping="urn:/Ping.wsdl"
+        xmlns:pong="urn:/Pong.wsdl"
+        expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
+
+    <import location="Ping.wsdl"
+            namespace="urn:/Ping.wsdl"
+            importType="http://schemas.xmlsoap.org/wsdl/" />
+
+    <import location="Pong.wsdl"
+            namespace="urn:/Pong.wsdl"
+            importType="http://schemas.xmlsoap.org/wsdl/" />
+
+    <partnerLinks>
+        <partnerLink name="PingPartnerLink"
+                partnerLinkType="ping:PingPartnerLinkType"
+                myRole="Provider" />
+        <partnerLink name="PongPartnerLink"
+                partnerLinkType="pong:PongPartnerLinkType"
+                partnerRole="Provider"
+                initializePartnerRole="yes" />
+    </partnerLinks>
+
+    <variables>
+        <variable messageType="ping:PingRequest" name="pingRequest"/>
+        <variable messageType="ping:PingResponse" name="pingResponse"/>
+        <variable messageType="pong:PongRequest" name="pongRequest"/>
+        <variable messageType="pong:PongResponse" name="pongResponse"/>
+        <variable type="xsd:string" name="text" />
+    </variables>
+
+    <sequence name="Main">
+        <receive name="pingReceive"
+                createInstance="yes"
+                operation="Ping"
+                partnerLink="PingPartnerLink"
+                portType="ping:PingPortType"
+                variable="pingRequest"/>
+
+        <assign name="assignPongRequest">
+            <!-- add "ping" text to the input text -->
+            <copy>
+                <from>concat($pingRequest.body/ping:text, ' ping')</from>
+                <to variable="text"/>
+            </copy>
+            <!-- initialize pongRequest -->
+            <copy>
+                <from>
+                    <literal>
+                        <pong:PongRequest>
+                            <pong:text/>
+                        </pong:PongRequest>
+                    </literal>
+                </from>
+                <to>$pongRequest.body</to>
+            </copy>
+            <!-- copy new text into pongRequest -->
+            <copy>
+                <from>$text</from>
+                <to>$pongRequest.body/pong:text</to>
+            </copy>
+        </assign>
+        
+        <invoke name="invokePong"
+                operation="Pong"
+                inputVariable="pongRequest"
+                outputVariable="pongResponse"
+                partnerLink="PongPartnerLink"
+                portType="pong:PongPortType"/>
+        
+        <reply name="pingReply"
+                partnerLink="PingPartnerLink"
+                portType="ping:PingPortType"
+                operation="Ping"
+                variable="pingResponse"/>
+    </sequence>
+</process>

Added: ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Ping.wsdl
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Ping.wsdl?rev=812429&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Ping.wsdl (added)
+++ ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Ping.wsdl Tue Sep  8 10:12:38 2009
@@ -0,0 +1,73 @@
+<?xml version="1.0"?>
+<!--
+  ~ 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.
+  -->
+<definitions name="Ping"
+        targetNamespace="urn:/Ping.wsdl"
+        xmlns:tns="urn:/Ping.wsdl"
+        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+        xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+        xmlns="http://schemas.xmlsoap.org/wsdl/">
+
+    <types>
+        <schema targetNamespace="urn:/Ping.wsdl"
+                xmlns="http://www.w3.org/2000/10/XMLSchema">
+            <element name="PingRequest">
+                <complexType>
+                    <all>
+                        <element name="text" type="string"/>
+                    </all>
+                </complexType>
+            </element>
+            <element name="PingResponse">
+                <complexType>
+                    <all>
+                        <element name="text" type="string"/>
+                    </all>
+                </complexType>
+            </element>
+        </schema>
+    </types>
+
+    <message name="PingRequest">
+        <part name="body" element="tns:PingRequest"/>
+    </message>
+
+    <message name="PingResponse">
+    </message>
+
+    <portType name="PingPortType">
+        <operation name="Ping">
+            <input message="tns:PingRequest"/>
+            <output message="tns:PingResponse"/>
+        </operation>
+    </portType>
+
+    <plnk:partnerLinkType name="PingPartnerLinkType">
+        <plnk:role name="Provider" portType="tns:PingPortType"/>
+    </plnk:partnerLinkType>
+    
+    <!--
+    
+    This is an abstract interface/portType definition.  Note the lack of 
+    binding and service: these are defined by the HTTP binding component.
+    See ping-http/Ping.wsdl for details.
+    
+    -->
+
+</definitions>

Propchange: ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Ping.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Pong.bpel
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Pong.bpel?rev=812429&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Pong.bpel (added)
+++ ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Pong.bpel Tue Sep  8 10:12:38 2009
@@ -0,0 +1,71 @@
+<?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.
+  -->
+<process
+        name="Pong"
+        xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+        targetNamespace="urn:/Pong.bpel"
+        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+        xmlns:tns="urn:/Pong.bpel"
+        xmlns:pong="urn:/Pong.wsdl"
+        expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
+
+    <import location="Pong.wsdl"
+            namespace="urn:/Pong.wsdl"
+            importType="http://schemas.xmlsoap.org/wsdl/" />
+
+    <import location="Pong.wsdl"
+            namespace="urn:/Pong.wsdl"
+            importType="http://schemas.xmlsoap.org/wsdl/" />
+
+    <partnerLinks>
+        <partnerLink name="PongPartnerLink"
+                partnerLinkType="pong:PongPartnerLinkType"
+                myRole="Provider" />
+    </partnerLinks>
+
+    <variables>
+        <variable messageType="pong:PongRequest" name="pongRequest"/>
+        <variable messageType="pong:PongResponse" name="pongResponse"/>
+        <variable type="xsd:string" name="text" />
+    </variables>
+
+    <sequence name="Main">
+        <receive name="pongReceive"
+                createInstance="yes"
+                operation="Pong"
+                partnerLink="PongPartnerLink"
+                portType="pong:PongPortType"
+                variable="pongRequest"/>
+
+        <assign name="assignPongRequest">
+            <!-- add "ping" text to the input text -->
+            <copy>
+                <from>concat($pongRequest.body/pong:text, ' pong')</from>
+                <to>$text</to>
+            </copy>
+        </assign>
+        
+        <reply name="pongReply"
+                partnerLink="PongPartnerLink"
+                portType="pong:PongPortType"
+                operation="Pong"
+                variable="pongResponse"/>
+    </sequence>
+</process>

Added: ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Pong.wsdl
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Pong.wsdl?rev=812429&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Pong.wsdl (added)
+++ ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Pong.wsdl Tue Sep  8 10:12:38 2009
@@ -0,0 +1,73 @@
+<?xml version="1.0"?>
+<!--
+  ~ 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.
+  -->
+<definitions name="Pong"
+        targetNamespace="urn:/Pong.wsdl"
+        xmlns:tns="urn:/Pong.wsdl"
+        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+        xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+        xmlns="http://schemas.xmlsoap.org/wsdl/">
+
+    <types>
+        <schema targetNamespace="urn:/Pong.wsdl"
+                xmlns="http://www.w3.org/2000/10/XMLSchema">
+            <element name="PongRequest">
+                <complexType>
+                    <all>
+                        <element name="text" type="string"/>
+                    </all>
+                </complexType>
+            </element>
+            <element name="PongResponse">
+                <complexType>
+                    <all>
+                        <element name="text" type="string"/>
+                    </all>
+                </complexType>
+            </element>
+        </schema>
+    </types>
+
+    <message name="PongRequest">
+        <part name="body" element="tns:PongRequest"/>
+    </message>
+
+    <message name="PongResponse">
+    </message>
+
+    <portType name="PongPortType">
+        <operation name="Pong">
+            <input message="tns:PongRequest"/>
+            <output message="tns:PongResponse"/>
+        </operation>
+    </portType>
+
+    <plnk:partnerLinkType name="PongPartnerLinkType">
+        <plnk:role name="Provider" portType="tns:PongPortType"/>
+    </plnk:partnerLinkType>
+    
+    <!--
+    
+    This is an abstract interface/portType definition.  Note the lack of 
+    binding and service.  Since Pong is only exposed on the JBI bus, the
+    JBI endpoint is defined in Pong.dd.
+
+    -->
+
+</definitions>

Propchange: ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/Pong.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Added: ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/deploy.xml
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/deploy.xml?rev=812429&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/deploy.xml (added)
+++ ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/deploy.xml Tue Sep  8 10:12:38 2009
@@ -0,0 +1,42 @@
+<?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.
+  -->
+<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+        xmlns:pingProcess="urn:/Ping.bpel"
+        xmlns:pongProcess="urn:/Pong.bpel"
+        xmlns:ping="urn:/Ping.wsdl"
+        xmlns:pong="urn:/Pong.wsdl">
+
+	<process name="pingProcess:Ping">
+		<active>true</active>
+		<provide partnerLink="PingPartnerLink">
+			<service name="ping:PingService" port="PingPort"/>
+		</provide>
+		<invoke partnerLink="PongPartnerLink">
+			<service name="pong:PongServiceFwd" port="PongPort"/>
+		</invoke>
+	</process>
+	<process name="pongProcess:Pong">
+		<active>true</active>
+		<provide partnerLink="PongPartnerLink">
+			<service name="pong:PongService" port="PongPort"/>
+		</provide>
+	</process>
+    
+</deploy>

Propchange: ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/deploy.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/smx.xml
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/smx.xml?rev=812429&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/smx.xml (added)
+++ ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/smx.xml Tue Sep  8 10:12:38 2009
@@ -0,0 +1,88 @@
+<?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:sm="http://servicemix.apache.org/config/1.0"
+       xmlns:http="http://servicemix.apache.org/http/1.0"
+       xmlns:eip="http://servicemix.apache.org/eip/1.0"
+       xmlns:ping="urn:/Ping.wsdl"
+       xmlns:pong="urn:/Pong.wsdl"
+       xmlns:util="http://www.springframework.org/schema/util"
+       >
+
+    <bean id="transactionManager" class="org.apache.geronimo.transaction.manager.GeronimoTransactionManager"/>
+
+    <bean id="jndi"
+          class="org.apache.xbean.spring.jndi.SpringInitialContextFactory" 
+          factory-method="makeInitialContext"
+          singleton="true"
+          >
+      <property name="entries" ref="jndiEntries" />
+    </bean>
+
+    <util:map id="jndiEntries">
+    </util:map>
+    
+    <sm:container 
+        id="jbi" 
+        embedded="true" 
+        rootDir="target/test/smx"
+        transactionManager="#transactionManager"
+        depends-on="jndi"
+        >
+        <sm:activationSpecs>
+            <sm:activationSpec id="pingpong-eip">
+                <sm:component>
+                    <eip:component>
+                        <eip:endpoints>
+			  <eip:content-based-router service="pong:PongServiceFwd" endpoint="PongPort" forwardOperation="true">
+			    <eip:rules>
+			      <eip:routing-rule>
+				<eip:target>
+				  <eip:exchange-target service="pong:PongService"/>
+				</eip:target>
+			      </eip:routing-rule>
+			    </eip:rules>
+			  </eip:content-based-router>
+                        </eip:endpoints>
+                    </eip:component>
+                </sm:component>
+            </sm:activationSpec>
+            <sm:activationSpec id="pingpong-http">
+                <sm:component>
+                    <http:component>
+                        <http:endpoints>
+                            <http:endpoint 
+                                service="ping:PingService"
+                                endpoint="http" 
+				targetService="ping:PingService"
+				targetEndpoint="PingPort"
+                                defaultOperation="Ping"
+                                role="consumer"
+                                locationURI="http://localhost:8192/PingHttp/"
+                                defaultMep="http://www.w3.org/2004/08/wsdl/in-out" 
+				wsdlResource="classpath:EmptyRespJbiTest/Ping.wsdl"
+				soapVersion="1.1"
+                                soap="true" />
+                        </http:endpoints>
+                    </http:component>
+                </sm:component>
+            </sm:activationSpec>
+        </sm:activationSpecs>
+    </sm:container>
+</beans>

Propchange: ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/smx.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/test.properties
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/test.properties?rev=812429&view=auto
==============================================================================
--- ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/test.properties (added)
+++ ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/test.properties Tue Sep  8 10:12:38 2009
@@ -0,0 +1,20 @@
+#
+#    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.
+#
+http.url=http://localhost:8192/PingHttp/
+request=<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ping:PingRequest xmlns:ping="urn:/Ping.wsdl"><ping:text>hello</ping:text></ping:PingRequest></soapenv:Body></soapenv:Envelope>
+response=.*<soapenv:Body />.*
+

Propchange: ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/EmptyRespJbiTest/test.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/log4j.properties?rev=812429&r1=812428&r2=812429&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/log4j.properties (original)
+++ ode/branches/APACHE_ODE_1.X/jbi/src/test/resources/log4j.properties Tue Sep  8 10:12:38 2009
@@ -34,4 +34,6 @@
 log4j.appender.stdout.layout.ConversionPattern=%d{MM-dd@HH:mm:ss} %-5p (%13F:%L) %3x - %m%n 
 
 log4j.category.org.apache.servicemix.jbi.nmr.flow.seda=DEBUG
+log4j.category.httpclient=DEBUG
+log4j.category.httpclient.Wire=DEBUG