You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sl...@apache.org on 2010/01/17 18:56:27 UTC

svn commit: r900170 - in /tuscany/sandbox/travelsample/launchers/payment-java: ./ src/ src/main/ src/main/java/ src/main/java/com/ src/main/java/com/tuscanyscatours/ src/main/java/com/tuscanyscatours/payment/ src/main/java/scatours/ src/main/java/scato...

Author: slaws
Date: Sun Jan 17 17:56:27 2010
New Revision: 900170

URL: http://svn.apache.org/viewvc?rev=900170&view=rev
Log:
A launcher for the payment java contribution. 

Added:
    tuscany/sandbox/travelsample/launchers/payment-java/
    tuscany/sandbox/travelsample/launchers/payment-java/build.xml   (with props)
    tuscany/sandbox/travelsample/launchers/payment-java/pom.xml   (with props)
    tuscany/sandbox/travelsample/launchers/payment-java/src/
    tuscany/sandbox/travelsample/launchers/payment-java/src/main/
    tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/
    tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/
    tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/
    tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/
    tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberResponseType.java   (with props)
    tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberType.java   (with props)
    tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/ObjectFactory.java   (with props)
    tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/Payment.java   (with props)
    tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/PaymentService.java   (with props)
    tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/package-info.java   (with props)
    tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/scatours/
    tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/scatours/payment/
    tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/scatours/payment/PaymentLauncher.java   (with props)
    tuscany/sandbox/travelsample/launchers/payment-java/src/test/

Added: tuscany/sandbox/travelsample/launchers/payment-java/build.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/payment-java/build.xml?rev=900170&view=auto
==============================================================================
--- tuscany/sandbox/travelsample/launchers/payment-java/build.xml (added)
+++ tuscany/sandbox/travelsample/launchers/payment-java/build.xml Sun Jan 17 17:56:27 2010
@@ -0,0 +1,35 @@
+<!--
+ * 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 name="scatours-launcher-payment-java" default="compile">
+    <import file="../../antdefs.xml"/>
+    <path id="compile-path">
+        <pathelement path="../../util/launcher-common/target/scatours-util-launcher-common.jar"/>
+    </path>
+
+    <target name="run">
+        <java classname="scatours.PaymentLauncher" fork="true">
+            <classpath>
+                <pathelement location="target/${ant.project.name}.jar"/>
+                <path refid="compile-path"/>
+                <pathelement location="${env.TUSCANY_HOME}/lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    </target>
+</project>

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/build.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/build.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: tuscany/sandbox/travelsample/launchers/payment-java/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/payment-java/pom.xml?rev=900170&view=auto
==============================================================================
--- tuscany/sandbox/travelsample/launchers/payment-java/pom.xml (added)
+++ tuscany/sandbox/travelsample/launchers/payment-java/pom.xml Sun Jan 17 17:56:27 2010
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * Licensed to the Apache Software Foundation (ASF) under one
+    * or more contributor license agreements.  See the NOTICE file
+    * distributed with this work for additional information
+    * regarding copyright ownership.  The ASF licenses this file
+    * to you under the Apache License, Version 2.0 (the
+    * "License"); you may not use this file except in compliance
+    * with the License.  You may obtain a copy of the License at
+    * 
+    *   http://www.apache.org/licenses/LICENSE-2.0
+    * 
+    * Unless required by applicable law or agreed to in writing,
+    * software distributed under the License is distributed on an
+    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    * KIND, either express or implied.  See the License for the
+    * specific language governing permissions and limitations
+    * under the License.    
+-->
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>scatours</artifactId>
+        <version>1.0-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent><version>1.0-SNAPSHOT</version>
+    <artifactId>scatours-launcher-payment-java</artifactId>
+    <name>Apache Tuscany SCA Tours Payment Java Launcher</name>
+
+    <dependencies>
+    
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>scatours-util-launcher-common</artifactId>
+            <version>${pom.version}</version>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-node-api</artifactId>
+            <version>${tuscany.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-node-impl</artifactId>
+            <version>${tuscany.version}</version>
+            <scope>runtime</scope>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-implementation-java-runtime</artifactId>
+            <version>${tuscany.version}</version>
+            <scope>runtime</scope>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-binding-ws-axis2</artifactId>
+            <version>${tuscany.version}</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-host-jetty</artifactId>
+            <version>${tuscany.version}</version>
+            <scope>runtime</scope>
+        </dependency>        
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.5</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+    
+    <build>
+       <finalName>${artifactId}</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <version>2.2</version>
+                <configuration>
+                    <archive>
+                        <manifestEntries>
+                            <Class-Path>../util/scatours-util-launcher-common.jar</Class-Path>
+                        </manifestEntries>
+                        <manifest>
+                            <addClasspath>true</addClasspath>
+                            <classpathPrefix>../lib/</classpathPrefix>
+                            <mainClass>scatours.PaymentLauncher</mainClass>
+                        </manifest>
+                    </archive>
+                </configuration>
+            </plugin>
+        </plugins>              
+    </build>
+</project>

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberResponseType.java
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberResponseType.java?rev=900170&view=auto
==============================================================================
--- tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberResponseType.java (added)
+++ tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberResponseType.java Sun Jan 17 17:56:27 2010
@@ -0,0 +1,62 @@
+
+package com.tuscanyscatours.payment;
+
+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 MakePaymentMemberResponseType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="MakePaymentMemberResponseType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="Status" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "MakePaymentMemberResponseType", propOrder = {
+    "status"
+})
+public class MakePaymentMemberResponseType {
+
+    @XmlElement(name = "Status", required = true)
+    protected String status;
+
+    /**
+     * Gets the value of the status property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getStatus() {
+        return status;
+    }
+
+    /**
+     * Sets the value of the status property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setStatus(String value) {
+        this.status = value;
+    }
+
+}

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberResponseType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberResponseType.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberType.java
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberType.java?rev=900170&view=auto
==============================================================================
--- tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberType.java (added)
+++ tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberType.java Sun Jan 17 17:56:27 2010
@@ -0,0 +1,82 @@
+
+package com.tuscanyscatours.payment;
+
+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 MakePaymentMemberType complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="MakePaymentMemberType">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="CustomerId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         &lt;element name="Amount" type="{http://www.w3.org/2001/XMLSchema}float"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "MakePaymentMemberType", propOrder = {
+    "customerId",
+    "amount"
+})
+public class MakePaymentMemberType {
+
+    @XmlElement(name = "CustomerId", required = true)
+    protected String customerId;
+    @XmlElement(name = "Amount")
+    protected float amount;
+
+    /**
+     * Gets the value of the customerId property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getCustomerId() {
+        return customerId;
+    }
+
+    /**
+     * Sets the value of the customerId property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setCustomerId(String value) {
+        this.customerId = value;
+    }
+
+    /**
+     * Gets the value of the amount property.
+     * 
+     */
+    public float getAmount() {
+        return amount;
+    }
+
+    /**
+     * Sets the value of the amount property.
+     * 
+     */
+    public void setAmount(float value) {
+        this.amount = value;
+    }
+
+}

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberType.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/ObjectFactory.java
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/ObjectFactory.java?rev=900170&view=auto
==============================================================================
--- tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/ObjectFactory.java (added)
+++ tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/ObjectFactory.java Sun Jan 17 17:56:27 2010
@@ -0,0 +1,71 @@
+
+package com.tuscanyscatours.payment;
+
+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 com.tuscanyscatours.payment 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 _MakePaymentMember_QNAME = new QName("http://www.tuscanyscatours.com/Payment/", "makePaymentMember");
+    private final static QName _MakePaymentMemberResponse_QNAME = new QName("http://www.tuscanyscatours.com/Payment/", "makePaymentMemberResponse");
+
+    /**
+     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.tuscanyscatours.payment
+     * 
+     */
+    public ObjectFactory() {
+    }
+
+    /**
+     * Create an instance of {@link MakePaymentMemberResponseType }
+     * 
+     */
+    public MakePaymentMemberResponseType createMakePaymentMemberResponseType() {
+        return new MakePaymentMemberResponseType();
+    }
+
+    /**
+     * Create an instance of {@link MakePaymentMemberType }
+     * 
+     */
+    public MakePaymentMemberType createMakePaymentMemberType() {
+        return new MakePaymentMemberType();
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link MakePaymentMemberType }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "http://www.tuscanyscatours.com/Payment/", name = "makePaymentMember")
+    public JAXBElement<MakePaymentMemberType> createMakePaymentMember(MakePaymentMemberType value) {
+        return new JAXBElement<MakePaymentMemberType>(_MakePaymentMember_QNAME, MakePaymentMemberType.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link MakePaymentMemberResponseType }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "http://www.tuscanyscatours.com/Payment/", name = "makePaymentMemberResponse")
+    public JAXBElement<MakePaymentMemberResponseType> createMakePaymentMemberResponse(MakePaymentMemberResponseType value) {
+        return new JAXBElement<MakePaymentMemberResponseType>(_MakePaymentMemberResponse_QNAME, MakePaymentMemberResponseType.class, null, value);
+    }
+
+}

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/ObjectFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/ObjectFactory.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/Payment.java
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/Payment.java?rev=900170&view=auto
==============================================================================
--- tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/Payment.java (added)
+++ tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/Payment.java Sun Jan 17 17:56:27 2010
@@ -0,0 +1,43 @@
+
+package com.tuscanyscatours.payment;
+
+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;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.7-b01-
+ * Generated source version: 2.1
+ * 
+ */
+@WebService(name = "Payment", targetNamespace = "http://www.tuscanyscatours.com/Payment/")
+@XmlSeeAlso({
+    ObjectFactory.class
+})
+public interface Payment {
+
+
+    /**
+     * 
+     * @param amount
+     * @param customerId
+     * @return
+     *     returns java.lang.String
+     */
+    @WebMethod(action = "http://www.tuscanyscatours.com/Payment/makePayment")
+    @WebResult(name = "Status", targetNamespace = "")
+    @RequestWrapper(localName = "makePaymentMember", targetNamespace = "http://www.tuscanyscatours.com/Payment/", className = "com.tuscanyscatours.payment.MakePaymentMemberType")
+    @ResponseWrapper(localName = "makePaymentMemberResponse", targetNamespace = "http://www.tuscanyscatours.com/Payment/", className = "com.tuscanyscatours.payment.MakePaymentMemberResponseType")
+    public String makePaymentMember(
+        @WebParam(name = "CustomerId", targetNamespace = "")
+        String customerId,
+        @WebParam(name = "Amount", targetNamespace = "")
+        float amount);
+
+}

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/Payment.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/Payment.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/PaymentService.java
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/PaymentService.java?rev=900170&view=auto
==============================================================================
--- tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/PaymentService.java (added)
+++ tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/PaymentService.java Sun Jan 17 17:56:27 2010
@@ -0,0 +1,71 @@
+
+package com.tuscanyscatours.payment;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.logging.Logger;
+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;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.7-b01-
+ * Generated source version: 2.1
+ * 
+ */
+@WebServiceClient(name = "PaymentService", targetNamespace = "http://www.tuscanyscatours.com/Payment/", wsdlLocation = "file:/C:/simon/tuscany/travelsample/contributions/payment-java/src/main/resources/Payment.wsdl")
+public class PaymentService
+    extends Service
+{
+
+    private final static URL PAYMENTSERVICE_WSDL_LOCATION;
+    private final static Logger logger = Logger.getLogger(com.tuscanyscatours.payment.PaymentService.class.getName());
+
+    static {
+        URL url = null;
+        try {
+            URL baseUrl;
+            baseUrl = com.tuscanyscatours.payment.PaymentService.class.getResource(".");
+            url = new URL(baseUrl, "file:/C:/simon/tuscany/travelsample/contributions/payment-java/src/main/resources/Payment.wsdl");
+        } catch (MalformedURLException e) {
+            logger.warning("Failed to create URL for the wsdl Location: 'file:/C:/simon/tuscany/travelsample/contributions/payment-java/src/main/resources/Payment.wsdl', retrying as a local file");
+            logger.warning(e.getMessage());
+        }
+        PAYMENTSERVICE_WSDL_LOCATION = url;
+    }
+
+    public PaymentService(URL wsdlLocation, QName serviceName) {
+        super(wsdlLocation, serviceName);
+    }
+
+    public PaymentService() {
+        super(PAYMENTSERVICE_WSDL_LOCATION, new QName("http://www.tuscanyscatours.com/Payment/", "PaymentService"));
+    }
+
+    /**
+     * 
+     * @return
+     *     returns Payment
+     */
+    @WebEndpoint(name = "PaymentPort")
+    public Payment getPaymentPort() {
+        return super.getPort(new QName("http://www.tuscanyscatours.com/Payment/", "PaymentPort"), Payment.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 Payment
+     */
+    @WebEndpoint(name = "PaymentPort")
+    public Payment getPaymentPort(WebServiceFeature... features) {
+        return super.getPort(new QName("http://www.tuscanyscatours.com/Payment/", "PaymentPort"), Payment.class, features);
+    }
+
+}

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/PaymentService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/PaymentService.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/package-info.java
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/package-info.java?rev=900170&view=auto
==============================================================================
--- tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/package-info.java (added)
+++ tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/package-info.java Sun Jan 17 17:56:27 2010
@@ -0,0 +1,2 @@
+@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.tuscanyscatours.com/Payment/")
+package com.tuscanyscatours.payment;

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/package-info.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/package-info.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/scatours/payment/PaymentLauncher.java
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/scatours/payment/PaymentLauncher.java?rev=900170&view=auto
==============================================================================
--- tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/scatours/payment/PaymentLauncher.java (added)
+++ tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/scatours/payment/PaymentLauncher.java Sun Jan 17 17:56:27 2010
@@ -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 scatours.payment;
+
+import static scatours.launcher.LauncherUtil.locate;
+
+import org.apache.tuscany.sca.node.SCAClient;
+import org.apache.tuscany.sca.node.SCANode;
+import org.apache.tuscany.sca.node.SCANodeFactory;
+
+import com.tuscanyscatours.payment.Payment;
+
+public class PaymentLauncher {
+
+    public static void main(String[] args) throws Exception {
+        SCANode node = SCANodeFactory.newInstance().createSCANode(null, 
+        		                                                  locate("payment-java"),
+        		                                                  locate("creditcard-payment-jaxb"));
+        node.start();
+        
+        SCAClient client = (SCAClient)node;
+        Payment payment = client.getService(Payment.class, "Payment");
+
+        System.out.println("Payment Java test");
+        System.out.println("\nSuccessful Payment - Status = \n\n" + payment.makePaymentMember("c-0", 100.00f));
+        System.out.println("\n\nFailed Payment - Status = \n\n" + payment.makePaymentMember("c-1", 100.00f));
+        
+        node.stop();
+    }
+}

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/scatours/payment/PaymentLauncher.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/sandbox/travelsample/launchers/payment-java/src/main/java/scatours/payment/PaymentLauncher.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date