axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsosno...@apache.org
Subject svn commit: r396347 - in /webservices/axis2/trunk/java/modules/jibx: project.xml test-resources/binding/customer-binding.xml test-resources/wsdl/customer-echo.wsdl test-resources/wsdl/customer.xsd test-resources/xml/customer-data.xml
Date Sun, 23 Apr 2006 23:50:55 GMT
Author: dsosnoski
Date: Sun Apr 23 16:50:55 2006
New Revision: 396347

URL: http://svn.apache.org/viewcvs?rev=396347&view=rev
Log:
Add JiBX code generation test.

Added:
    webservices/axis2/trunk/java/modules/jibx/test-resources/binding/customer-binding.xml
    webservices/axis2/trunk/java/modules/jibx/test-resources/wsdl/customer-echo.wsdl
    webservices/axis2/trunk/java/modules/jibx/test-resources/wsdl/customer.xsd
    webservices/axis2/trunk/java/modules/jibx/test-resources/xml/customer-data.xml
Modified:
    webservices/axis2/trunk/java/modules/jibx/project.xml

Modified: webservices/axis2/trunk/java/modules/jibx/project.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/jibx/project.xml?rev=396347&r1=396346&r2=396347&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jibx/project.xml (original)
+++ webservices/axis2/trunk/java/modules/jibx/project.xml Sun Apr 23 16:50:55 2006
@@ -36,8 +36,53 @@
             <artifactId>axiom-impl</artifactId>
             <version>${axiom.version}</version>
         </dependency>
+       <dependency>
+            <groupId>ws-commons</groupId>
+            <artifactId>XmlSchema</artifactId>
+            <version>${XmlSchema.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>ws-commons</groupId>
+            <artifactId>policy</artifactId>
+            <version>${policy.version}</version>
+            <properties>
+                <module>true</module>
+            </properties>
+        </dependency>
+        <dependency>
+            <groupId>axis2</groupId>
+            <artifactId>axis2-common</artifactId>
+            <version>${pom.currentVersion}</version>
+        </dependency>
+        <dependency>
+            <groupId>axis2</groupId>
+            <artifactId>axis2-codegen</artifactId>
+            <version>${pom.currentVersion}</version>
+        </dependency>
+        <dependency>
+            <groupId>axis2</groupId>
+            <artifactId>axis2-core</artifactId>
+            <version>${pom.currentVersion}</version>
+        </dependency>
+        <dependency>
+            <groupId>axis</groupId>
+            <artifactId>axis-wsdl4j</artifactId>
+            <version>${axis.wsdl4j.version}</version>
+            <properties>
+                <module>true</module>
+            </properties>
+        </dependency>
 
         <!-- external JARs -->
+        <dependency>
+            <groupId>ant</groupId>
+            <artifactId>ant</artifactId>
+            <version>${ant.version}</version>
+            <type>jar</type>
+            <properties>
+                <module>true</module>
+            </properties>
+        </dependency>
         <dependency>
             <groupId>commons-logging</groupId>
             <artifactId>commons-logging</artifactId>

Added: webservices/axis2/trunk/java/modules/jibx/test-resources/binding/customer-binding.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/jibx/test-resources/binding/customer-binding.xml?rev=396347&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jibx/test-resources/binding/customer-binding.xml
(added)
+++ webservices/axis2/trunk/java/modules/jibx/test-resources/binding/customer-binding.xml
Sun Apr 23 16:50:55 2006
@@ -0,0 +1,15 @@
+<binding>
+  <namespace uri="http://ws.apache.org/axis2/jibx/customer/data" default="elements"/>
+  <mapping name="customer" class="org.apache.axis2.jibx.Customer">
+    <structure name="person" field="person">
+      <value name="cust-num" field="customerNumber"/>
+      <value name="first-name" field="firstName"/>
+      <value name="last-name" field="lastName"/>
+    </structure>
+    <value name="street" field="street"/>
+    <value name="city" field="city"/>
+    <value name="state" field="state"/>
+    <value name="zip" field="zip"/>
+    <value name="phone" field="phone"/>
+  </mapping>
+</binding>

Added: webservices/axis2/trunk/java/modules/jibx/test-resources/wsdl/customer-echo.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/jibx/test-resources/wsdl/customer-echo.wsdl?rev=396347&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jibx/test-resources/wsdl/customer-echo.wsdl (added)
+++ webservices/axis2/trunk/java/modules/jibx/test-resources/wsdl/customer-echo.wsdl Sun Apr
23 16:50:55 2006
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions xmlns:dns="http://ws.apache.org/axis2/jibx/customer/data"
+   xmlns="http://schemas.xmlsoap.org/wsdl/"
+   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+   xmlns:tns="http://ws.apache.org/axis2/jibx/customer/wsdl"
+   targetNamespace="http://ws.apache.org/axis2/jibx/customer/wsdl">
+  
+  <types>
+    <xsd:schema>
+      <xsd:import schemaLocation="customer.xsd"
+          targetNamespace="http://ws.apache.org/axis2/jibx/customer/data"/>
+    </xsd:schema>
+  </types>
+
+  <message name="EchoRequest">
+    <part name="parameters" element="dns:customer"/>
+  </message>
+  <message name="EchoResponse">
+    <part name="result" element="dns:customer"/>
+  </message>
+  
+  <portType name="EchoCustomer">
+    <operation name="echo">
+      <input message="tns:EchoRequest"/>
+      <output message="tns:EchoResponse"/>
+    </operation>
+  </portType>
+
+  <binding name="EchoCustomerBinding" type="tns:EchoCustomer">
+    <soap:binding style="doc" transport="http://schemas.xmlsoap.org/soap/http"/>
+    <operation name="echo">
+      <soap:operation soapAction="echo"/>
+      <input>
+        <soap:body use="literal"/>
+      </input>
+      <output>
+        <soap:body use="literal"/>
+      </output>
+    </operation>
+  </binding>
+
+  <service name="EchoCustomerService">
+    <port name="EchoCustomerPort" binding="tns:EchoCustomerBinding">
+      <soap:address location="http://localhost:8800/EchoCustomerService"/>
+    </port>
+  </service>
+  
+</definitions>

Added: webservices/axis2/trunk/java/modules/jibx/test-resources/wsdl/customer.xsd
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/jibx/test-resources/wsdl/customer.xsd?rev=396347&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jibx/test-resources/wsdl/customer.xsd (added)
+++ webservices/axis2/trunk/java/modules/jibx/test-resources/wsdl/customer.xsd Sun Apr 23
16:50:55 2006
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?><schema elementFormDefault="qualified" targetNamespace="http://ws.apache.org/axis2/jibx/customer/data"
xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://ws.apache.org/axis2/jibx/customer/data"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+  <!-- Created from mapping for class org.apache.axis2.jibx.Customer -->
+  <element name="customer">
+    <complexType>
+      <sequence>
+        <element name="person">
+          <complexType>
+            <sequence>
+              <element name="cust-num" type="xsd:int"/>
+              <element name="first-name" type="xsd:string"/>
+              <element name="last-name" type="xsd:string"/>
+            </sequence>
+          </complexType>
+        </element>
+        <element name="street" type="xsd:string"/>
+        <element name="city" type="xsd:string"/>
+        <element name="state" type="xsd:string"/>
+        <element name="zip" type="xsd:int"/>
+        <element name="phone" type="xsd:string"/>
+      </sequence>
+    </complexType>
+  </element>
+</schema>
\ No newline at end of file

Added: webservices/axis2/trunk/java/modules/jibx/test-resources/xml/customer-data.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/jibx/test-resources/xml/customer-data.xml?rev=396347&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jibx/test-resources/xml/customer-data.xml (added)
+++ webservices/axis2/trunk/java/modules/jibx/test-resources/xml/customer-data.xml Sun Apr
23 16:50:55 2006
@@ -0,0 +1,12 @@
+<customer>
+  <person>
+    <cust-num>123456789</cust-num>
+    <first-name>John</first-name>
+    <last-name>Smith</last-name>
+  </person>
+  <street>12345 Happy Lane</street>
+  <city>Plunk</city>
+  <state>WA</state>
+  <zip>98059</zip>
+  <phone>888.555.1234</phone>
+</customer>



Mime
View raw message