You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2008/03/30 18:08:20 UTC

svn commit: r642765 - in /webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator: ./ client/

Author: dims
Date: Sun Mar 30 09:08:10 2008
New Revision: 642765

URL: http://svn.apache.org/viewvc?rev=642765&view=rev
Log:
update the sample with JAXWS 2.1 RI tools generated code

Added:
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddNumbersException_Exception.java
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorServer.java
Removed:
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddNumbersExceptionBean.java
Modified:
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Add.java
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddNumbersException.java
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddResponse.java
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Calculator.java
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorService.java
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/GetTicket.java
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/GetTicketResponse.java
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/ObjectFactory.java
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/Add.java
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddNumbersException.java
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddNumbersException_Exception.java
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddResponse.java
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/Calculator.java
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/CalculatorService.java
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/GetTicket.java
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/GetTicketResponse.java
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/ObjectFactory.java
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/package-info.java
    webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/package-info.java

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Add.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Add.java?rev=642765&r1=642764&r2=642765&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Add.java (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Add.java Sun Mar 30 09:08:10 2008
@@ -20,49 +20,63 @@
 
 import javax.xml.bind.annotation.XmlAccessType;
 import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
 import javax.xml.bind.annotation.XmlType;
 
-@XmlRootElement(name = "add", namespace = "http://calculator.jaxws.axis2.apache.org")
+
+/**
+ * <p>Java class for add complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * &lt;complexType name="add">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="value1" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         &lt;element name="value2" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "add", namespace = "http://calculator.jaxws.axis2.apache.org", propOrder = {
+@XmlType(name = "add", propOrder = {
         "value1",
         "value2"
         })
 public class Add {
 
-    @XmlElement(name = "value1", namespace = "http://calculator.jaxws.axis2.apache.org")
-    private int value1;
-    @XmlElement(name = "value2", namespace = "http://calculator.jaxws.axis2.apache.org")
-    private int value2;
+    protected int value1;
+    protected int value2;
 
     /**
-     * @return returns int
+     * Gets the value of the value1 property.
      */
     public int getValue1() {
-        return this.value1;
+        return value1;
     }
 
     /**
-     * @param value1 the value for the value1 property
+     * Sets the value of the value1 property.
      */
-    public void setValue1(int value1) {
-        this.value1 = value1;
+    public void setValue1(int value) {
+        this.value1 = value;
     }
 
     /**
-     * @return returns int
+     * Gets the value of the value2 property.
      */
     public int getValue2() {
-        return this.value2;
+        return value2;
     }
 
     /**
-     * @param value2 the value for the value2 property
+     * Sets the value of the value2 property.
      */
-    public void setValue2(int value2) {
-        this.value2 = value2;
+    public void setValue2(int value) {
+        this.value2 = value;
     }
 
 }

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddNumbersException.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddNumbersException.java?rev=642765&r1=642764&r2=642765&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddNumbersException.java (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddNumbersException.java Sun Mar 30 09:08:10 2008
@@ -18,33 +18,56 @@
 */
 package org.apache.axis2.jaxws.calculator;
 
-import javax.xml.ws.WebFault;
-
-@WebFault(name = "AddNumbersException",
-        targetNamespace = "http://calculator.jaxws.axis2.apache.org",
-        faultBean = "org.apache.axis2.jaxws.calculator.AddNumbersExceptionBean")
-public class AddNumbersException extends Exception {
-
-    private static final long serialVersionUID = 6719645838690386947L;
-
-    public AddNumbersException() {
-        super();
-        // TODO Auto-generated constructor stub
-    }
-
-    public AddNumbersException(String message, Throwable cause) {
-        super(message, cause);
-        // TODO Auto-generated constructor stub
-    }
-
-    public AddNumbersException(String message) {
-        super(message);
-        // TODO Auto-generated constructor stub
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for AddNumbersException complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * &lt;complexType name="AddNumbersException">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "AddNumbersException", propOrder = {
+        "message"
+        })
+public class AddNumbersException {
+
+    @XmlElement(namespace = "")
+    protected String message;
+
+    /**
+     * Gets the value of the message property.
+     *
+     * @return possible object is
+     *         {@link String }
+     */
+    public String getMessage() {
+        return message;
     }
 
-    public AddNumbersException(Throwable cause) {
-        super(cause);
-        // TODO Auto-generated constructor stub
+    /**
+     * Sets the value of the message property.
+     *
+     * @param value allowed object is
+     *              {@link String }
+     */
+    public void setMessage(String value) {
+        this.message = value;
     }
 
 }

Added: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddNumbersException_Exception.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddNumbersException_Exception.java?rev=642765&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddNumbersException_Exception.java (added)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddNumbersException_Exception.java Sun Mar 30 09:08:10 2008
@@ -0,0 +1,59 @@
+/*
+* 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.axis2.jaxws.calculator;
+
+import javax.xml.ws.WebFault;
+
+
+@WebFault(name = "AddNumbersException", targetNamespace = "http://calculator.jaxws.axis2.apache.org")
+public class AddNumbersException_Exception
+        extends Exception {
+
+    /**
+     * Java type that goes as soapenv:Fault detail element.
+     */
+    private AddNumbersException faultInfo;
+
+    /**
+     * @param faultInfo
+     * @param message
+     */
+    public AddNumbersException_Exception(String message, AddNumbersException faultInfo) {
+        super(message);
+        this.faultInfo = faultInfo;
+    }
+
+    /**
+     * @param faultInfo
+     * @param message
+     * @param cause
+     */
+    public AddNumbersException_Exception(String message, AddNumbersException faultInfo, Throwable cause) {
+        super(message, cause);
+        this.faultInfo = faultInfo;
+    }
+
+    /**
+     * @return returns fault bean: org.apache.axis2.jaxws.calculator.client.AddNumbersException
+     */
+    public AddNumbersException getFaultInfo() {
+        return faultInfo;
+    }
+
+}

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddResponse.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddResponse.java?rev=642765&r1=642764&r2=642765&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddResponse.java (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddResponse.java Sun Mar 30 09:08:10 2008
@@ -21,29 +21,47 @@
 import javax.xml.bind.annotation.XmlAccessType;
 import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
 import javax.xml.bind.annotation.XmlType;
 
-@XmlRootElement(name = "addResponse", namespace = "http://calculator.jaxws.axis2.apache.org")
+
+/**
+ * <p>Java class for addResponse complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * &lt;complexType name="addResponse">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "addResponse", namespace = "http://calculator.jaxws.axis2.apache.org")
+@XmlType(name = "addResponse", propOrder = {
+        "_return"
+        })
 public class AddResponse {
 
-    @XmlElement(name = "return", namespace = "http://calculator.jaxws.axis2.apache.org")
-    private int _return;
+    @XmlElement(name = "return")
+    protected int _return;
 
     /**
-     * @return returns int
+     * Gets the value of the return property.
      */
     public int getReturn() {
-        return this._return;
+        return _return;
     }
 
     /**
-     * @param _return the value for the _return property
+     * Sets the value of the return property.
      */
-    public void setReturn(int _return) {
-        this._return = _return;
+    public void setReturn(int value) {
+        this._return = value;
     }
 
 }

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Calculator.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Calculator.java?rev=642765&r1=642764&r2=642765&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Calculator.java (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Calculator.java Sun Mar 30 09:08:10 2008
@@ -23,15 +23,14 @@
 import javax.jws.WebResult;
 import javax.jws.WebService;
 import javax.xml.bind.annotation.XmlSeeAlso;
-import javax.xml.ws.Action;
-import javax.xml.ws.FaultAction;
 import javax.xml.ws.RequestWrapper;
 import javax.xml.ws.ResponseWrapper;
 import javax.xml.ws.wsaddressing.W3CEndpointReference;
 
+
 @WebService(name = "Calculator", targetNamespace = "http://calculator.jaxws.axis2.apache.org")
 @XmlSeeAlso({
-        W3CEndpointReference.class
+        ObjectFactory.class
         })
 public interface Calculator {
 
@@ -49,19 +48,18 @@
      * @param value1
      * @param value2
      * @return returns int
-     * @throws AddNumbersException
+     * @throws AddNumbersException_Exception
      */
     @WebMethod
     @WebResult(targetNamespace = "http://calculator.jaxws.axis2.apache.org")
     @RequestWrapper(localName = "add", targetNamespace = "http://calculator.jaxws.axis2.apache.org", className = "org.apache.axis2.jaxws.calculator.Add")
     @ResponseWrapper(localName = "addResponse", targetNamespace = "http://calculator.jaxws.axis2.apache.org", className = "org.apache.axis2.jaxws.calculator.AddResponse")
-    @Action(input = "http://calculator.jaxws.axis2.apache.org/add", output = "http://calculator.jaxws.axis2.apache.org/addResponse",
-            fault = {@FaultAction(className = AddNumbersException.class, value = "http://calculator.jaxws.axis2.apache.org/addFault")})
     public int add(
             @WebParam(name = "value1", targetNamespace = "http://calculator.jaxws.axis2.apache.org")
             int value1,
             @WebParam(name = "value2", targetNamespace = "http://calculator.jaxws.axis2.apache.org")
             int value2)
-            throws AddNumbersException;
+            throws AddNumbersException_Exception
+            ;
 
 }

Added: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorServer.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorServer.java?rev=642765&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorServer.java (added)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorServer.java Sun Mar 30 09:08:10 2008
@@ -0,0 +1,39 @@
+/*
+ * 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.axis2.jaxws.calculator;
+
+import javax.xml.ws.Endpoint;
+
+public class CalculatorServer{
+
+    protected CalculatorServer() throws Exception {
+        System.out.println("Starting Server");
+        Object implementor = new CalculatorService();
+        String address = "http://localhost:8080/axis2/services/CalculatorService.CalculatorServicePort";
+        Endpoint.publish(address, implementor);
+    }
+    
+    public static void main(String args[]) throws Exception { 
+        new CalculatorServer();
+        System.out.println("Server ready...");         
+        Thread.sleep(Integer.MAX_VALUE); 
+        System.out.println("Server exitting");
+        System.exit(0);
+    }
+}

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorService.java?rev=642765&r1=642764&r2=642765&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorService.java (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorService.java Sun Mar 30 09:08:10 2008
@@ -73,16 +73,20 @@
      *  (non-Javadoc)
      * @see org.apache.axis2.jaxws.calculator.Calculator#add(int, int)
      */
-    public int add(int value1, int value2) throws AddNumbersException {
+    public int add(int value1, int value2) throws AddNumbersException_Exception {
         List list = (List) getContext().getMessageContext().get(MessageContext.REFERENCE_PARAMETERS);
 
-        if (list.isEmpty())
-            throw new AddNumbersException("No ticket found.");
-
+        if (list.isEmpty()) {
+            AddNumbersException faultInfo = new AddNumbersException();
+            faultInfo.setMessage("No ticket found.");
+            throw new AddNumbersException_Exception(faultInfo.getMessage(), faultInfo);
+        }
         Element element = (Element) list.get(0);
 
         if (!"123456789".equals(element.getTextContent())) {
-            throw new AddNumbersException("Invalid ticket: " + element.getTextContent());
+            AddNumbersException faultInfo = new AddNumbersException();
+            faultInfo.setMessage("Invalid ticket: " + element.getTextContent());
+            throw new AddNumbersException_Exception(faultInfo.getMessage(), faultInfo);
         }
 
         System.out.println("value1: " + value1 + " value2: " + value2);

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/GetTicket.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/GetTicket.java?rev=642765&r1=642764&r2=642765&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/GetTicket.java (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/GetTicket.java Sun Mar 30 09:08:10 2008
@@ -20,12 +20,27 @@
 
 import javax.xml.bind.annotation.XmlAccessType;
 import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlRootElement;
 import javax.xml.bind.annotation.XmlType;
 
-@XmlRootElement(name = "getTicket", namespace = "http://calculator.jaxws.axis2.apache.org")
+
+/**
+ * <p>Java class for getTicket complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * &lt;complexType name="getTicket">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "getTicket", namespace = "http://calculator.jaxws.axis2.apache.org")
+@XmlType(name = "getTicket")
 public class GetTicket {
 
 

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/GetTicketResponse.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/GetTicketResponse.java?rev=642765&r1=642764&r2=642765&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/GetTicketResponse.java (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/GetTicketResponse.java Sun Mar 30 09:08:10 2008
@@ -21,30 +21,54 @@
 import javax.xml.bind.annotation.XmlAccessType;
 import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
 import javax.xml.bind.annotation.XmlType;
 import javax.xml.ws.wsaddressing.W3CEndpointReference;
 
-@XmlRootElement(name = "getTicketResponse", namespace = "http://calculator.jaxws.axis2.apache.org")
+
+/**
+ * <p>Java class for getTicketResponse complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * &lt;complexType name="getTicketResponse">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="return" type="{http://www.w3.org/2005/08/addressing}EndpointReferenceType" minOccurs="0"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "getTicketResponse", namespace = "http://calculator.jaxws.axis2.apache.org")
+@XmlType(name = "getTicketResponse", propOrder = {
+        "_return"
+        })
 public class GetTicketResponse {
 
-    @XmlElement(name = "return", namespace = "http://calculator.jaxws.axis2.apache.org")
-    private W3CEndpointReference _return;
+    @XmlElement(name = "return")
+    protected W3CEndpointReference _return;
 
     /**
-     * @return returns W3CEndpointReference
+     * Gets the value of the return property.
+     *
+     * @return possible object is
+     *         {@link W3CEndpointReference }
      */
     public W3CEndpointReference getReturn() {
-        return this._return;
+        return _return;
     }
 
     /**
-     * @param _return the value for the _return property
+     * Sets the value of the return property.
+     *
+     * @param value allowed object is
+     *              {@link W3CEndpointReference }
      */
-    public void setReturn(W3CEndpointReference _return) {
-        this._return = _return;
+    public void setReturn(W3CEndpointReference value) {
+        this._return = value;
     }
 
 }

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/ObjectFactory.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/ObjectFactory.java?rev=642765&r1=642764&r2=642765&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/ObjectFactory.java (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/ObjectFactory.java Sun Mar 30 09:08:10 2008
@@ -18,13 +18,16 @@
 */
 package org.apache.axis2.jaxws.calculator;
 
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
 import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
 
 
 /**
  * This object contains factory methods for each
  * Java content interface and Java element interface
- * generated in the org.apache.axis2.jaxws.calculator package.
+ * generated in the org.apache.axis2.jaxws.calculator.client package.
  * <p>An ObjectFactory allows you to programatically
  * construct new instances of the Java representation
  * for XML content. The Java representation of XML
@@ -37,9 +40,14 @@
 @XmlRegistry
 public class ObjectFactory {
 
+    private final static QName _GetTicket_QNAME = new QName("http://calculator.jaxws.axis2.apache.org", "getTicket");
+    private final static QName _Add_QNAME = new QName("http://calculator.jaxws.axis2.apache.org", "add");
+    private final static QName _AddResponse_QNAME = new QName("http://calculator.jaxws.axis2.apache.org", "addResponse");
+    private final static QName _GetTicketResponse_QNAME = new QName("http://calculator.jaxws.axis2.apache.org", "getTicketResponse");
+    private final static QName _AddNumbersException_QNAME = new QName("http://calculator.jaxws.axis2.apache.org", "AddNumbersException");
 
     /**
-     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.apache.axis2.jaxws.calculator
+     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.apache.axis2.jaxws.calculator.client
      */
     public ObjectFactory() {
     }
@@ -58,4 +66,66 @@
         return new AddResponse();
     }
 
+    /**
+     * Create an instance of {@link AddNumbersException }
+     */
+    public AddNumbersException createAddNumbersException() {
+        return new AddNumbersException();
+    }
+
+    /**
+     * Create an instance of {@link GetTicket }
+     */
+    public GetTicket createGetTicket() {
+        return new GetTicket();
+    }
+
+    /**
+     * Create an instance of {@link GetTicketResponse }
+     */
+    public GetTicketResponse createGetTicketResponse() {
+        return new GetTicketResponse();
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link GetTicket }{@code >}}
+     */
+    @XmlElementDecl(namespace = "http://calculator.jaxws.axis2.apache.org", name = "getTicket")
+    public JAXBElement<GetTicket> createGetTicket(GetTicket value) {
+        return new JAXBElement<GetTicket>(_GetTicket_QNAME, GetTicket.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link Add }{@code >}}
+     */
+    @XmlElementDecl(namespace = "http://calculator.jaxws.axis2.apache.org", name = "add")
+    public JAXBElement<Add> createAdd(Add value) {
+        return new JAXBElement<Add>(_Add_QNAME, Add.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link AddResponse }{@code >}}
+     */
+    @XmlElementDecl(namespace = "http://calculator.jaxws.axis2.apache.org", name = "addResponse")
+    public JAXBElement<AddResponse> createAddResponse(AddResponse value) {
+        return new JAXBElement<AddResponse>(_AddResponse_QNAME, AddResponse.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link GetTicketResponse }{@code >}}
+     */
+    @XmlElementDecl(namespace = "http://calculator.jaxws.axis2.apache.org", name = "getTicketResponse")
+    public JAXBElement<GetTicketResponse> createGetTicketResponse(GetTicketResponse value) {
+        return new JAXBElement<GetTicketResponse>(_GetTicketResponse_QNAME, GetTicketResponse.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersException }{@code >}}
+     */
+    @XmlElementDecl(namespace = "http://calculator.jaxws.axis2.apache.org", name = "AddNumbersException")
+    public JAXBElement<AddNumbersException> createAddNumbersException(AddNumbersException value) {
+        return new JAXBElement<AddNumbersException>(_AddNumbersException_QNAME, AddNumbersException.class, null, value);
+    }
+
 }
+

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/Add.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/Add.java?rev=642765&r1=642764&r2=642765&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/Add.java (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/Add.java Sun Mar 30 09:08:10 2008
@@ -42,7 +42,7 @@
  * </pre>
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "add", namespace = "http://calculator.jaxws.axis2.apache.org", propOrder = {
+@XmlType(name = "add", propOrder = {
         "value1",
         "value2"
         })

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddNumbersException.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddNumbersException.java?rev=642765&r1=642764&r2=642765&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddNumbersException.java (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddNumbersException.java Sun Mar 30 09:08:10 2008
@@ -42,7 +42,7 @@
  * </pre>
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "AddNumbersException", namespace = "http://calculator.jaxws.axis2.apache.org", propOrder = {
+@XmlType(name = "AddNumbersException", propOrder = {
         "message"
         })
 public class AddNumbersException {

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddNumbersException_Exception.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddNumbersException_Exception.java?rev=642765&r1=642764&r2=642765&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddNumbersException_Exception.java (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddNumbersException_Exception.java Sun Mar 30 09:08:10 2008
@@ -20,6 +20,7 @@
 
 import javax.xml.ws.WebFault;
 
+
 @WebFault(name = "AddNumbersException", targetNamespace = "http://calculator.jaxws.axis2.apache.org")
 public class AddNumbersException_Exception
         extends Exception {
@@ -49,7 +50,7 @@
     }
 
     /**
-     * @return returns fault bean: org.apache.axis2.jaxws.calculator.AddNumbersException
+     * @return returns fault bean: org.apache.axis2.jaxws.calculator.client.AddNumbersException
      */
     public AddNumbersException getFaultInfo() {
         return faultInfo;

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddResponse.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddResponse.java?rev=642765&r1=642764&r2=642765&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddResponse.java (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddResponse.java Sun Mar 30 09:08:10 2008
@@ -42,7 +42,7 @@
  * </pre>
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "addResponse", namespace = "http://calculator.jaxws.axis2.apache.org", propOrder = {
+@XmlType(name = "addResponse", propOrder = {
         "_return"
         })
 public class AddResponse {

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/Calculator.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/Calculator.java?rev=642765&r1=642764&r2=642765&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/Calculator.java (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/Calculator.java Sun Mar 30 09:08:10 2008
@@ -27,7 +27,11 @@
 import javax.xml.ws.ResponseWrapper;
 import javax.xml.ws.wsaddressing.W3CEndpointReference;
 
+
 @WebService(name = "Calculator", targetNamespace = "http://calculator.jaxws.axis2.apache.org")
+@XmlSeeAlso({
+        ObjectFactory.class
+        })
 public interface Calculator {
 
 
@@ -36,8 +40,8 @@
      */
     @WebMethod
     @WebResult(targetNamespace = "http://calculator.jaxws.axis2.apache.org")
-    @RequestWrapper(localName = "getTicket", targetNamespace = "http://calculator.jaxws.axis2.apache.org", className = "org.apache.axis2.jaxws.calculator.GetTicket")
-    @ResponseWrapper(localName = "getTicketResponse", targetNamespace = "http://calculator.jaxws.axis2.apache.org", className = "org.apache.axis2.jaxws.calculator.GetTicketResponse")
+    @RequestWrapper(localName = "getTicket", targetNamespace = "http://calculator.jaxws.axis2.apache.org", className = "org.apache.axis2.jaxws.calculator.client.GetTicket")
+    @ResponseWrapper(localName = "getTicketResponse", targetNamespace = "http://calculator.jaxws.axis2.apache.org", className = "org.apache.axis2.jaxws.calculator.client.GetTicketResponse")
     public W3CEndpointReference getTicket();
 
     /**
@@ -48,8 +52,8 @@
      */
     @WebMethod
     @WebResult(targetNamespace = "http://calculator.jaxws.axis2.apache.org")
-    @RequestWrapper(localName = "add", targetNamespace = "http://calculator.jaxws.axis2.apache.org", className = "org.apache.axis2.jaxws.calculator.Add")
-    @ResponseWrapper(localName = "addResponse", targetNamespace = "http://calculator.jaxws.axis2.apache.org", className = "org.apache.axis2.jaxws.calculator.AddResponse")
+    @RequestWrapper(localName = "add", targetNamespace = "http://calculator.jaxws.axis2.apache.org", className = "org.apache.axis2.jaxws.calculator.client.Add")
+    @ResponseWrapper(localName = "addResponse", targetNamespace = "http://calculator.jaxws.axis2.apache.org", className = "org.apache.axis2.jaxws.calculator.client.AddResponse")
     public int add(
             @WebParam(name = "value1", targetNamespace = "http://calculator.jaxws.axis2.apache.org")
             int value1,

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/CalculatorService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/CalculatorService.java?rev=642765&r1=642764&r2=642765&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/CalculatorService.java (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/CalculatorService.java Sun Mar 30 09:08:10 2008
@@ -25,12 +25,15 @@
 import javax.xml.ws.WebServiceFeature;
 import java.net.MalformedURLException;
 import java.net.URL;
+import java.util.logging.Logger;
 
-@WebServiceClient(name = "CalculatorService", targetNamespace = "http://calculator.jaxws.axis2.apache.org", wsdlLocation = "http://localhost:8080/axis2/services/CalculatorService.CalculatorServicePort?wsdl")
+
+@WebServiceClient(name = "CalculatorService", targetNamespace = "http://calculator.jaxws.axis2.apache.org", wsdlLocation = "file:/C:/Apache/axis2/modules/samples/jaxws-calculator/resources/META-INF/CalculatorService.wsdl")
 public class CalculatorService
         extends Service {
 
     private final static URL CALCULATORSERVICE_WSDL_LOCATION;
+    private final static Logger logger = Logger.getLogger(org.apache.axis2.jaxws.calculator.client.CalculatorService.class.getName());
 
     static {
         URL url = null;
@@ -55,7 +58,7 @@
      */
     @WebEndpoint(name = "CalculatorServicePort")
     public Calculator getCalculatorServicePort() {
-        return (Calculator) super.getPort(new QName("http://calculator.jaxws.axis2.apache.org", "CalculatorServicePort"), Calculator.class);
+        return super.getPort(new QName("http://calculator.jaxws.axis2.apache.org", "CalculatorServicePort"), Calculator.class);
     }
 
     /**
@@ -64,7 +67,7 @@
      */
     @WebEndpoint(name = "CalculatorServicePort")
     public Calculator getCalculatorServicePort(WebServiceFeature... features) {
-        return (Calculator) super.getPort(new QName("http://calculator.jaxws.axis2.apache.org", "CalculatorServicePort"), Calculator.class, features);
+        return super.getPort(new QName("http://calculator.jaxws.axis2.apache.org", "CalculatorServicePort"), Calculator.class, features);
     }
 
 }

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/GetTicket.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/GetTicket.java?rev=642765&r1=642764&r2=642765&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/GetTicket.java (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/GetTicket.java Sun Mar 30 09:08:10 2008
@@ -40,7 +40,7 @@
  * </pre>
  */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "getTicket", namespace = "http://calculator.jaxws.axis2.apache.org")
+@XmlType(name = "getTicket")
 public class GetTicket {
 
 

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/GetTicketResponse.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/GetTicketResponse.java?rev=642765&r1=642764&r2=642765&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/GetTicketResponse.java (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/GetTicketResponse.java Sun Mar 30 09:08:10 2008
@@ -16,15 +16,34 @@
 * specific language governing permissions and limitations
 * under the License.
 */
-
 package org.apache.axis2.jaxws.calculator.client;
 
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
 import javax.xml.ws.wsaddressing.W3CEndpointReference;
 
-import javax.xml.bind.annotation.*;
 
+/**
+ * <p>Java class for getTicketResponse complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * &lt;complexType name="getTicketResponse">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="return" type="{http://www.w3.org/2005/08/addressing}EndpointReferenceType" minOccurs="0"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ */
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "getTicketResponse", namespace = "http://calculator.jaxws.axis2.apache.org", propOrder = {
+@XmlType(name = "getTicketResponse", propOrder = {
         "_return"
         })
 public class GetTicketResponse {

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/ObjectFactory.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/ObjectFactory.java?rev=642765&r1=642764&r2=642765&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/ObjectFactory.java (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/ObjectFactory.java Sun Mar 30 09:08:10 2008
@@ -16,9 +16,8 @@
 * specific language governing permissions and limitations
 * under the License.
 */
-package org.apache.axis2.jaxws.calculator.client;
 
-import org.apache.axis2.jaxws.calculator.client.GetTicketResponse;
+package org.apache.axis2.jaxws.calculator.client;
 
 import javax.xml.bind.JAXBElement;
 import javax.xml.bind.annotation.XmlElementDecl;
@@ -29,7 +28,7 @@
 /**
  * This object contains factory methods for each
  * Java content interface and Java element interface
- * generated in the org.apache.axis2.jaxws.calculator package.
+ * generated in the org.apache.axis2.jaxws.calculator.client package.
  * <p>An ObjectFactory allows you to programatically
  * construct new instances of the Java representation
  * for XML content. The Java representation of XML
@@ -42,23 +41,23 @@
 @XmlRegistry
 public class ObjectFactory {
 
-    private final static QName _AddNumbersException_QNAME = new QName("http://calculator.jaxws.axis2.apache.org", "AddNumbersException");
+    private final static QName _GetTicket_QNAME = new QName("http://calculator.jaxws.axis2.apache.org", "getTicket");
     private final static QName _Add_QNAME = new QName("http://calculator.jaxws.axis2.apache.org", "add");
     private final static QName _AddResponse_QNAME = new QName("http://calculator.jaxws.axis2.apache.org", "addResponse");
-    private final static QName _GetTicket_QNAME = new QName("http://calculator.jaxws.axis2.apache.org", "getTicket");
     private final static QName _GetTicketResponse_QNAME = new QName("http://calculator.jaxws.axis2.apache.org", "getTicketResponse");
+    private final static QName _AddNumbersException_QNAME = new QName("http://calculator.jaxws.axis2.apache.org", "AddNumbersException");
 
     /**
-     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.apache.axis2.jaxws.calculator
+     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.apache.axis2.jaxws.calculator.client
      */
     public ObjectFactory() {
     }
 
     /**
-     * Create an instance of {@link GetTicketResponse }
+     * Create an instance of {@link Add }
      */
-    public GetTicketResponse createGetTicketResponse() {
-        return new GetTicketResponse();
+    public Add createAdd() {
+        return new Add();
     }
 
     /**
@@ -69,32 +68,32 @@
     }
 
     /**
-     * Create an instance of {@link GetTicket }
+     * Create an instance of {@link AddNumbersException }
      */
-    public GetTicket createGetTicket() {
-        return new GetTicket();
+    public AddNumbersException createAddNumbersException() {
+        return new AddNumbersException();
     }
 
     /**
-     * Create an instance of {@link AddNumbersException }
+     * Create an instance of {@link GetTicket }
      */
-    public AddNumbersException createAddNumbersException() {
-        return new AddNumbersException();
+    public GetTicket createGetTicket() {
+        return new GetTicket();
     }
 
     /**
-     * Create an instance of {@link Add }
+     * Create an instance of {@link GetTicketResponse }
      */
-    public Add createAdd() {
-        return new Add();
+    public GetTicketResponse createGetTicketResponse() {
+        return new GetTicketResponse();
     }
 
     /**
-     * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersException }{@code >}}
+     * Create an instance of {@link JAXBElement }{@code <}{@link GetTicket }{@code >}}
      */
-    @XmlElementDecl(namespace = "http://calculator.jaxws.axis2.apache.org", name = "AddNumbersException")
-    public JAXBElement<AddNumbersException> createAddNumbersException(AddNumbersException value) {
-        return new JAXBElement<AddNumbersException>(_AddNumbersException_QNAME, AddNumbersException.class, null, value);
+    @XmlElementDecl(namespace = "http://calculator.jaxws.axis2.apache.org", name = "getTicket")
+    public JAXBElement<GetTicket> createGetTicket(GetTicket value) {
+        return new JAXBElement<GetTicket>(_GetTicket_QNAME, GetTicket.class, null, value);
     }
 
     /**
@@ -114,19 +113,19 @@
     }
 
     /**
-     * Create an instance of {@link JAXBElement }{@code <}{@link GetTicket }{@code >}}
-     */
-    @XmlElementDecl(namespace = "http://calculator.jaxws.axis2.apache.org", name = "getTicket")
-    public JAXBElement<GetTicket> createGetTicket(GetTicket value) {
-        return new JAXBElement<GetTicket>(_GetTicket_QNAME, GetTicket.class, null, value);
-    }
-
-    /**
      * Create an instance of {@link JAXBElement }{@code <}{@link GetTicketResponse }{@code >}}
      */
     @XmlElementDecl(namespace = "http://calculator.jaxws.axis2.apache.org", name = "getTicketResponse")
     public JAXBElement<GetTicketResponse> createGetTicketResponse(GetTicketResponse value) {
         return new JAXBElement<GetTicketResponse>(_GetTicketResponse_QNAME, GetTicketResponse.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersException }{@code >}}
+     */
+    @XmlElementDecl(namespace = "http://calculator.jaxws.axis2.apache.org", name = "AddNumbersException")
+    public JAXBElement<AddNumbersException> createAddNumbersException(AddNumbersException value) {
+        return new JAXBElement<AddNumbersException>(_AddNumbersException_QNAME, AddNumbersException.class, null, value);
     }
 
 }

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/package-info.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/package-info.java?rev=642765&r1=642764&r2=642765&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/package-info.java (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/package-info.java Sun Mar 30 09:08:10 2008
@@ -16,4 +16,5 @@
 * specific language governing permissions and limitations
 * under the License.
 */
+
 @javax.xml.bind.annotation.XmlSchema(namespace = "http://calculator.jaxws.axis2.apache.org", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package org.apache.axis2.jaxws.calculator.client;

Modified: webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/package-info.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/package-info.java?rev=642765&r1=642764&r2=642765&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/package-info.java (original)
+++ webservices/axis2/trunk/java/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/package-info.java Sun Mar 30 09:08:10 2008
@@ -16,4 +16,5 @@
 * specific language governing permissions and limitations
 * under the License.
 */
-@javax.xml.bind.annotation.XmlSchema(namespace = "http://calculator.jaxws.axis2.apache.org") package org.apache.axis2.jaxws.calculator;
+
+@javax.xml.bind.annotation.XmlSchema(namespace = "http://calculator.jaxws.axis2.apache.org", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package org.apache.axis2.jaxws.calculator;



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