You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ds...@apache.org on 2006/10/13 02:23:30 UTC

svn commit: r463524 - in /webservices/axis2/branches/java/1_1/modules/jibx: ./ test-resources/binding/ test-resources/wsdl/ test/org/apache/axis2/jibx/ test/org/apache/axis2/jibx/beans/ test/org/apache/axis2/jibx/wrappers/

Author: dsosnoski
Date: Thu Oct 12 17:23:28 2006
New Revision: 463524

URL: http://svn.apache.org/viewvc?view=rev&rev=463524
Log:
AXIS2-936 fix by moving binding compiler step into maven build (rather than test code); added code generation test cases for wrapped and unwrapped operations

Added:
    webservices/axis2/branches/java/1_1/modules/jibx/test-resources/binding/library-binding.xml
    webservices/axis2/branches/java/1_1/modules/jibx/test-resources/wsdl/library.wsdl
    webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/beans/
    webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/beans/Book.java
    webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/beans/Type.java
    webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/
    webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookInstanceRequest.java
    webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookInstanceResponse.java
    webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookRequest.java
    webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookResponse.java
    webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBookRequest.java
    webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBookResponse.java
    webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBooksByTypeRequest.java
    webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBooksByTypeResponse.java
    webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetTypesRequest.java
    webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetTypesResponse.java
Modified:
    webservices/axis2/branches/java/1_1/modules/jibx/maven.xml
    webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/Test.java

Modified: webservices/axis2/branches/java/1_1/modules/jibx/maven.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/jibx/maven.xml?view=diff&rev=463524&r1=463523&r2=463524
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/jibx/maven.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/jibx/maven.xml Thu Oct 12 17:23:28 2006
@@ -17,13 +17,13 @@
     </preGoal>
 
     <!-- run the JiBX binding compiler after the Java compiler -->
-    <postGoal name="itest:compile">
+    <preGoal name="test:test">
       <java classname="org.jibx.binding.Compile" fork="true">
         	<classpath refid="maven.dependency.classpath"/>
         	<classpath location="target/test-classes"/>
           <arg value="test-resources/binding/customer-binding.xml"/>
           <arg value="test-resources/binding/library-binding.xml"/>
       </java> 
-    </postGoal>
+    </preGoal>
     
 </project>

Added: webservices/axis2/branches/java/1_1/modules/jibx/test-resources/binding/library-binding.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/jibx/test-resources/binding/library-binding.xml?view=auto&rev=463524
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/jibx/test-resources/binding/library-binding.xml (added)
+++ webservices/axis2/branches/java/1_1/modules/jibx/test-resources/binding/library-binding.xml Thu Oct 12 17:23:28 2006
@@ -0,0 +1,82 @@
+<binding add-constructors="true" force-classes="true"
+    xmlns:tns="http://ws.sosnoski.com/library/types">
+
+  <namespace uri="http://ws.sosnoski.com/library/types" default="elements"/>
+  
+  <mapping name="getBook"
+      class="org.apache.axis2.jibx.wrappers.GetBookRequest">
+    <value name="isbn" field="m_isbn"/>
+  </mapping>
+  
+  <mapping name="getBookResponse"
+      class="org.apache.axis2.jibx.wrappers.GetBookResponse">
+    <structure name="getBookReturn" field="m_book" usage="optional"
+        map-as="tns:BookInformation"/>
+  </mapping>
+  
+  <mapping name="getBooksByType"
+      class="org.apache.axis2.jibx.wrappers.GetBooksByTypeRequest">
+    <value name="type" field="m_type"/>
+  </mapping>
+  
+  <mapping name="getBooksByTypeResponse"
+      class="org.apache.axis2.jibx.wrappers.GetBooksByTypeResponse">
+    <collection field="m_books" usage="optional">
+      <structure name="getBooksByTypeReturn" map-as="tns:BookInformation"/>
+    </collection>
+  </mapping>
+  
+  <mapping name="getTypes"
+      class="org.apache.axis2.jibx.wrappers.GetTypesRequest"/>
+  
+  <mapping name="getTypesResponse"
+      class="org.apache.axis2.jibx.wrappers.GetTypesResponse">
+    <collection field="m_types" usage="optional">
+      <structure name="getTypesReturn" map-as="tns:TypeInformation"/>
+    </collection>
+  </mapping>
+  
+  <mapping name="addBook"
+      class="org.apache.axis2.jibx.wrappers.AddBookRequest">
+    <structure field="m_book">
+      <value name="type" field="m_type"/>
+      <value name="isbn" field="m_isbn"/>
+      <collection field="m_authors">
+        <value name="author" type="java.lang.String"/>
+      </collection>
+      <value name="title" field="m_title"/>
+    </structure>
+  </mapping>
+  
+  <mapping name="addBookResponse"
+      class="org.apache.axis2.jibx.wrappers.AddBookResponse">
+    <value name="addBookReturn" field="m_success"/>
+  </mapping>
+  
+  <mapping name="addBookInstance"
+      class="org.apache.axis2.jibx.wrappers.AddBookInstanceRequest">
+    <structure name="book" field="m_book" map-as="tns:BookInformation"/>
+  </mapping>
+  
+  <mapping name="addBookInstanceResponse"
+      class="org.apache.axis2.jibx.wrappers.AddBookInstanceResponse"/>
+  
+  <mapping abstract="true" class="org.apache.axis2.jibx.beans.Book"
+      type-name="tns:BookInformation">
+    <namespace prefix="types" uri="http://ws.sosnoski.com/library/types"/>
+    <value name="type" style="attribute" field="m_type"/>
+    <value name="isbn" style="attribute" field="m_isbn"/>
+    <collection field="m_authors">
+      <value name="author" type="java.lang.String"/>
+    </collection>
+    <value name="title" field="m_title"/>
+  </mapping>
+  
+  <mapping abstract="true" class="org.apache.axis2.jibx.beans.Type"
+      type-name="tns:TypeInformation">
+    <value name="name" style="attribute" field="m_name"/>
+    <value name="count" style="attribute" field="m_count"/>
+    <value style="text" field="m_description"/>
+  </mapping>
+
+</binding>

Added: webservices/axis2/branches/java/1_1/modules/jibx/test-resources/wsdl/library.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/jibx/test-resources/wsdl/library.wsdl?view=auto&rev=463524
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/jibx/test-resources/wsdl/library.wsdl (added)
+++ webservices/axis2/branches/java/1_1/modules/jibx/test-resources/wsdl/library.wsdl Thu Oct 12 17:23:28 2006
@@ -0,0 +1,268 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions targetNamespace="http://ws.sosnoski.com/library/wsdl"
+    xmlns:wns="http://ws.sosnoski.com/library/wsdl"
+    xmlns:tns="http://ws.sosnoski.com/library/types"
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/">
+  <wsdl:types>
+  
+    <schema elementFormDefault="qualified"
+        targetNamespace="http://ws.sosnoski.com/library/types"
+        xmlns="http://www.w3.org/2001/XMLSchema"
+        xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+        
+      <element name="getBook">
+        <complexType>
+          <sequence>
+            <element name="isbn" type="xsd:string"/>
+          </sequence>
+        </complexType>
+      </element>
+      
+      <element name="getBookResponse">
+        <complexType>
+          <sequence>
+            <element name="getBookReturn" minOccurs="0" type="tns:BookInformation"/>
+          </sequence>
+        </complexType>
+      </element>
+      
+      <element name="getBooksByType">
+        <complexType>
+          <sequence>
+            <element name="type" type="xsd:string"/>
+          </sequence>
+        </complexType>
+      </element>
+      
+      <element name="getBooksByTypeResponse">
+        <complexType>
+          <sequence>
+            <element name="getBooksByTypeReturn" minOccurs="0" maxOccurs="unbounded" type="tns:BookInformation"/>
+          </sequence>
+        </complexType>
+      </element>
+      
+      <element name="getTypes">
+        <complexType>
+          <sequence/>
+        </complexType>
+      </element>
+      
+      <element name="getTypesResponse">
+        <complexType>
+          <sequence>
+            <element name="getTypesReturn" maxOccurs="unbounded" type="tns:TypeInformation"/>
+          </sequence>
+        </complexType>
+      </element>
+      
+      <element name="addBook">
+        <complexType>
+          <sequence>
+            <element name="type" type="xsd:string"/>
+            <element name="isbn" type="xsd:string"/>
+            <element name="author" minOccurs="0" maxOccurs="unbounded" type="xsd:string"/>
+            <element name="title" type="xsd:string"/>
+          </sequence>
+        </complexType>
+      </element>
+      
+      <element name="addBookResponse">
+        <complexType>
+          <sequence>
+            <element name="addBookReturn" type="xsd:boolean"/>
+          </sequence>
+        </complexType>
+      </element>
+      
+      <element name="addBookInstance">
+        <complexType>
+          <sequence>
+            <element name="book" type="tns:BookInformation"/>
+          </sequence>
+        </complexType>
+      </element>
+      
+      <element name="addBookInstanceResponse">
+        <complexType>
+          <sequence/>
+        </complexType>
+      </element>
+      
+      <complexType name="BookInformation">
+        <sequence>
+          <element name="author" minOccurs="0" maxOccurs="unbounded" type="string"/>
+          <element name="title" type="string"/>
+        </sequence>
+        <attribute name="type" use="required" type="string"/>
+        <attribute name="isbn" use="required" type="string"/>
+      </complexType>
+      
+      <complexType name="TypeInformation">
+        <simpleContent>
+          <extension base="xsd:string">
+            <attribute name="count" use="required" type="int"/>
+            <attribute name="name" use="required" type="string"/>
+          </extension>
+        </simpleContent>
+      </complexType>
+      
+    </schema>
+
+  </wsdl:types>
+
+  <wsdl:message name="getBookRequest">
+    <wsdl:part element="tns:getBook" name="parameters"/>
+  </wsdl:message>
+
+  <wsdl:message name="getBookResponse">
+    <wsdl:part element="tns:getBookResponse" name="parameters"/>
+  </wsdl:message>
+
+  <wsdl:message name="getBooksByTypeRequest">
+    <wsdl:part element="tns:getBooksByType" name="parameters"/>
+  </wsdl:message>
+
+  <wsdl:message name="getBooksByTypeResponse">
+    <wsdl:part element="tns:getBooksByTypeResponse" name="parameters"/>
+  </wsdl:message>
+  
+  <wsdl:message name="getTypesRequest">
+    <wsdl:part element="tns:getTypes" name="parameters"/>
+  </wsdl:message>
+
+  <wsdl:message name="getTypesResponse">
+    <wsdl:part element="tns:getTypesResponse" name="parameters"/>
+  </wsdl:message>
+
+  <wsdl:message name="addBookRequest">
+    <wsdl:part element="tns:addBook" name="parameters"/>
+  </wsdl:message>
+  
+  <wsdl:message name="addBookResponse">
+    <wsdl:part element="tns:addBookResponse" name="parameters"/>
+  </wsdl:message>
+
+  <wsdl:message name="addBookInstanceRequest">
+    <wsdl:part element="tns:addBookInstance" name="parameters"/>
+  </wsdl:message>
+  
+  <wsdl:message name="addBookInstanceResponse">
+    <wsdl:part element="tns:addBookInstanceResponse" name="parameters"/>
+  </wsdl:message>
+
+  <wsdl:portType name="Library">
+
+    <wsdl:operation name="getBook">
+      <wsdl:input message="wns:getBookRequest" name="getBookRequest"/>
+      <wsdl:output message="wns:getBookResponse" name="getBookResponse"/>
+    </wsdl:operation>
+
+    <wsdl:operation name="getBooksByType">
+      <wsdl:input message="wns:getBooksByTypeRequest" name="getBooksByTypeRequest"/>
+      <wsdl:output message="wns:getBooksByTypeResponse" name="getBooksByTypeResponse"/>
+    </wsdl:operation>
+
+    <wsdl:operation name="getTypes">
+      <wsdl:input message="wns:getTypesRequest" name="getTypesRequest"/>
+      <wsdl:output message="wns:getTypesResponse" name="getTypesResponse"/>
+    </wsdl:operation>
+
+    <wsdl:operation name="addBook">
+      <wsdl:input message="wns:addBookRequest" name="addBookRequest"/>
+      <wsdl:output message="wns:addBookResponse" name="addBookResponse"/>
+    </wsdl:operation>
+
+    <wsdl:operation name="addBookInstance">
+      <wsdl:input message="wns:addBookInstanceRequest" name="addBookInstanceRequest"/>
+      <wsdl:output message="wns:addBookInstanceResponse" name="addBookInstanceResponse"/>
+    </wsdl:operation>
+
+  </wsdl:portType>
+
+  <wsdl:binding name="LibrarySoapBinding" type="wns:Library">
+
+    <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+
+    <wsdl:operation name="getBook">
+    
+      <wsdlsoap:operation soapAction=""/>
+      
+      <wsdl:input name="getBookRequest">
+        <wsdlsoap:body use="literal"/>
+      </wsdl:input>
+      
+      <wsdl:output name="getBookResponse">
+        <wsdlsoap:body use="literal"/>
+      </wsdl:output>
+      
+    </wsdl:operation>
+
+    <wsdl:operation name="getBooksByType">
+    
+      <wsdlsoap:operation soapAction=""/>
+      
+      <wsdl:input name="getBooksByTypeRequest">
+        <wsdlsoap:body use="literal"/>
+      </wsdl:input>
+      
+      <wsdl:output name="getBooksByTypeResponse">
+        <wsdlsoap:body use="literal"/>
+      </wsdl:output>
+      
+    </wsdl:operation>
+
+    <wsdl:operation name="getTypes">
+    
+      <wsdlsoap:operation soapAction=""/>
+      
+      <wsdl:input name="getTypesRequest">
+        <wsdlsoap:body use="literal"/>
+      </wsdl:input>
+
+      <wsdl:output name="getTypesResponse">
+        <wsdlsoap:body use="literal"/>
+      </wsdl:output>
+
+    </wsdl:operation>
+
+    <wsdl:operation name="addBook">
+
+      <wsdlsoap:operation soapAction=""/>
+
+      <wsdl:input name="addBookRequest">
+        <wsdlsoap:body use="literal"/>
+      </wsdl:input>
+
+      <wsdl:output name="addBookResponse">
+        <wsdlsoap:body use="literal"/>
+      </wsdl:output>
+
+    </wsdl:operation>
+
+    <wsdl:operation name="addBookInstance">
+
+      <wsdlsoap:operation soapAction=""/>
+
+      <wsdl:input name="addBookInstanceRequest">
+        <wsdlsoap:body use="literal"/>
+      </wsdl:input>
+
+      <wsdl:output name="addBookInstanceResponse">
+        <wsdlsoap:body use="literal"/>
+      </wsdl:output>
+
+    </wsdl:operation>
+
+  </wsdl:binding>
+
+  <wsdl:service name="library">
+
+    <wsdl:port binding="wns:LibrarySoapBinding" name="library">
+      <wsdlsoap:address location="http://127.0.0.1:5555/axis2/services/library"/>
+    </wsdl:port>
+
+  </wsdl:service>
+
+</wsdl:definitions>

Modified: webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/Test.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/Test.java?view=diff&rev=463524&r1=463523&r2=463524
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/Test.java (original)
+++ webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/Test.java Thu Oct 12 17:23:28 2006
@@ -53,12 +53,11 @@
     private static final String OUTPUT_LOCATION_PREFIX = "/test";
     private static final String WSDL_BASE_DIR = "test-resources/wsdl/";
     private static final String BINDING_BASE_DIR = "test-resources/binding/";
-    public static final String REPOSITORY_DIR = "test-resources/repo/";
+    private static final String REPOSITORY_DIR = "test-resources/repo/";
     private static final String CLASSES_DIR = "/target/classes/";
     private static final String[] moduleNames= {"common", "core"};
     private static final String MODULE_PATH_PREFIX = "../modules/";
     private static final String COMPILE_TARGET_NAME = "compile";
-    private static final String BIND_TARGET_NAME = "bind";
     private static final String STUB_CLASS =
         "org.apache.ws.axis2.jibx.customer.wsdl.EchoCustomerServiceStub";
 
@@ -67,7 +66,6 @@
     
     private AxisService service;
 
-
     /**
      * Make the root output directory
      * @throws Exception
@@ -80,6 +78,9 @@
         }else{
             outputFile.mkdir();
         }
+    }
+
+    private void startServer() throws Exception {
         service = Utils.createSimpleService(serviceName,
             Echo.class.getName(), operationName);
         UtilServer.start(REPOSITORY_DIR);
@@ -106,11 +107,7 @@
         return dir.delete();
     }
 
-    /**
-     * Remove the root output directory
-     * @throws Exception
-     */
-    protected void tearDown() throws Exception {
+    private void stopServer() throws Exception {
         UtilServer.unDeployService(serviceName);
         UtilServer.stop();
 /*        File outputFile = new File(OUTPUT_LOCATION_BASE);
@@ -125,10 +122,11 @@
      * @param wsdl
      * @param binding
      * @param outdir
+     * @param unwrap
      * @throws CodeGenerationException
      */
-    private void codeGenerate(String wsdl, String binding, String outdir)
-        throws CodeGenerationException {
+    private void codeGenerate(String wsdl, String binding, String outdir,
+        boolean unwrap) throws CodeGenerationException {
         
         // create the option map
         Map optionMap = new HashMap();
@@ -150,6 +148,15 @@
             new CommandLineOption(CommandLineOptionConstants.WSDL2JavaConstants.DATA_BINDING_TYPE_OPTION,
             new String[] {"jibx"}));
          
+         // unwrap if requested
+         if (unwrap) {
+             optionMap.put(CommandLineOptionConstants.WSDL2JavaConstants.UNWRAP_PARAMETERS,
+                 new CommandLineOption(CommandLineOptionConstants.WSDL2JavaConstants.UNWRAP_PARAMETERS,
+                 new String[0]));
+             // force sync only with unwrapping until fixed
+             optionMap.put("s", new CommandLineOption("s", new String[0]));
+         }
+         
          // binding definition is supplied
          String option = CommandLineOptionConstants.WSDL2JavaConstants.EXTRA_OPTIONTYPE_PREFIX +
              JiBXExtension.BINDING_PATH_OPTION;
@@ -219,52 +226,17 @@
         javaCompiler.execute();
 //        codeGenProject.executeTarget(COMPILE_TARGET_NAME);
     }
-
-    /**
-     * Bind the data classes.
-     * 
-     * @param datadir
-     * @param binding
-     */
-    private void bind(String datadir, String binding) throws Exception {
-        
-        // define ant java task for binding compiler
-        Java java = new Java();
-        Project codeGenProject = new Project();
-        Target compileTarget = new Target();
-        compileTarget.setName(BIND_TARGET_NAME);
-        compileTarget.addTask(java);
-        codeGenProject.addTarget(compileTarget);
-        codeGenProject.setSystemProperties();
-        java.setProject(codeGenProject);
-        java.setFork(true);
-        java.setClassname("org.jibx.binding.Compile");
-
-        // set classpath to include generated classes
-        Path classPath = new Path(codeGenProject, datadir) ;
-        classPath.addExisting(classPath.concatSystemClasspath(), false);
-        java.setClasspath(classPath);
-        
-        // add binding definition as argument
-        Argument arg = java.createArg();
-        arg.setValue(binding);
-
-        // execute the binding compiler
-        java.execute();
-    }
     
     public void testBuildAndRun() throws Exception {
+        startServer();
         
         // start by generating and compiling the Axis2 interface code
         String outdir =
             OUTPUT_LOCATION_BASE + OUTPUT_LOCATION_PREFIX;
         codeGenerate(WSDL_BASE_DIR + "customer-echo.wsdl",
-            BINDING_BASE_DIR + "customer-binding.xml", outdir);
+            BINDING_BASE_DIR + "customer-binding.xml", outdir, false);
         compile(outdir);
         
-        // execute the JiBX binding compiler
-        bind(outdir + "/classes", BINDING_BASE_DIR + "customer-binding.xml");
-        
         // finish by testing a roundtrip call to the echo server
         File classesdir = new File(outdir + "/classes");
         URLClassLoader loader = new URLClassLoader(new URL[] {classesdir.toURL()});
@@ -275,7 +247,26 @@
             "WA", "14619 NE 80th Pl.", new Integer(98052));
         Method method = stub.getMethod("echo", new Class[] {Customer.class});
         Object result = method.invoke(inst, new Object[] {customer});
+        stopServer();
         assertEquals("Result object does not match request object",
             customer, result);
+    }
+    
+    public void testCompileWrapped() throws Exception {
+        
+        // generate and compile the Axis2 interface code
+        String outdir = OUTPUT_LOCATION_BASE + OUTPUT_LOCATION_PREFIX;
+        codeGenerate(WSDL_BASE_DIR + "library.wsdl",
+            BINDING_BASE_DIR + "library-binding.xml", outdir, false);
+        compile(outdir);
+    }
+    
+    public void testCompileUnwrapped() throws Exception {
+        
+        // generate and compile the Axis2 interface code
+        String outdir = OUTPUT_LOCATION_BASE + OUTPUT_LOCATION_PREFIX;
+        codeGenerate(WSDL_BASE_DIR + "library.wsdl",
+            BINDING_BASE_DIR + "library-binding.xml", outdir, true);
+        compile(outdir);
     }
 }

Added: webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/beans/Book.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/beans/Book.java?view=auto&rev=463524
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/beans/Book.java (added)
+++ webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/beans/Book.java Thu Oct 12 17:23:28 2006
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.jibx.beans;
+
+public class Book
+{
+    private String m_type;
+    private String m_isbn;
+    private String m_title;
+    private String[] m_authors;
+    
+    public Book() {}
+    
+    public Book(String type, String isbn, String title, String[] authors) {
+        m_isbn = isbn;
+        m_title = title;
+        m_type = type;
+        m_authors = authors;
+    }
+
+    public String getType() {
+        return m_type;
+    }
+    
+    public String getIsbn() {
+        return m_isbn;
+    }
+    
+    public String getTitle() {
+        return m_title;
+    }
+    
+    public String[] getAuthors() {
+        return m_authors;
+    }
+}
\ No newline at end of file

Added: webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/beans/Type.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/beans/Type.java?view=auto&rev=463524
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/beans/Type.java (added)
+++ webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/beans/Type.java Thu Oct 12 17:23:28 2006
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.jibx.beans;
+
+public class Type
+{
+    private String m_name;
+    private String m_description;
+    private int m_count;
+    
+    public Type() {}
+    
+    public Type(String name, String description) {
+        m_name = name;
+        m_description = description;
+    }
+
+    public String getName() {
+        return m_name;
+    }
+    
+    public String getDescription() {
+        return m_description;
+    }
+    
+    public int getCount() {
+        return m_count;
+    }
+    
+    public void setCount(int count) {
+        m_count = count;
+    }
+}
\ No newline at end of file

Added: webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookInstanceRequest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookInstanceRequest.java?view=auto&rev=463524
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookInstanceRequest.java (added)
+++ webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookInstanceRequest.java Thu Oct 12 17:23:28 2006
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.jibx.wrappers;
+
+import org.apache.axis2.jibx.beans.Book;
+
+public class AddBookInstanceRequest
+{
+    private Book m_book;
+    
+    public AddBookInstanceRequest(Book book) {
+        m_book = book;
+    }
+    
+    public Book getBook() {
+        return m_book;
+    }
+}
\ No newline at end of file

Added: webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookInstanceResponse.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookInstanceResponse.java?view=auto&rev=463524
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookInstanceResponse.java (added)
+++ webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookInstanceResponse.java Thu Oct 12 17:23:28 2006
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.jibx.wrappers;
+
+import org.apache.axis2.jibx.beans.Book;
+
+public class AddBookInstanceResponse
+{
+}
\ No newline at end of file

Added: webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookRequest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookRequest.java?view=auto&rev=463524
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookRequest.java (added)
+++ webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookRequest.java Thu Oct 12 17:23:28 2006
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.jibx.wrappers;
+
+import org.apache.axis2.jibx.beans.Book;
+
+public class AddBookRequest
+{
+    private Book m_book;
+    
+    public AddBookRequest(Book book) {
+        m_book = book;
+    }
+    
+    public Book getBook() {
+        return m_book;
+    }
+}
\ No newline at end of file

Added: webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookResponse.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookResponse.java?view=auto&rev=463524
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookResponse.java (added)
+++ webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/AddBookResponse.java Thu Oct 12 17:23:28 2006
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.jibx.wrappers;
+
+import org.apache.axis2.jibx.beans.Book;
+
+public class AddBookResponse
+{
+    private boolean m_success;
+    
+    public void setSuccess(boolean success) {
+        m_success = success;
+    }
+    
+    public boolean isSuccess() {
+        return m_success;
+    }
+}
\ No newline at end of file

Added: webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBookRequest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBookRequest.java?view=auto&rev=463524
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBookRequest.java (added)
+++ webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBookRequest.java Thu Oct 12 17:23:28 2006
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.jibx.wrappers;
+
+public class GetBookRequest
+{
+    private String m_isbn;
+    
+    public GetBookRequest(String isbn) {
+        m_isbn = isbn;
+    }
+
+    public String getIsbn() {
+        return m_isbn;
+    }
+}
\ No newline at end of file

Added: webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBookResponse.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBookResponse.java?view=auto&rev=463524
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBookResponse.java (added)
+++ webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBookResponse.java Thu Oct 12 17:23:28 2006
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.jibx.wrappers;
+
+import org.apache.axis2.jibx.beans.Book;
+
+public class GetBookResponse
+{
+    private Book m_book;
+    
+    public GetBookResponse(Book book) {
+        m_book = book;
+    }
+    
+    public Book getBook() {
+        return m_book;
+    }
+}
\ No newline at end of file

Added: webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBooksByTypeRequest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBooksByTypeRequest.java?view=auto&rev=463524
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBooksByTypeRequest.java (added)
+++ webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBooksByTypeRequest.java Thu Oct 12 17:23:28 2006
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.jibx.wrappers;
+
+public class GetBooksByTypeRequest
+{
+    private String m_type;
+    
+    public GetBooksByTypeRequest(String type) {
+        m_type = type;
+    }
+    
+    public String getType() {
+        return m_type;
+    }
+}
\ No newline at end of file

Added: webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBooksByTypeResponse.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBooksByTypeResponse.java?view=auto&rev=463524
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBooksByTypeResponse.java (added)
+++ webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetBooksByTypeResponse.java Thu Oct 12 17:23:28 2006
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.jibx.wrappers;
+
+import org.apache.axis2.jibx.beans.Book;
+
+public class GetBooksByTypeResponse
+{
+    private Book[] m_books;
+    
+    public GetBooksByTypeResponse(Book[] books) {
+        m_books = books;
+    }
+    
+    public Book[] getBooks() {
+        return m_books;
+    }
+}
\ No newline at end of file

Added: webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetTypesRequest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetTypesRequest.java?view=auto&rev=463524
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetTypesRequest.java (added)
+++ webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetTypesRequest.java Thu Oct 12 17:23:28 2006
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.jibx.wrappers;
+
+import org.apache.axis2.jibx.beans.Book;
+
+public class GetTypesRequest
+{
+}
\ No newline at end of file

Added: webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetTypesResponse.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetTypesResponse.java?view=auto&rev=463524
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetTypesResponse.java (added)
+++ webservices/axis2/branches/java/1_1/modules/jibx/test/org/apache/axis2/jibx/wrappers/GetTypesResponse.java Thu Oct 12 17:23:28 2006
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed 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.axis2.jibx.wrappers;
+
+import org.apache.axis2.jibx.beans.Type;
+
+public class GetTypesResponse
+{
+    private Type[] m_types;
+    
+    public GetTypesResponse(Type[] types) {
+        m_types = types;
+    }
+    
+    public Type[] getTypes() {
+        return m_types;
+    }
+}
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org