Author: vanto
Date: Wed Jan 12 00:08:24 2011
New Revision: 1057946

URL: http://svn.apache.org/viewvc?rev=1057946&view=rev
Log:
ODE-906 applied, thanks Kurt.

Added:
    ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/
    ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/osgi.bnd
    ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/pom.xml
    ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/
    ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/
    
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/
    
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/HelloWorld2.bpel
    
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/HelloWorld2.wsdl
    
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/META-INF/
    
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/META-INF/spring/
    
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/META-INF/spring/beans.xml
      - copied, changed from r1057196, 
ode/trunk/distro/src/examples-jbi/maven2/ping-pong-osgi/src/main/resources/META-INF/spring/xbean.xml
    
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/deploy.xml
    ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/test/
    
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/test/resources/
    
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/test/resources/helloworld-soapui-project.xml
Modified:
    ode/trunk/Rakefile
    ode/trunk/distro/src/examples-jbi/maven2/ping-pong-osgi/osgi.bnd
    
ode/trunk/distro/src/examples-jbi/maven2/ping-pong-osgi/src/main/resources/META-INF/spring/xbean.xml

Modified: ode/trunk/Rakefile
URL: 
http://svn.apache.org/viewvc/ode/trunk/Rakefile?rev=1057946&r1=1057945&r2=1057946&view=diff
==============================================================================
--- ode/trunk/Rakefile (original)
+++ ode/trunk/Rakefile Wed Jan 12 00:08:24 2011
@@ -463,6 +463,41 @@ define "ode" do
     end
   end
 
+  desc "ODE Examples for Karaf"
+  define "jbi-karaf-examples",
+    :group => "org.apache.ode.examples",
+    :base_dir => "distro/src/examples-jbi/maven2" do
+    
+    define "helloworld2-osgi" do
+      package(:bundle, :id => "helloworld-bundle").tap do |bnd|
+        bnd.classpath = [KARAF, project("ode:jbi-bundle")]
+        bnd['Bundle-Name'] = "Apache ODE Hello World Example"
+        bnd['Bundle-SymbolicName'] = 
"org.apache.ode.examples-helloworld2-bundle"
+        bnd['Bundle-Version'] = VERSION_NUMBER
+        bnd['Require-Bundle'] = 
"org.apache.ode.ode-jbi-bundle;version=#{VERSION_NUMBER}"
+        bnd['Import-Package'] = 
"org.apache.servicemix.cxfbc,org.apache.servicemix.common.osgi"
+        bnd['Export-Package'] = ""
+        bnd['-exportcontents'] = ""
+        bnd['Include-Resource'] = _('src/main/resources')
+      end
+    end
+    
+    define "ping-pong-osgi" do
+      package(:bundle, :id => "ping-pong-bundle").tap do |bnd|
+        bnd.classpath = [KARAF, project("ode:jbi-bundle")]
+        bnd['Bundle-Name'] = "Apache ODE Ping-Pong Example"
+        bnd['Bundle-SymbolicName'] = "org.apache.ode.examples-ping-pong-bundle"
+        bnd['Bundle-Version'] = VERSION_NUMBER
+        bnd['Require-Bundle'] = 
"org.apache.ode.ode-jbi-bundle;version=#{VERSION_NUMBER}"
+        bnd['Import-Package'] = 
"org.apache.servicemix.cxfbc,org.apache.servicemix.common.osgi"
+        bnd['Export-Package'] = ""
+        bnd['-exportcontents'] = ""
+        bnd['Include-Resource'] = _('src/main/resources')
+      end
+    end
+    
+  end
+
   desc "ODE JBI Packaging for Karaf"
   define "jbi-karaf" do
     resources.filter.using(BUNDLE_VERSIONS)

Added: ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/osgi.bnd
URL: 
http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/osgi.bnd?rev=1057946&view=auto
==============================================================================
--- ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/osgi.bnd (added)
+++ ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/osgi.bnd Wed Jan 
12 00:08:24 2011
@@ -0,0 +1,3 @@
+Import-Package: org.apache.servicemix.cxfbc,org.apache.servicemix.common.osgi
+Include-Resource: src/main/resources
+Export-Package:

Added: ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/pom.xml
URL: 
http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/pom.xml?rev=1057946&view=auto
==============================================================================
--- ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/pom.xml (added)
+++ ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/pom.xml Wed Jan 
12 00:08:24 2011
@@ -0,0 +1,84 @@
+<?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.
+  -->
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd"; 
xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.ode.examples</groupId>
+  <artifactId>helloworld-bundle</artifactId>
+  <name>ODE :: Examples :: Hello World OSGi</name>
+  <version>1.3.5-SNAPSHOT</version>
+  <packaging>bundle</packaging>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <version>1.4.3</version>
+        <extensions>true</extensions>
+        <configuration>
+          <instructions>
+            
<Bundle-SymbolicName>${project.groupId}-${project.artifactId}</Bundle-SymbolicName>
+            <Bundle-Version>${project.version}</Bundle-Version>
+            <_include>-osgi.bnd</_include>
+          </instructions>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <profiles>
+    <profile>
+      <id>send</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>eviware</groupId>
+            <artifactId>maven-soapui-plugin</artifactId>
+            <version>3.6</version>
+            <configuration>
+              
<projectFile>${basedir}/src/test/resources/helloworld-soapui-project.xml</projectFile>
+              <printReport>true</printReport>
+            </configuration>
+            <executions>
+              <execution>
+                <id>soap-integration-test</id>
+                <phase>integration-test</phase>
+                <goals>
+                  <goal>test</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+      <pluginRepositories>
+        <pluginRepository>
+          <id>eviwarePluginRepository</id>
+          <url>http://www.eviware.com/repository/maven2/</url>
+        </pluginRepository>
+      </pluginRepositories>
+    </profile>
+  </profiles>
+
+</project>

Added: 
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/HelloWorld2.bpel
URL: 
http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/HelloWorld2.bpel?rev=1057946&view=auto
==============================================================================
--- 
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/HelloWorld2.bpel
 (added)
+++ 
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/HelloWorld2.bpel
 Wed Jan 12 00:08:24 2011
@@ -0,0 +1,79 @@
+<?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.
+  -->
+<process name="HelloWorld2"
+         targetNamespace="urn:/HeaderTest.bpel"
+         xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable";
+         xmlns:tns="urn:/HeaderTest.bpel"
+         xmlns:hello="urn:/HelloWorld2.wsdl"
+         xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
+
+    <import location="HelloWorld2.wsdl"
+            namespace="urn:/HelloWorld2.wsdl"
+            importType="http://schemas.xmlsoap.org/wsdl/"; />
+
+    <partnerLinks>
+        <partnerLink name="helloPartnerLink"
+                partnerLinkType="hello:HelloPartnerLinkType"
+                myRole="Provider" />
+    </partnerLinks>
+
+    <variables>
+        <variable name="request" messageType="hello:HelloRequest"/>
+        <variable name="response" messageType="hello:HelloResponse"/>
+        <variable name="text" type="xsd:string"/>
+    </variables>
+
+    <sequence>
+        <receive
+                name="start"
+                partnerLink="helloPartnerLink"
+                portType="hello:HelloPortType"
+                operation="Hello"
+                variable="request"
+                createInstance="yes"/>
+                
+        <assign name="assign1">
+            <copy>
+                <from>$request.body/hello:text</from>
+                <to variable="text"/>
+            </copy>
+            <copy>
+                <from>
+                    <literal>
+                        <hello:HelloResponse>
+                            <hello:text/>
+                        </hello:HelloResponse>
+                    </literal>
+                </from>
+                <to>$response.body</to>
+            </copy>
+            <copy>
+                <from>concat($text,' World')</from>
+                <to>$response.body/hello:text</to>
+            </copy>
+        </assign>
+        
+        <reply name="end"
+                partnerLink="helloPartnerLink"
+                portType="hello:HelloPortType"
+                operation="Hello"
+                variable="response"/>
+    </sequence>
+</process>

Added: 
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/HelloWorld2.wsdl
URL: 
http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/HelloWorld2.wsdl?rev=1057946&view=auto
==============================================================================
--- 
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/HelloWorld2.wsdl
 (added)
+++ 
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/HelloWorld2.wsdl
 Wed Jan 12 00:08:24 2011
@@ -0,0 +1,85 @@
+<?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="Hello"
+        targetNamespace="urn:/HelloWorld2.wsdl"
+        xmlns:tns="urn:/HelloWorld2.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:/HelloWorld2.wsdl"
+                xmlns="http://www.w3.org/2001/XMLSchema";>
+            <element name="HelloRequest">
+                <complexType>
+                    <all>
+                        <element name="text" type="string"/>
+                    </all>
+                </complexType>
+            </element>
+            <element name="HelloResponse">
+                <complexType>
+                    <all>
+                        <element name="text" type="string"/>
+                    </all>
+                </complexType>
+            </element>
+        </schema>
+    </types>
+
+    <message name="HelloRequest">
+        <part name="body" element="tns:HelloRequest"/>
+    </message>
+
+    <message name="HelloResponse">
+        <part name="body" element="tns:HelloResponse"/>
+    </message>
+
+    <portType name="HelloPortType">
+        <operation name="Hello">
+            <input message="tns:HelloRequest"/>
+            <output message="tns:HelloResponse"/>
+        </operation>
+    </portType>
+
+    <plnk:partnerLinkType name="HelloPartnerLinkType">
+        <plnk:role name="Provider" portType="tns:HelloPortType"/>
+    </plnk:partnerLinkType>
+
+    <binding name="HelloSoapBinding" type="tns:HelloPortType">
+        <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
+        <operation name="Hello">
+            <soap:operation soapAction=""/>
+            <input>
+                <soap:body use="literal"/>
+            </input>
+            <output>
+                <soap:body use="literal"/>
+            </output>
+        </operation>
+    </binding>
+
+    <service name="HelloService">
+        <port name="HelloPort" binding="tns:HelloSoapBinding">
+            <soap:address location="http://unused.url/here"/>
+        </port>
+    </service>
+
+</definitions>

Copied: 
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/META-INF/spring/beans.xml
 (from r1057196, 
ode/trunk/distro/src/examples-jbi/maven2/ping-pong-osgi/src/main/resources/META-INF/spring/xbean.xml)
URL: 
http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/META-INF/spring/beans.xml?p2=ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/META-INF/spring/beans.xml&p1=ode/trunk/distro/src/examples-jbi/maven2/ping-pong-osgi/src/main/resources/META-INF/spring/xbean.xml&r1=1057196&r2=1057946&rev=1057946&view=diff
==============================================================================
--- 
ode/trunk/distro/src/examples-jbi/maven2/ping-pong-osgi/src/main/resources/META-INF/spring/xbean.xml
 (original)
+++ 
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/META-INF/spring/beans.xml
 Wed Jan 12 00:08:24 2011
@@ -18,27 +18,23 @@
   ~ under the License.
   -->
 <beans xmlns="http://www.springframework.org/schema/beans";
-       xmlns:http="http://servicemix.apache.org/http/1.0";
-       xmlns:ping="urn:/Ping.wsdl"
-       xmlns:pong="urn:/Pong.wsdl"
+       xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="
-         http://www.springframework.org/schema/beans
-         http://www.springframework.org/schema/beans/spring-beans.xsd
-         http://servicemix.apache.org/http/1.0
-         http://servicemix.apache.org/http/1.0/servicemix-http.xsd";>
-    <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:Ping.wsdl"
-    soapVersion="1.1"
-        soap="true" />
-
+       http://servicemix.apache.org/cxfbc/1.0 
+       http://servicemix.apache.org/cxfbc/1.0/servicemix-cxf-bc.xsd
+       http://www.springframework.org/schema/beans 
+       http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
+       ">
+ 
     <bean class="org.apache.servicemix.common.osgi.EndpointExporter" />
+
+    <cxfbc:consumer 
+            xmlns:helloworld="urn:/HelloWorld2.wsdl"
+            wsdl="classpath:HelloWorld2.wsdl"
+            locationURI="http://localhost:8193/HelloService";
+            targetService="helloworld:HelloService"
+            targetEndpoint="HelloPort"
+            />
+
 </beans>

Added: 
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/deploy.xml
URL: 
http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/deploy.xml?rev=1057946&view=auto
==============================================================================
--- 
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/deploy.xml
 (added)
+++ 
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/main/resources/deploy.xml
 Wed Jan 12 00:08:24 2011
@@ -0,0 +1,30 @@
+<!--
+  ~ 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:pns="urn:/HeaderTest.bpel"
+        xmlns:sns="urn:/HelloWorld2.wsdl" >
+
+
+       <process name="pns:HelloWorld2">
+               <active>true</active>
+               <provide partnerLink="helloPartnerLink">
+                       <service name="sns:HelloService" port="HelloPort"/>
+               </provide>
+       </process>
+</deploy>

Added: 
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/test/resources/helloworld-soapui-project.xml
URL: 
http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/test/resources/helloworld-soapui-project.xml?rev=1057946&view=auto
==============================================================================
--- 
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/test/resources/helloworld-soapui-project.xml
 (added)
+++ 
ode/trunk/distro/src/examples-jbi/maven2/HelloWorld2-osgi/src/test/resources/helloworld-soapui-project.xml
 Wed Jan 12 00:08:24 2011
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<con:soapui-project name="HelloService" resourceRoot="" soapui-version="3.5.1" 
xmlns:con="http://eviware.com/soapui/config";><con:settings/><con:interface 
xsi:type="con:WsdlInterface" wsaVersion="NONE" name="HelloSoapBinding" 
type="wsdl" bindingName="{urn:/HelloWorld2.wsdl}HelloSoapBinding" 
soapVersion="1_1" anonymous="optional" 
definition="http://localhost:8193/HelloService?wsdl"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:settings/><con:definitionCache
 type="TEXT" 
rootPart="http://localhost:8193/HelloService?wsdl";><con:part><con:url>http://localhost:8193/HelloService?wsdl</con:url><con:content><![CDATA[<definitions
 name="Hello" targetNamespace="urn:/HelloWorld2.wsdl" 
xmlns="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:smix="http://servicemix.org/wsdl/jbi/"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:tns="urn:/HelloWorld2.wsdl">
+  <types>
+    <schema targetNamespace="urn:/HelloWorld2.wsdl" 
xmlns="http://www.w3.org/2001/XMLSchema";>
+      <element name="HelloRequest">
+        <complexType>
+          <all>
+            <element name="text" type="string"/>
+          </all>
+        </complexType>
+      </element>
+      <element name="HelloResponse">
+        <complexType>
+          <all>
+            <element name="text" type="string"/>
+          </all>
+        </complexType>
+      </element>
+    </schema>
+  </types>
+  <message name="HelloResponse">
+    <part element="tns:HelloResponse" name="body"></part>
+  </message>
+  <message name="HelloRequest">
+    <part element="tns:HelloRequest" name="body"></part>
+  </message>
+  <portType name="HelloPortType">
+    <operation name="Hello">
+      <input message="tns:HelloRequest"></input>
+      <output message="tns:HelloResponse"></output>
+    </operation>
+  </portType>
+  <binding name="HelloSoapBinding" type="tns:HelloPortType">
+    <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
+    <operation name="Hello">
+      <soap:operation soapAction=""/>
+      <input>
+        <soap:body use="literal"/>
+      </input>
+      <output>
+        <soap:body use="literal"/>
+      </output>
+    </operation>
+  </binding>
+  <service name="HelloService">
+    <port binding="tns:HelloSoapBinding" name="HelloPort">
+      <soap:address location="http://localhost:8193/HelloService"/>
+      <smix:endpoint defaultMep="in-out" role="consumer"/>
+    </port>
+  </service>
+</definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://localhost:8193/HelloService</con:endpoint></con:endpoints><con:operation
 isOneWay="false" action="" name="Hello" bindingOperationName="Hello" 
type="Request-Response" inputName="" receivesAttachments="false" 
sendsAttachments="false" anonymous="optional"><con:settings/><con:call 
name="Request 1"><con:settings><con:setting 
id="com.eviware.soapui.impl.wsdl.wsdlrequ...@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8193/HelloService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
 xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:hel="urn:/HelloWorld2.wsdl">
+   <soapenv:Header/>
+   <soapenv:Body>
+      <hel:HelloRequest>
+         <hel:text>Hello</hel:text>
+      </hel:HelloRequest>
+   </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:jmsConfig 
JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig 
mustUnderstand="NONE" version="200508" 
action="urn:/HelloWorld2.wsdl/HelloPortType/HelloRequest"/><con:wsrmConfig 
version="1.2"/></con:call></con:operation></con:interface><con:testSuite 
name="TestSend"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase
 failOnError="true" failTestCaseOnErrors="true" keepSession="false" 
maxResults="0" name="Send" searchProperties="true"><con:settings/><con:testStep 
type="request" name="Hello - Request 1"><con:settings/><con:config 
xsi:type="con:RequestStep" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>HelloSoapBinding</con:interface><con:operation>Hello</con:operation><con:request
 name="Hello - Request 1" outgoingWss="" incomingWss="" timeout="" 
wssPasswordType=""><con:settings><con:setting 
id="com.eviware.soapui.impl.wsdl.wsdlrequ...@request-headers">&lt;xml-fragment/></con:setting></c
 
on:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8193/HelloService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
 xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:hel="urn:/HelloWorld2.wsdl">
+   <soapenv:Header/>
+   <soapenv:Body>
+      <hel:HelloRequest>
+         <hel:text>Hello</hel:text>
+      </hel:HelloRequest>
+   </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP 
Response"/><con:jmsConfig 
JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig 
mustUnderstand="NONE" version="200508" 
action="urn:/HelloWorld2.wsdl/HelloPortType/HelloRequest"/><con:wsrmConfig 
version="1.2"/></con:request></con:config></con:testStep><con:properties/></con:testCase><con:properties/></con:testSuite><con:properties/><con:wssContainer/></con:soapui-project>
\ No newline at end of file

Modified: ode/trunk/distro/src/examples-jbi/maven2/ping-pong-osgi/osgi.bnd
URL: 
http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-jbi/maven2/ping-pong-osgi/osgi.bnd?rev=1057946&r1=1057945&r2=1057946&view=diff
==============================================================================
--- ode/trunk/distro/src/examples-jbi/maven2/ping-pong-osgi/osgi.bnd (original)
+++ ode/trunk/distro/src/examples-jbi/maven2/ping-pong-osgi/osgi.bnd Wed Jan 12 
00:08:24 2011
@@ -1,4 +1,3 @@
-Bundle-Activator: org.apache.ode.jbi.osgi.ServiceUnitActivator
+Import-Package: org.apache.servicemix.cxfbc,org.apache.servicemix.common.osgi
 Export-Package: org.apache.ode.ping
-Import-Package: 
org.apache.ode.jbi.osgi,org.apache.servicemix.http,org.apache.servicemix.common.osgi
 Include-Resource: src/main/resources

Modified: 
ode/trunk/distro/src/examples-jbi/maven2/ping-pong-osgi/src/main/resources/META-INF/spring/xbean.xml
URL: 
http://svn.apache.org/viewvc/ode/trunk/distro/src/examples-jbi/maven2/ping-pong-osgi/src/main/resources/META-INF/spring/xbean.xml?rev=1057946&r1=1057945&r2=1057946&view=diff
==============================================================================
--- 
ode/trunk/distro/src/examples-jbi/maven2/ping-pong-osgi/src/main/resources/META-INF/spring/xbean.xml
 (original)
+++ 
ode/trunk/distro/src/examples-jbi/maven2/ping-pong-osgi/src/main/resources/META-INF/spring/xbean.xml
 Wed Jan 12 00:08:24 2011
@@ -18,27 +18,22 @@
   ~ under the License.
   -->
 <beans xmlns="http://www.springframework.org/schema/beans";
-       xmlns:http="http://servicemix.apache.org/http/1.0";
-       xmlns:ping="urn:/Ping.wsdl"
-       xmlns:pong="urn:/Pong.wsdl"
+       xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="
-         http://www.springframework.org/schema/beans
-         http://www.springframework.org/schema/beans/spring-beans.xsd
-         http://servicemix.apache.org/http/1.0
-         http://servicemix.apache.org/http/1.0/servicemix-http.xsd";>
-    <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:Ping.wsdl"
-    soapVersion="1.1"
-        soap="true" />
-
+       http://servicemix.apache.org/cxfbc/1.0 
+       http://servicemix.apache.org/cxfbc/1.0/servicemix-cxf-bc.xsd
+       http://www.springframework.org/schema/beans 
+       http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
+       ">
+       
     <bean class="org.apache.servicemix.common.osgi.EndpointExporter" />
+    <cxfbc:consumer 
+        xmlns:ping="urn:/Ping.wsdl"
+        xmlns:pong="urn:/Pong.wsdl"
+        wsdl="classpath:Ping.wsdl"
+        locationURI="http://localhost:8193/PingService";
+        targetService="ping:PingService"
+        targetEndpoint="PingPort" />
+
 </beans>


Reply via email to