servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r783247 - in /servicemix/smx4/features/trunk: ./ assembly/src/main/descriptors/ assembly/src/main/filtered-resources/ examples/cxf-wsdl-first-osgi-package/ examples/cxf-wsdl-first-osgi-package/client/ examples/cxf-wsdl-first-osgi-package/cl...
Date Wed, 10 Jun 2009 08:08:10 GMT
Author: ffang
Date: Wed Jun 10 08:08:08 2009
New Revision: 783247

URL: http://svn.apache.org/viewvc?rev=783247&view=rev
Log:
[SMX4-292]add example to demostrate how to package JBI endpoint with spring dm osgi bundle

Added:
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/README.txt   (with props)
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client.html   (with props)
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/pom.xml   (with props)
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/java/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/java/org/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/java/org/apache/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/java/org/apache/servicemix/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/java/org/apache/servicemix/samples/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/java/org/apache/servicemix/samples/wsdl_first/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/java/org/apache/servicemix/samples/wsdl_first/Client.java   (with props)
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/resources/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/resources/org/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/resources/org/apache/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/resources/org/apache/servicemix/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/resources/org/apache/servicemix/samples/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/resources/org/apache/servicemix/samples/wsdl_first/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/resources/org/apache/servicemix/samples/wsdl_first/request.xml   (with props)
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/pom.xml   (with props)
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/pom.xml   (with props)
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/META-INF/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/META-INF/spring/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/META-INF/spring/beans.xml   (with props)
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/person.wsdl   (with props)
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/pom.xml   (with props)
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/java/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/java/org/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/java/org/apache/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/java/org/apache/servicemix/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/java/org/apache/servicemix/samples/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/java/org/apache/servicemix/samples/wsdl_first/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/java/org/apache/servicemix/samples/wsdl_first/PersonImpl.java   (with props)
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/resources/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/resources/META-INF/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/resources/META-INF/spring/
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/resources/META-INF/spring/xbean.xml   (with props)
    servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/resources/person.wsdl   (with props)
Modified:
    servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-bin.xml
    servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-bin.xml
    servicemix/smx4/features/trunk/assembly/src/main/filtered-resources/features.xml
    servicemix/smx4/features/trunk/assembly/src/main/filtered-resources/pom.xml
    servicemix/smx4/features/trunk/pom.xml

Modified: servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-bin.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-bin.xml?rev=783247&r1=783246&r2=783247&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-bin.xml (original)
+++ servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-bin.xml Wed Jun 10 08:08:08 2009
@@ -168,6 +168,12 @@
             <lineEnding>unix</lineEnding>
         </file>
         <file>
+            <source>${basedir}/../examples/cxf-wsdl-first-osgi-package/README.txt</source>
+            <outputDirectory>/examples/cxf-wsdl-first-osgi-package</outputDirectory>
+            <filtered>true</filtered>
+            <lineEnding>unix</lineEnding>
+        </file>
+        <file>
             <source>${basedir}/../examples/bridge-camel/README.txt</source>
             <outputDirectory>/examples/bridge-camel</outputDirectory>
             <filtered>true</filtered>

Modified: servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-bin.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-bin.xml?rev=783247&r1=783246&r2=783247&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-bin.xml (original)
+++ servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-bin.xml Wed Jun 10 08:08:08 2009
@@ -157,6 +157,12 @@
               <lineEnding>dos</lineEnding>
         </file>
         <file>
+            <source>${basedir}/../examples/cxf-wsdl-first-osgi-package/README.txt</source>
+            <outputDirectory>/examples/cxf-wsdl-first-osgi-package</outputDirectory>
+            <filtered>true</filtered>
+            <lineEnding>dos</lineEnding>
+        </file>
+        <file>
               <source>${basedir}/../examples/bridge-camel/README.txt</source>
               <outputDirectory>/examples/bridge-camel</outputDirectory>
               <filtered>true</filtered>

Modified: servicemix/smx4/features/trunk/assembly/src/main/filtered-resources/features.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/assembly/src/main/filtered-resources/features.xml?rev=783247&r1=783246&r2=783247&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/assembly/src/main/filtered-resources/features.xml (original)
+++ servicemix/smx4/features/trunk/assembly/src/main/filtered-resources/features.xml Wed Jun 10 08:08:08 2009
@@ -153,6 +153,12 @@
         <feature>cxf-osgi</feature>
         <bundle>mvn:org.apache.servicemix.examples/cxf-ws-addressing/${version}</bundle>
     </feature>
+    <feature name="example-cxf-wsdl-first-osgi-package" version="${version}">
+        <feature version="${servicemix-cxf-bc-version}">servicemix-cxf-bc</feature>
+        <feature version="${servicemix-cxf-se-version}">servicemix-cxf-se</feature>
+        <bundle>mvn:org.apache.servicemix.examples.cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/${version}</bundle>
+        <bundle>mvn:org.apache.servicemix.examples.cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/${version}</bundle>
+    </feature>
     <!--
       -
       -  JBI Components

Modified: servicemix/smx4/features/trunk/assembly/src/main/filtered-resources/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/assembly/src/main/filtered-resources/pom.xml?rev=783247&r1=783246&r2=783247&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/assembly/src/main/filtered-resources/pom.xml (original)
+++ servicemix/smx4/features/trunk/assembly/src/main/filtered-resources/pom.xml Wed Jun 10 08:08:08 2009
@@ -44,6 +44,7 @@
         <module>cxf-osgi</module>
         <module>cxf-ws-addressing</module>
         <module>cxf-jaxrs</module>
+        <module>cxf-wsdl-first-osgi-package</module>
     </modules>
 
 </project>

Added: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/README.txt
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/README.txt?rev=783247&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/README.txt (added)
+++ servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/README.txt Wed Jun 10 08:08:08 2009
@@ -0,0 +1,46 @@
+/*
+ * 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.
+ */
+
+Welcome to ServiceMix WSDL design first example
+===============================================
+
+This example is exactly same functionality as cxf-wsdl-first example, but use osgi bundle pakage instead.
+
+First start a ServiceMix server (if not already started) by running
+  bin/servicemix
+in the root dir of this distribution.
+
+To run this sample, launch the following commands:
+  mvn install
+
+When inside the console, just run the following commands to install the
+example:
+
+  features/addUrl
+mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/${servicemix.nmr.version}/xml/features
+  features/addUrl
+mvn:org.apache.servicemix.features/apache-servicemix/${version}/xml/features
+  features/install examples-cxf-wsdl-first-osgi-package
+
+You can browse the WSDL at
+  http://localhost:8092/PersonService?wsdl
+  
+You can also open the client.html page in a browser
+to send a request to the service.
+Or you can launch a java client to send request
+cd client; mvn compile exec:java
+

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/README.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client.html
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client.html?rev=783247&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client.html (added)
+++ servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client.html Wed Jun 10 08:08:08 2009
@@ -0,0 +1,135 @@
+<!--
+    
+    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.
+
+-->
+<!-- $Rev$ $Date$ -->
+<html>
+<head>
+<title>ServiceMix WSDL-First Example</title>
+<script type="text/javascript">
+var urlToOpen = "http://localhost:8092/PersonService/"; //default URL to open
+
+function getHTTPObject() {
+  var xmlhttp = false;
+
+  /* Compilation conditionnelle d'IE */
+  /*@cc_on
+  @if (@_jscript_version >= 5)
+     try {
+        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
+     } catch (e) {
+        try {
+           xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
+        } catch (E) {
+           xmlhttp = false;
+        }
+     }
+  @else
+     xmlhttp = false;
+  @end @*/
+
+  /* on essaie de créer l'objet si ce n'est pas déjà fait */
+  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
+     try {
+        xmlhttp = new XMLHttpRequest();
+     } catch (e) {
+        xmlhttp = false;
+     }
+  }
+
+  if (xmlhttp) {
+     /* on définit ce qui doit se passer quand la page répondra */
+     xmlhttp.onreadystatechange=function() {
+        if (xmlhttp.readyState == 4) { /* 4 : état "complete" */
+           var response = document.getElementById("response");
+           var responseStatus = "";
+           try {
+             responseStatus = xmlhttp.status + "";
+           } catch (e) {
+             responseStatus = "ERROR WHILE RETRIEVING STATUS; MAYBE UNABLE TO CONNECT.";
+           }
+           response.value = "STATUS: " + responseStatus + "\n" + xmlhttp.responseText;
+        }
+     }
+  }
+  return xmlhttp;
+}
+
+function send() {
+  if ((document.getElementById("urlToOpen").value != urlToOpen) && (document.getElementById("urlToOpen").value != "")) {
+    //use user entry only if it at least can be okay
+    urlToOpen = document.getElementById("urlToOpen").value;
+  }  
+  var xmlhttp = getHTTPObject();
+  if (!xmlhttp) {
+    alert('cound not create XMLHttpRequest object');
+    return;
+  }
+  var request = document.getElementById("request");
+  var response = document.getElementById("response");
+  try {
+    netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead UniversalBrowserWrite");
+  } catch (e) {
+  }
+  try {
+    xmlhttp.open("POST", urlToOpen, true);
+  } catch (e) {
+    alert('error opening');
+  }
+  xmlhttp.send(request.value);
+}
+
+</script>
+</head>
+
+<body>
+
+<h1>ServiceMix WSDL-First Example</h1>
+
+<p>Welcome to the WSDL-First example for ServiceMix</p>
+
+<p>Perform a POST into the HTTP binding. This requires JavaScript.</p> 
+<p>Target: <input type="text" size="50" id="urlToOpen" value=""><script type="text/javascript">document.getElementById("urlToOpen").value = urlToOpen;</script>.</p>
+  
+<table>
+  <tr>
+    <td>
+  <textarea id="request" style="width:600px;height:400px" onKeyUp="send();"><?xml version="1.0" encoding="UTF-8"?>
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
+              xmlns:tns="http://servicemix.apache.org/samples/wsdl-first/types">
+  <env:Body>
+    <tns:GetPerson>
+      <tns:personId>world</tns:personId>
+    </tns:GetPerson>
+  </env:Body>
+</env:Envelope>
+
+  </textarea>
+    </td>
+    <td>
+  <textarea id="response" style="width:600px;height:400px">
+  </textarea>
+    </td>
+  </tr>
+  <tr>
+    <td colspan=2>
+  <input type="button" value="Send" onClick="send();"/>
+    </td>
+  </tr>
+</table>
+</body>
+</html>

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client.html
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/pom.xml?rev=783247&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/pom.xml (added)
+++ servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/pom.xml Wed Jun 10 08:08:08 2009
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+<!--
+
+    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.
+-->
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.servicemix.examples</groupId>
+        <artifactId>cxf-wsdl-first-osgi-package</artifactId>
+        <version>4.1.0-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.servicemix.examples.cxf-wsdl-first-osgi-package</groupId>
+    <artifactId>wsdl-first-client</artifactId>
+    <name>ServiceMix :: Samples :: WSDL first :: Client</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.servicemix</groupId>
+            <artifactId>servicemix-utils</artifactId>
+            <version>${servicemix-utils.version}</version>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration> 
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>exec-maven-plugin</artifactId>
+                <configuration>
+                    <mainClass>org.apache.servicemix.samples.wsdl_first.Client</mainClass>
+                    <includePluginDependencies>false</includePluginDependencies>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/java/org/apache/servicemix/samples/wsdl_first/Client.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/java/org/apache/servicemix/samples/wsdl_first/Client.java?rev=783247&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/java/org/apache/servicemix/samples/wsdl_first/Client.java (added)
+++ servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/java/org/apache/servicemix/samples/wsdl_first/Client.java Wed Jun 10 08:08:08 2009
@@ -0,0 +1,53 @@
+/*
+ * 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.servicemix.samples.wsdl_first;
+
+import java.io.ByteArrayOutputStream;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.net.URL;
+import java.net.URLConnection;
+
+import org.apache.servicemix.util.FileUtil;
+
+public class Client{
+    public static void main(String[] args) {
+        try {
+	    new Client().sendRequest();
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+    
+    public void sendRequest() throws Exception {
+        URLConnection connection = new URL("http://localhost:8092/PersonService/")
+                .openConnection();
+        connection.setDoInput(true);
+        connection.setDoOutput(true);
+        OutputStream os = connection.getOutputStream();
+        // Post the request file.
+        InputStream fis = getClass().getClassLoader().getResourceAsStream("org/apache/servicemix/samples/wsdl_first/request.xml");
+        FileUtil.copyInputStream(fis, os);
+        // Read the response.
+        InputStream is = connection.getInputStream();
+        ByteArrayOutputStream baos = new ByteArrayOutputStream();
+        FileUtil.copyInputStream(is, baos);
+        System.out.println("the response is =====>");
+        System.out.println(baos.toString());
+    }
+
+}

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/java/org/apache/servicemix/samples/wsdl_first/Client.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/java/org/apache/servicemix/samples/wsdl_first/Client.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/resources/org/apache/servicemix/samples/wsdl_first/request.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/resources/org/apache/servicemix/samples/wsdl_first/request.xml?rev=783247&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/resources/org/apache/servicemix/samples/wsdl_first/request.xml (added)
+++ servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/resources/org/apache/servicemix/samples/wsdl_first/request.xml Wed Jun 10 08:08:08 2009
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
+              xmlns:tns="http://servicemix.apache.org/samples/wsdl-first/types">
+  <env:Body>
+    <tns:GetPerson>
+      <tns:personId>world</tns:personId>
+    </tns:GetPerson>
+  </env:Body>
+</env:Envelope>

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/resources/org/apache/servicemix/samples/wsdl_first/request.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/resources/org/apache/servicemix/samples/wsdl_first/request.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/client/src/main/resources/org/apache/servicemix/samples/wsdl_first/request.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/pom.xml?rev=783247&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/pom.xml (added)
+++ servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/pom.xml Wed Jun 10 08:08:08 2009
@@ -0,0 +1,90 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+<!--
+
+    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.
+-->
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.servicemix.examples</groupId>
+        <artifactId>examples</artifactId>
+        <version>4.1.0-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.servicemix.examples</groupId>
+    <artifactId>cxf-wsdl-first-osgi-package</artifactId>
+    <name>ServiceMix :: Samples :: CXF WSDL first Osgi Package</name>
+    <packaging>pom</packaging>
+    
+    <!-- Add ServiceMix repositories for snaphots and releases -->
+    <pluginRepositories>
+      <pluginRepository>
+        <id>apache.snapshots</id>
+        <name>Apache Snapshots Repository</name>
+        <url>http://repository.apache.org/content/groups/snapshots-group</url>
+        <snapshots>
+          <enabled>true</enabled>
+        </snapshots>
+        <releases>
+           <enabled>false</enabled>
+        </releases>
+      </pluginRepository>
+      <pluginRepository>
+        <id>apache.incubating</id>
+        <name>Apache Incubating Repository</name>
+        <url>http://people.apache.org/repo/m2-incubating-repository</url>
+        <snapshots>
+          <enabled>false</enabled>
+        </snapshots>
+        <releases>
+           <enabled>true</enabled>
+        </releases>
+      </pluginRepository>
+    </pluginRepositories>
+    <repositories>
+      <repository>
+        <id>apache.snapshots</id>
+        <name>Apache Snapshots Repository</name>
+        <url>http://repository.apache.org/content/groups/snapshots-group</url>
+        <snapshots>
+          <enabled>true</enabled>
+        </snapshots>
+        <releases>
+           <enabled>false</enabled>
+        </releases>
+      </repository>
+      <repository>
+        <id>apache.incubating</id>
+        <name>Apache Incubating Repository</name>
+        <url>http://people.apache.org/repo/m2-incubating-repository</url>
+        <snapshots>
+          <enabled>false</enabled>
+        </snapshots>
+        <releases>
+           <enabled>true</enabled>
+        </releases>
+      </repository>
+    </repositories>
+    
+    <modules>
+      <module>wsdl-first-cxfse-bundle</module>
+      <module>wsdl-first-cxfbc-bundle</module>
+      <module>client</module>
+    </modules> 
+    
+</project>

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/pom.xml?rev=783247&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/pom.xml (added)
+++ servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/pom.xml Wed Jun 10 08:08:08 2009
@@ -0,0 +1,81 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+<!--
+
+    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.
+-->
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.servicemix.examples</groupId>
+        <artifactId>cxf-wsdl-first-osgi-package</artifactId>
+        <version>4.1.0-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.servicemix.examples.cxf-wsdl-first-osgi-package</groupId>
+    <artifactId>wsdl-first-cxfbc-bundle</artifactId>
+    <packaging>bundle</packaging>
+    <name>ServiceMix :: Samples :: WSDL first :: CXF BC BUNDLE</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-frontend-jaxws</artifactId>
+            <version>${cxf.version}</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
+            <version>${geronimo.wsmetadata.version}</version>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Import-Package>
+                            javax.jws,
+                            javax.wsdl,
+                            javax.xml.bind,
+                            javax.xml.bind.annotation,
+                            javax.xml.namespace,
+                            javax.xml.soap,
+                            javax.xml.ws,
+                            META-INF.cxf,
+                            org.apache.cxf.bus,
+                            org.apache.cxf.bus.spring,
+                            org.apache.cxf.bus.resource,
+                            org.apache.cxf.configuration.spring,
+                            org.apache.cxf.resource,
+                            org.apache.servicemix.cxfbc,
+                            org.springframework.beans.factory.config,
+                            org.apache.servicemix.common.osgi
+                        </Import-Package>
+                        <Require-Bundle>org.apache.cxf.bundle</Require-Bundle>
+                     </instructions>
+                </configuration>
+            </plugin>
+
+        </plugins>
+    </build>
+</project>

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/META-INF/spring/beans.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/META-INF/spring/beans.xml?rev=783247&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/META-INF/spring/beans.xml (added)
+++ servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/META-INF/spring/beans.xml Wed Jun 10 08:08:08 2009
@@ -0,0 +1,33 @@
+<?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:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
+       xmlns:person="http://servicemix.apache.org/samples/wsdl-first"
+        xsi:schemaLocation="
+                http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+                http://servicemix.apache.org/cxfbc/1.0 http://servicemix.apache.org/schema/servicemix-cxf-bc-2009.01.xsd">
+
+  <cxfbc:consumer wsdl="classpath:person.wsdl"
+                      targetService="person:PersonService"
+                      targetInterface="person:Person"/>
+  <bean class="org.apache.servicemix.common.osgi.EndpointExporter" />
+
+</beans>

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/META-INF/spring/beans.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/META-INF/spring/beans.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/META-INF/spring/beans.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/person.wsdl
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/person.wsdl?rev=783247&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/person.wsdl (added)
+++ servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/person.wsdl Wed Jun 10 08:08:08 2009
@@ -0,0 +1,98 @@
+<?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.
+
+-->
+<!-- $Rev$ $Date$ -->
+<wsdl:definitions name="wsdl-first"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns:tns="http://servicemix.apache.org/samples/wsdl-first"
+	xmlns:typens="http://servicemix.apache.org/samples/wsdl-first/types"
+	targetNamespace="http://servicemix.apache.org/samples/wsdl-first">
+
+	<wsdl:types>
+		<xsd:schema targetNamespace="http://servicemix.apache.org/samples/wsdl-first/types"
+		            elementFormDefault="qualified">
+			<xsd:element name="GetPerson">
+			  <xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="personId" type="xsd:string"/>
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+			<xsd:element name="GetPersonResponse">
+			  <xsd:complexType>
+					<xsd:sequence>
+					    <xsd:element name="personId" type="xsd:string"/>
+						<xsd:element name="ssn" type="xsd:string"/>
+						<xsd:element name="name" type="xsd:string"/>
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+			<xsd:element name="UnknownPersonFault">
+			  <xsd:complexType>
+					<xsd:sequence>
+					    <xsd:element name="personId" type="xsd:string"/>
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+		</xsd:schema>
+  </wsdl:types>
+	
+	<wsdl:message name="GetPersonRequest">
+		<wsdl:part name="payload" element="typens:GetPerson"/>
+	</wsdl:message>
+	<wsdl:message name="GetPersonResponse">
+		<wsdl:part name="payload" element="typens:GetPersonResponse"/>
+	</wsdl:message>
+	<wsdl:message name="UnknownPersonFault">
+		<wsdl:part name="payload" element="typens:UnknownPersonFault"/>
+	</wsdl:message>
+
+    <wsdl:portType name="Person">
+		<wsdl:operation name="GetPerson">
+			<wsdl:input message="tns:GetPersonRequest"/>
+			<wsdl:output message="tns:GetPersonResponse"/>
+			<wsdl:fault name="UnknownPerson" message="tns:UnknownPersonFault"/>
+		</wsdl:operation>
+	</wsdl:portType>
+	
+    <wsdl:binding name="PersonSOAPBinding" type="tns:Person">
+    	<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="GetPerson">
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal" />
+			</wsdl:output>
+			<wsdl:fault name="UnknownPerson">
+				<soap:fault use="literal" name="UnknownPerson" />
+			</wsdl:fault>
+       </wsdl:operation>
+   </wsdl:binding>
+
+	<wsdl:service name="PersonService">
+    	<wsdl:port binding="tns:PersonSOAPBinding" name="soap">
+           <soap:address location="http://localhost:8092/PersonService/" />
+       </wsdl:port>
+   </wsdl:service>
+
+</wsdl:definitions>

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/person.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/person.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfbc-bundle/src/main/resources/person.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/pom.xml?rev=783247&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/pom.xml (added)
+++ servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/pom.xml Wed Jun 10 08:08:08 2009
@@ -0,0 +1,118 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+<!--
+
+    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.
+-->
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.servicemix.examples</groupId>
+        <artifactId>cxf-wsdl-first-osgi-package</artifactId>
+        <version>4.1.0-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.servicemix.examples.cxf-wsdl-first-osgi-package</groupId>
+    <artifactId>wsdl-first-cxfse-bundle</artifactId>
+    <packaging>bundle</packaging>
+    <name>ServiceMix :: Samples :: WSDL first :: CXF SE BUNDLE</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-frontend-jaxws</artifactId>
+            <version>${cxf.version}</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
+            <version>${geronimo.wsmetadata.version}</version>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration> 
+            </plugin>
+            <plugin>
+                <groupId>org.apache.cxf</groupId>
+                <artifactId>cxf-codegen-plugin</artifactId>
+                <version>${cxf.version}</version>
+                <executions>
+                    <execution>
+                        <phase>generate-sources</phase>
+                        <configuration>
+                            <sourceRoot>${basedir}/target/jaxws</sourceRoot>
+                            <wsdlOptions>
+                                <wsdlOption>
+                                    <wsdl>${basedir}/src/main/resources/person.wsdl</wsdl>
+                                    <extraargs>
+                                        <extraarg>-verbose</extraarg>
+                                    </extraargs>
+                                </wsdlOption>
+
+                            </wsdlOptions>
+
+                        </configuration>
+                        <goals>
+                            <goal>wsdl2java</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Import-Package>
+                            javax.jws,
+                            javax.wsdl,
+                            javax.xml.bind,
+                            javax.xml.bind.annotation,
+                            javax.xml.namespace,
+                            javax.xml.soap,
+                            javax.xml.ws,
+                            META-INF.cxf,
+                            org.apache.cxf.bus,
+                            org.apache.cxf.bus.spring,
+                            org.apache.cxf.bus.resource,
+                            org.apache.cxf.configuration.spring,
+                            org.apache.cxf.resource,
+                            org.apache.servicemix.cxfse,
+                            org.springframework.beans.factory.config,
+                            org.apache.servicemix.common.osgi
+                        </Import-Package>
+                        <Require-Bundle>org.apache.cxf.bundle</Require-Bundle>
+                        <Export-Package>
+                                org.apache.servicemix.samples.wsdl_first,
+                                org.apache.servicemix.samples.wsdl_first.types
+                        </Export-Package>
+                     </instructions>
+                </configuration>
+            </plugin>
+
+        </plugins>
+    </build>
+</project>

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/java/org/apache/servicemix/samples/wsdl_first/PersonImpl.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/java/org/apache/servicemix/samples/wsdl_first/PersonImpl.java?rev=783247&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/java/org/apache/servicemix/samples/wsdl_first/PersonImpl.java (added)
+++ servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/java/org/apache/servicemix/samples/wsdl_first/PersonImpl.java Wed Jun 10 08:08:08 2009
@@ -0,0 +1,40 @@
+/*
+ * 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.servicemix.samples.wsdl_first;
+
+import javax.jws.WebService;
+import javax.xml.ws.Holder;
+
+import org.apache.servicemix.samples.wsdl_first.types.GetPerson;
+import org.apache.servicemix.samples.wsdl_first.types.GetPersonResponse;
+
+@WebService(serviceName = "PersonService", targetNamespace = "http://servicemix.apache.org/samples/wsdl-first", endpointInterface = "org.apache.servicemix.samples.wsdl_first.Person")
+public class PersonImpl implements Person {
+
+    public void getPerson(Holder<String> personId, Holder<String> ssn, Holder<String> name)
+        throws UnknownPersonFault
+    {
+        if (personId.value == null || personId.value.length() == 0) {
+            org.apache.servicemix.samples.wsdl_first.types.UnknownPersonFault fault = new org.apache.servicemix.samples.wsdl_first.types.UnknownPersonFault();
+            fault.setPersonId(personId.value);
+            throw new UnknownPersonFault(null, fault);
+        }
+        name.value = "Guillaume";
+        ssn.value = "000-000-0000";
+    }
+
+}

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/java/org/apache/servicemix/samples/wsdl_first/PersonImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/java/org/apache/servicemix/samples/wsdl_first/PersonImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/resources/META-INF/spring/xbean.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/resources/META-INF/spring/xbean.xml?rev=783247&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/resources/META-INF/spring/xbean.xml (added)
+++ servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/resources/META-INF/spring/xbean.xml Wed Jun 10 08:08:08 2009
@@ -0,0 +1,36 @@
+<?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:cxfse="http://servicemix.apache.org/cxfse/1.0"
+        xsi:schemaLocation="
+                http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+                http://servicemix.apache.org/cxfse/1.0 http://servicemix.apache.org/schema/servicemix-cxf-se-2009.01.xsd">
+
+
+    <cxfse:endpoint>
+        <cxfse:pojo>
+          <bean class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
+        </cxfse:pojo>
+    </cxfse:endpoint>
+
+    <bean class="org.apache.servicemix.common.osgi.EndpointExporter" />
+
+</beans>

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/resources/META-INF/spring/xbean.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/resources/META-INF/spring/xbean.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/resources/META-INF/spring/xbean.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/resources/person.wsdl
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/resources/person.wsdl?rev=783247&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/resources/person.wsdl (added)
+++ servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/resources/person.wsdl Wed Jun 10 08:08:08 2009
@@ -0,0 +1,98 @@
+<?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.
+
+-->
+<!-- $Rev$ $Date$ -->
+<wsdl:definitions name="wsdl-first"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns:tns="http://servicemix.apache.org/samples/wsdl-first"
+	xmlns:typens="http://servicemix.apache.org/samples/wsdl-first/types"
+	targetNamespace="http://servicemix.apache.org/samples/wsdl-first">
+
+	<wsdl:types>
+		<xsd:schema targetNamespace="http://servicemix.apache.org/samples/wsdl-first/types"
+		            elementFormDefault="qualified">
+			<xsd:element name="GetPerson">
+			  <xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="personId" type="xsd:string"/>
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+			<xsd:element name="GetPersonResponse">
+			  <xsd:complexType>
+					<xsd:sequence>
+					    <xsd:element name="personId" type="xsd:string"/>
+						<xsd:element name="ssn" type="xsd:string"/>
+						<xsd:element name="name" type="xsd:string"/>
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+			<xsd:element name="UnknownPersonFault">
+			  <xsd:complexType>
+					<xsd:sequence>
+					    <xsd:element name="personId" type="xsd:string"/>
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+		</xsd:schema>
+  </wsdl:types>
+	
+	<wsdl:message name="GetPersonRequest">
+		<wsdl:part name="payload" element="typens:GetPerson"/>
+	</wsdl:message>
+	<wsdl:message name="GetPersonResponse">
+		<wsdl:part name="payload" element="typens:GetPersonResponse"/>
+	</wsdl:message>
+	<wsdl:message name="UnknownPersonFault">
+		<wsdl:part name="payload" element="typens:UnknownPersonFault"/>
+	</wsdl:message>
+
+    <wsdl:portType name="Person">
+		<wsdl:operation name="GetPerson">
+			<wsdl:input message="tns:GetPersonRequest"/>
+			<wsdl:output message="tns:GetPersonResponse"/>
+			<wsdl:fault name="UnknownPerson" message="tns:UnknownPersonFault"/>
+		</wsdl:operation>
+	</wsdl:portType>
+	
+    <wsdl:binding name="PersonSOAPBinding" type="tns:Person">
+    	<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="GetPerson">
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal" />
+			</wsdl:output>
+			<wsdl:fault name="UnknownPerson">
+				<soap:fault use="literal" name="UnknownPerson" />
+			</wsdl:fault>
+       </wsdl:operation>
+   </wsdl:binding>
+
+	<wsdl:service name="PersonService">
+    	<wsdl:port binding="tns:PersonSOAPBinding" name="soap">
+           <soap:address location="http://localhost:8092/PersonService/" />
+       </wsdl:port>
+   </wsdl:service>
+
+</wsdl:definitions>

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/resources/person.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/resources/person.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: servicemix/smx4/features/trunk/examples/cxf-wsdl-first-osgi-package/wsdl-first-cxfse-bundle/src/main/resources/person.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: servicemix/smx4/features/trunk/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/pom.xml?rev=783247&r1=783246&r2=783247&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/pom.xml (original)
+++ servicemix/smx4/features/trunk/pom.xml Wed Jun 10 08:08:08 2009
@@ -195,8 +195,8 @@
       <servicemix-saxon-version>2009.01</servicemix-saxon-version>
       <servicemix-truezip-version>2009.01</servicemix-truezip-version>
       <servicemix-camel-version>2009.01</servicemix-camel-version>
-      <servicemix-cxf-bc-version>2009.01</servicemix-cxf-bc-version>
-      <servicemix-cxf-se-version>2009.01</servicemix-cxf-se-version>
+      <servicemix-cxf-bc-version>2009.02-SNAPSHOT</servicemix-cxf-bc-version>
+      <servicemix-cxf-se-version>2009.02-SNAPSHOT</servicemix-cxf-se-version>
       <servicemix-drools-version>2009.01</servicemix-drools-version>
       <servicemix-file-version>2009.01</servicemix-file-version>
       <servicemix-snmp-version>2009.01</servicemix-snmp-version>



Mime
View raw message