You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2011/07/11 23:10:56 UTC
svn commit: r1145356 [13/28] - in /incubator/airavata/trunk/ws-messaging: ./
distribution/ distribution/axis2_releases/
distribution/axis2_releases/axis2-1.6.0/
distribution/axis2_releases/axis2-1.6.0/bin/
distribution/axis2_releases/axis2-1.6.0/conf/ ...
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorServer.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorServer.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorServer.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorServer.java Mon Jul 11 21:10:36 2011
@@ -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);
+ }
+}
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorService.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorService.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorService.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorService.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,100 @@
+/*
+* 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 org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
+import javax.annotation.Resource;
+import javax.jws.WebService;
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.handler.MessageContext;
+import javax.xml.ws.soap.Addressing;
+import javax.xml.ws.wsaddressing.W3CEndpointReference;
+import java.util.List;
+
+@Addressing
+@WebService(endpointInterface = "org.apache.axis2.jaxws.calculator.Calculator",
+ serviceName = "CalculatorService",
+ portName = "CalculatorServicePort",
+ targetNamespace = "http://calculator.jaxws.axis2.apache.org",
+ wsdlLocation = "META-INF/CalculatorService.wsdl")
+public class CalculatorService implements Calculator {
+
+ @Resource
+ private WebServiceContext context;
+
+ /*
+ * (non-Javadoc)
+ * @see org.apache.axis2.jaxws.calculator.Calculator#getTicket()
+ */
+ public W3CEndpointReference getTicket() {
+ DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
+ factory.setNamespaceAware(true);
+ Element element = null;
+
+ try {
+ DocumentBuilder builder = factory.newDocumentBuilder();
+ Document document = builder.newDocument();
+
+ element =
+ document.createElementNS("http://calculator.jaxws.axis2.apache.org", "TicketId");
+ element.appendChild(document.createTextNode("123456789"));
+ } catch (ParserConfigurationException pce) {
+ // Parser with specified options can't be built
+ pce.printStackTrace();
+ throw new WebServiceException("Unable to create ticket.", pce);
+ }
+
+ return (W3CEndpointReference) getContext().getEndpointReference(element);
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.apache.axis2.jaxws.calculator.Calculator#add(int, int)
+ */
+ public int add(int value1, int value2) throws AddNumbersException_Exception {
+ List list = (List) getContext().getMessageContext().get(MessageContext.REFERENCE_PARAMETERS);
+
+ 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())) {
+ AddNumbersException faultInfo = new AddNumbersException();
+ faultInfo.setMessage("Invalid ticket: " + element.getTextContent());
+ throw new AddNumbersException_Exception(faultInfo.getMessage(), faultInfo);
+ }
+
+ System.out.println("value1: " + value1 + " value2: " + value2);
+ return value1 + value2;
+ }
+
+ //Return the WebServiceContext
+ private WebServiceContext getContext() {
+ return context;
+ }
+}
\ No newline at end of file
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/GetTicket.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/GetTicket.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/GetTicket.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/GetTicket.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,47 @@
+/*
+* 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.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for getTicket complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType name="getTicket">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "getTicket")
+public class GetTicket {
+
+
+}
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/GetTicketResponse.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/GetTicketResponse.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/GetTicketResponse.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/GetTicketResponse.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,74 @@
+/*
+* 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.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;
+
+
+/**
+ * <p>Java class for getTicketResponse complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType name="getTicketResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2005/08/addressing}EndpointReferenceType" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "getTicketResponse", propOrder = {
+ "_return"
+ })
+public class GetTicketResponse {
+
+ @XmlElement(name = "return")
+ protected W3CEndpointReference _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ * @return possible object is
+ * {@link W3CEndpointReference }
+ */
+ public W3CEndpointReference getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ * @param value allowed object is
+ * {@link W3CEndpointReference }
+ */
+ public void setReturn(W3CEndpointReference value) {
+ this._return = value;
+ }
+
+}
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/ObjectFactory.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/ObjectFactory.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/ObjectFactory.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/ObjectFactory.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,131 @@
+/*
+* 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.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.client package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ */
+@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.client
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link Add }
+ */
+ public Add createAdd() {
+ return new Add();
+ }
+
+ /**
+ * Create an instance of {@link AddResponse }
+ */
+ public AddResponse createAddResponse() {
+ 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);
+ }
+
+}
+
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/Add.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/Add.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/Add.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/Add.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,82 @@
+/*
+* 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.client;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for add complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType name="add">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="value1" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="value2" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "add", propOrder = {
+ "value1",
+ "value2"
+ })
+public class Add {
+
+ protected int value1;
+ protected int value2;
+
+ /**
+ * Gets the value of the value1 property.
+ */
+ public int getValue1() {
+ return value1;
+ }
+
+ /**
+ * Sets the value of the value1 property.
+ */
+ public void setValue1(int value) {
+ this.value1 = value;
+ }
+
+ /**
+ * Gets the value of the value2 property.
+ */
+ public int getValue2() {
+ return value2;
+ }
+
+ /**
+ * Sets the value of the value2 property.
+ */
+ public void setValue2(int value) {
+ this.value2 = value;
+ }
+
+}
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddNumbersException.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddNumbersException.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddNumbersException.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddNumbersException.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,73 @@
+/*
+* 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.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;
+
+
+/**
+ * <p>Java class for AddNumbersException complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType name="AddNumbersException">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </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;
+ }
+
+ /**
+ * Sets the value of the message property.
+ *
+ * @param value allowed object is
+ * {@link String }
+ */
+ public void setMessage(String value) {
+ this.message = value;
+ }
+
+}
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddNumbersException_Exception.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddNumbersException_Exception.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddNumbersException_Exception.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddNumbersException_Exception.java Mon Jul 11 21:10:36 2011
@@ -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.client;
+
+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;
+ }
+
+}
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddResponse.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddResponse.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddResponse.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddResponse.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,67 @@
+/*
+* 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.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;
+
+
+/**
+ * <p>Java class for addResponse complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType name="addResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addResponse", propOrder = {
+ "_return"
+ })
+public class AddResponse {
+
+ @XmlElement(name = "return")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ */
+ public int getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ */
+ public void setReturn(int value) {
+ this._return = value;
+ }
+
+}
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddSEIClient.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddSEIClient.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddSEIClient.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/AddSEIClient.java Mon Jul 11 21:10:36 2011
@@ -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.client;
+
+import javax.xml.ws.soap.AddressingFeature;
+import javax.xml.ws.wsaddressing.W3CEndpointReference;
+
+public class AddSEIClient {
+
+ /**
+ * @param args
+ */
+ public static void main(String[] args) {
+ long start = System.currentTimeMillis();
+
+ try {
+ //Validate input
+ if (args.length != 2)
+ throw new IllegalArgumentException("Usage: java AddClient <integer 1> <integer 2>");
+
+ int value0 = Integer.parseInt(args[0]);
+ int value1 = Integer.parseInt(args[1]);
+
+ //Retrieve ticket
+ CalculatorService service = new CalculatorService();
+ Calculator port1 = service.getCalculatorServicePort();
+ W3CEndpointReference epr = port1.getTicket();
+
+ //Add numbers
+ Calculator port2 = epr.getPort(Calculator.class, new AddressingFeature());
+ int answer = port2.add(value0, value1);
+ System.out.println("The answer is: " + answer);
+ }
+ catch (Exception e) {
+ e.printStackTrace();
+ }
+ finally {
+ long end = System.currentTimeMillis();
+ long time = end - start;
+ System.out.println("Time: " + time + " ms.");
+ }
+ }
+}
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/Calculator.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/Calculator.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/Calculator.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/Calculator.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,65 @@
+/*
+* 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.client;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlSeeAlso;
+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({
+ ObjectFactory.class
+ })
+public interface Calculator {
+
+
+ /**
+ * @return returns javax.xml.ws.wsaddressing.W3CEndpointReference
+ */
+ @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.client.GetTicket")
+ @ResponseWrapper(localName = "getTicketResponse", targetNamespace = "http://calculator.jaxws.axis2.apache.org", className = "org.apache.axis2.jaxws.calculator.client.GetTicketResponse")
+ public W3CEndpointReference getTicket();
+
+ /**
+ * @param value1
+ * @param value2
+ * @return returns int
+ * @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.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,
+ @WebParam(name = "value2", targetNamespace = "http://calculator.jaxws.axis2.apache.org")
+ int value2)
+ throws AddNumbersException_Exception
+ ;
+
+}
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/CalculatorService.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/CalculatorService.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/CalculatorService.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/CalculatorService.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,73 @@
+/*
+* 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.client;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+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 = "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;
+ try {
+ url = new URL("http://localhost:8080/axis2/services/CalculatorService.CalculatorServicePort?wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ CALCULATORSERVICE_WSDL_LOCATION = url;
+ }
+
+ public CalculatorService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public CalculatorService() {
+ super(CALCULATORSERVICE_WSDL_LOCATION, new QName("http://calculator.jaxws.axis2.apache.org", "CalculatorService"));
+ }
+
+ /**
+ * @return returns Calculator
+ */
+ @WebEndpoint(name = "CalculatorServicePort")
+ public Calculator getCalculatorServicePort() {
+ return super.getPort(new QName("http://calculator.jaxws.axis2.apache.org", "CalculatorServicePort"), Calculator.class);
+ }
+
+ /**
+ * @param features A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
+ * @return returns Calculator
+ */
+ @WebEndpoint(name = "CalculatorServicePort")
+ public Calculator getCalculatorServicePort(WebServiceFeature... features) {
+ return super.getPort(new QName("http://calculator.jaxws.axis2.apache.org", "CalculatorServicePort"), Calculator.class, features);
+ }
+
+}
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/GetTicket.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/GetTicket.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/GetTicket.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/GetTicket.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,47 @@
+/*
+* 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.client;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for getTicket complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType name="getTicket">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "getTicket")
+public class GetTicket {
+
+
+}
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/GetTicketResponse.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/GetTicketResponse.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/GetTicketResponse.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/GetTicketResponse.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,74 @@
+/*
+* 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.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;
+
+
+/**
+ * <p>Java class for getTicketResponse complex type.
+ * <p/>
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * <p/>
+ * <pre>
+ * <complexType name="getTicketResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2005/08/addressing}EndpointReferenceType" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "getTicketResponse", propOrder = {
+ "_return"
+ })
+public class GetTicketResponse {
+
+ @XmlElement(name = "return")
+ protected W3CEndpointReference _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ * @return possible object is
+ * {@link W3CEndpointReference }
+ */
+ public W3CEndpointReference getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ * @param value allowed object is
+ * {@link W3CEndpointReference }
+ */
+ public void setReturn(W3CEndpointReference value) {
+ this._return = value;
+ }
+
+}
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/ObjectFactory.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/ObjectFactory.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/ObjectFactory.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/ObjectFactory.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,131 @@
+/*
+* 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.client;
+
+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.client package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ */
+@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.client
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link Add }
+ */
+ public Add createAdd() {
+ return new Add();
+ }
+
+ /**
+ * Create an instance of {@link AddResponse }
+ */
+ public AddResponse createAddResponse() {
+ 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);
+ }
+
+}
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/package-info.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/package-info.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/package-info.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/client/package-info.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,20 @@
+/*
+* 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.
+*/
+
+@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;
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/package-info.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/package-info.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/package-info.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/package-info.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,20 @@
+/*
+* 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.
+*/
+
+@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;
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-dynamic/README.txt
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-dynamic/README.txt?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-dynamic/README.txt (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-dynamic/README.txt Mon Jul 11 21:10:36 2011
@@ -0,0 +1 @@
+This sample will show how to create a dynamic client/service using JAX-WS.
\ No newline at end of file
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-dynamic/resources/wsdl/DynamicSample.wsdl
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-dynamic/resources/wsdl/DynamicSample.wsdl?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-dynamic/resources/wsdl/DynamicSample.wsdl (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-dynamic/resources/wsdl/DynamicSample.wsdl Mon Jul 11 21:10:36 2011
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:tns="http://axis2.apache.com/jaxws/sample/dynamic"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ name="EchoService"
+ targetNamespace="http://axis2.apache.com/jaxws/sample/dynamic">
+ <types>
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:tns="http://axis2.apache.com/jaxws/sample/dynamic"
+ targetNamespace="http://axis2.apache.com/jaxws/sample/dynamic" version="1.0">
+
+ <xs:element name="operation1" type="xsd:string"/>
+ <xs:element name="operation1Response" type="xsd:string"/>
+
+ <xs:element name="operation2" type="xsd:int"/>
+ <xs:element name="operation2Response" type="xsd:int"/>
+
+ <xs:element name="operation3" type="xsd:boolean"/>
+ <xs:element name="operation3Response" type="xsd:boolean"/>
+
+ </xs:schema>
+ </types>
+
+ <message name="operation1">
+ <part element="tns:operation1" name="parameters"/>
+ </message>
+
+ <message name="operation1Response">
+ <part element="tns:operation1Response" name="parameters"/>
+ </message>
+
+ <message name="operation2">
+ <part element="tns:operation2" name="parameters"/>
+ </message>
+
+ <message name="operation2Response">
+ <part element="tns:operation2Response" name="parameters"/>
+ </message>
+
+ <message name="operation3">
+ <part element="tns:operation3" name="parameters"/>
+ </message>
+
+ <message name="operation3Response">
+ <part element="tns:operation3Response" name="parameters"/>
+ </message>
+
+ <portType name="Generic">
+ <operation name="operation1">
+ <input message="tns:operation1"/>
+ <output message="tns:operation1Response"/>
+ </operation>
+ <operation name="operation2">
+ <input message="tns:operation2"/>
+ <output message="tns:operation2Response"/>
+ </operation>
+ <operation name="operation3">
+ <input message="tns:operation3"/>
+ <output message="tns:operation3Response"/>
+ </operation>
+ </portType>
+
+ <binding name="GenericBinding" type="tns:Generic">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="operation1">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ <operation name="operation2">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ <operation name="operation3">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ </binding>
+
+ <service name="GenericService">
+ <port binding="tns:GenericBinding" name="EchoPort">
+ <soap:address location="http://localhost:8080/services/GenericService"/>
+ </port>
+ </service>
+
+</definitions>
\ No newline at end of file
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-dynamic/src/org/apache/axis2/jaxws/sample/dynamic/DynamicServiceProvider.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-dynamic/src/org/apache/axis2/jaxws/sample/dynamic/DynamicServiceProvider.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-dynamic/src/org/apache/axis2/jaxws/sample/dynamic/DynamicServiceProvider.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-dynamic/src/org/apache/axis2/jaxws/sample/dynamic/DynamicServiceProvider.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,98 @@
+/*
+ * 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.sample.dynamic;
+
+import javax.annotation.Resource;
+import javax.xml.namespace.QName;
+import javax.xml.transform.Result;
+import javax.xml.transform.Source;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerConfigurationException;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.TransformerFactoryConfigurationError;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.ws.BindingType;
+import javax.xml.ws.Provider;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.WebServiceProvider;
+import javax.xml.ws.soap.SOAPBinding;
+import javax.xml.ws.handler.MessageContext;
+import javax.xml.ws.http.HTTPBinding;
+import java.io.ByteArrayInputStream;
+import java.io.InputStream;
+import java.io.StringWriter;
+
+@WebServiceProvider(serviceName="GenericService", wsdlLocation="WEB-INF/wsdl/DynamicSample.wsdl")
+@BindingType(SOAPBinding.SOAP11HTTP_BINDING)
+public class DynamicServiceProvider implements Provider<Source> {
+
+ @Resource(type=WebServiceContext.class)
+ public WebServiceContext context;
+
+ public Source invoke(Source source) {
+
+ //TestLogger.logger.debug(">> SourceProvider: Request received.\n");
+ if (source == null) {
+ return source;
+ }
+
+ if (context == null) {
+ //TestLogger.logger.debug("[DynamicServiceProvider] the WebServiceContext was null.");
+ throw new WebServiceException("A WebServiceException should have been injected.");
+ }
+
+ QName wsdlService = (QName) context.getMessageContext().get(MessageContext.WSDL_SERVICE);
+ QName wsdlOperation = (QName) context.getMessageContext().get(MessageContext.WSDL_OPERATION);
+
+ System.out.println("[DynamicServiceProvider] service name: " + wsdlService);
+ System.out.println("[DynamicServiceProvider] operation name: " + wsdlOperation);
+
+ //TestLogger.logger.debug("[DynamicServiceProvider] service name: " + wsdlService);
+ //TestLogger.logger.debug("[DynamicServiceProvider] operation name: " + wsdlOperation);
+
+ StringWriter writer = new StringWriter();
+ try {
+ Transformer t = TransformerFactory.newInstance().newTransformer();
+ Result result = new StreamResult(writer);
+ t.transform(source, result);
+ } catch (TransformerConfigurationException e) {
+ throw new WebServiceException(e);
+ } catch (TransformerFactoryConfigurationError e) {
+ throw new WebServiceException(e);
+ } catch (TransformerException e) {
+ throw new WebServiceException(e);
+ }
+
+ String text = writer.getBuffer().toString();
+ //TestLogger.logger.debug(">> Source Request on Server: \n" + text);
+
+ if (text != null && text.contains("throwWebServiceException")) {
+ throw new WebServiceException("provider");
+ }
+
+ ByteArrayInputStream stream = new ByteArrayInputStream(text.getBytes());
+ Source srcStream = new StreamSource((InputStream) stream);
+ return srcStream;
+ }
+
+}
+
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-interop/README.txt
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-interop/README.txt?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-interop/README.txt (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-interop/README.txt Mon Jul 11 21:10:36 2011
@@ -0,0 +1,23 @@
+Sample: JAX-WS top-down development
+===================================
+
+Introduction
+============
+This sample demonstrates top-down development (i.e. development starting with a WSDL document) of a service and client using the JAX-WS API. The sample is based on an interop scenario for base data types which may be found at http://mssoapinterop.org/ilab/ .
+
+Building the service from scratch
+=================================
+The service may be constructed from scratch by executing the wsimport tool (found in the Sun JAX-WS RI) on the BaseDataTypesDocLibB.wsdl file: 'wsimport -keep -verbose BaseDataTypesDocLibB.wsdl' (The -keep option tells the tool to keep the generated files and the -verbose option causes the tool to list what is generated.) After the files have been generated you will need to provide an implementation of the service (i.e. a class equivalent to TopDownSampleService.java).
+
+Deploying the service
+=====================
+The classes can be packaged into a jar and the jar can be dropped into the servicejars directory of a deployed axis2 server.
+
+Building the client from scratch
+================================
+The dynamic proxy client may be constructed from scratch by executing the wsimport tool (found in the Sun JAX-WS RI) on the BaseDataTypesDocLibB.wsdl file: 'wsimport -keep -verbose BaseDataTypesDocLibB.wsdl' (The -keep option tells the tool to keep the generated files and the -verbose option causes the tool to list what is generated.) After the files have been generated you will need to provide an implementation of the client (i.e. a class equivalent to TopDownSampleClient.java).
+
+
+Running the Client
+==================
+The client can be run via the axis2.sh or axis2.bat scripts (e.g. 'axis2.sh org.apache.axis2.jaxws.interop.InteropSampleClient'.) The endpoint URL is extracted at runtime from the WSDL, so you can either modify the soap:address to refer to Microsoft's endpoint at http://131.107.72.15/SoapWsdl_BaseDataTypes_XmlFormatter_Service_Indigo/BaseDataTypesDocLitB.svc or to a local endpoint such as http://localhost:8080/axis2/services/TopDownSampleServiceService.IBaseDataTypesDocLitBPort
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-interop/pom.xml
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-interop/pom.xml?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-interop/pom.xml (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/jaxws-interop/pom.xml Mon Jul 11 21:10:36 2011
@@ -0,0 +1,74 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.axis2.samples</groupId>
+ <artifactId>jaxws-interop</artifactId>
+ <packaging>jar</packaging>
+ <version>1.6.0</version>
+ <name>JAXWS Interop Sample</name>
+ <build>
+ <sourceDirectory>src</sourceDirectory>
+ <resources>
+ <resource>
+ <directory>resources</directory>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ <version>2.1</version>
+ <exclusions>
+ <exclusion>
+ <artifactId>jsr173</artifactId>
+ <groupId>javax.xml</groupId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-jaxws</artifactId>
+ <version>1.6.0</version>
+ </dependency>
+ </dependencies>
+ <repositories>
+ <repository>
+ <id>apache.snapshots</id>
+ <name>Apache Snapshot Repository</name>
+ <url>http://repository.apache.org/snapshots</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+ </repositories>
+</project>