summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/tutorials
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-03-30 12:53:32 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-03-30 12:53:32 +0000
commitf1f5a5d02c2f7beb16b27d6bd37c8cd670f788f9 (patch)
treefa3222b356cb2fe82a17862f8a30d24436eb3a64 /sca-java-1.x/trunk/tutorials
parentbbe39bc905f18a9ec0b540dcd91736a847416ef2 (diff)
Remove services/creditcard-payment-jaxws from the travel sample (TUSCANY-3415)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@929121 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/trunk/tutorials')
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/distribution/bundle/pom.xml5
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/services/build.xml1
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/build.xml53
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/pom.xml70
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardService.java34
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardServiceBootstrap.java31
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardServiceImpl.java34
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/services/pom.xml1
8 files changed, 0 insertions, 229 deletions
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/distribution/bundle/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/distribution/bundle/pom.xml
index 94577e92b5..d72131d247 100644
--- a/sca-java-1.x/trunk/tutorials/travelsample/distribution/bundle/pom.xml
+++ b/sca-java-1.x/trunk/tutorials/travelsample/distribution/bundle/pom.xml
@@ -530,11 +530,6 @@
</dependency>
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
- <artifactId>scatours-service-creditcard-payment-jaxws</artifactId>
- <version>${pom.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
<artifactId>scatours-service-smsgateway-corba</artifactId>
<version>${pom.version}</version>
</dependency>
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/services/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/services/build.xml
index 21b282707c..326563e763 100644
--- a/sca-java-1.x/trunk/tutorials/travelsample/services/build.xml
+++ b/sca-java-1.x/trunk/tutorials/travelsample/services/build.xml
@@ -38,7 +38,6 @@
</target>
<target name="allsubdirs">
- <ant dir="creditcard-payment-jaxws" target="${target}"/>
<ant dir="smsgateway-corba" target="${target}"/>
<ant dir="smsgateway-ejb" target="${target}"/>
<ant dir="smsgateway-jaxws" target="${target}"/>
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/build.xml
deleted file mode 100644
index 266dbec28c..0000000000
--- a/sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/build.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-<!--
- * 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-service-creditcard-payment-jaxws" default="compile">
- <import file="../../antdefs.xml"/>
-
- <!-- The "run" target starts a JAX-WS service endpoint for a simple
- credit card payment service. This endpoint does not appear to be
- used currently anywhere else in the travel application. -->
- <target name="run" depends="is-jdk6, jaxws-jdk6, jaxws-jdk5">
- <java classname="scatours.creditcard.CreditCardServiceBootstrap" fork="true">
- <classpath>
- <pathelement location="target/${ant.project.name}.jar"/>
- <path refid="jaxws-path"/>
- </classpath>
- </java>
- </target>
-
- <!-- check to see if we are running on JDK 6 -->
- <target name="is-jdk6">
- <condition property="jdk6">
- <available classname="javax.xml.ws.Endpoint"/>
- </condition>
- </target>
-
- <!-- JDK 6 contains JAX-WS so we don't need it on the classpath -->
- <target name="jaxws-jdk6" if="jdk6">
- <path id="jaxws-path"/>
- </target>
-
- <!-- on JDK 5 we need to add the JAX-WS runtime to the classpath -->
- <target name="jaxws-jdk5" unless="jdk6">
- <path id="jaxws-path">
- <fileset dir="${env.JAXWS_HOME}/lib"/>
- </path>
- </target>
-</project>
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/pom.xml
deleted file mode 100644
index 958292698e..0000000000
--- a/sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/pom.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-<?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-service-creditcard-payment-jaxws</artifactId>
- <name>Apache Tuscany SCA Tours Credit Card Payment JAX-WS Service</name>
-
- <dependencies>
- <dependency>
- <groupId>javax.xml.ws</groupId>
- <artifactId>jaxws-api</artifactId>
- <version>2.1</version>
- <exclusions>
- <exclusion>
- <groupId>javax.xml.soap</groupId>
- <artifactId>saaj-api</artifactId>
- </exclusion>
- </exclusions>
- </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-jaxws-runtime.jar</Class-Path>
- <Main-Class>scatours.creditcard.CreditCardServiceBootstrap</Main-Class>
- </manifestEntries>
- </archive>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardService.java b/sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardService.java
deleted file mode 100644
index a0f2912f7b..0000000000
--- a/sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardService.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * 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.creditcard;
-
-import javax.jws.WebMethod;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-import javax.jws.soap.SOAPBinding.Style;
-
-@WebService
-@SOAPBinding(style = Style.RPC)
-public interface CreditCardService {
-
- String NOT_AUTHORIZED = "Not_Authorized";
-
- @WebMethod
- String makePayment(String cardNumber, String name, double amount);
-}
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardServiceBootstrap.java b/sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardServiceBootstrap.java
deleted file mode 100644
index 2fa12fc187..0000000000
--- a/sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardServiceBootstrap.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * 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.creditcard;
-
-import javax.xml.ws.Endpoint;
-
-public class CreditCardServiceBootstrap {
-
- public static void main(String[] args) {
- System.out.println("Publishing Credit Card Service as web service: http://localhost:8081/CreditCardService");
- System.out.println("Press Ctrl^C to terminate...");
-
- Endpoint.publish("http://localhost:8081/CreditCardService", new CreditCardServiceImpl());
- }
-}
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardServiceImpl.java b/sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardServiceImpl.java
deleted file mode 100644
index 7118edbc1f..0000000000
--- a/sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardServiceImpl.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * 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.creditcard;
-
-import javax.jws.WebService;
-
-@WebService(endpointInterface = "scatours.creditcard.CreditCardService")
-public class CreditCardServiceImpl implements CreditCardService {
-
- public String makePayment(String cardNumber, String name, double amount) {
- System.out.println("Payment request from " + name);
-
- if (cardNumber != null && cardNumber.startsWith("1")) {
- return "AUTH_ID:" + System.currentTimeMillis();
- }
- return NOT_AUTHORIZED;
- }
-}
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/services/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/services/pom.xml
index 0c8812cffd..8428d9a791 100644
--- a/sca-java-1.x/trunk/tutorials/travelsample/services/pom.xml
+++ b/sca-java-1.x/trunk/tutorials/travelsample/services/pom.xml
@@ -37,7 +37,6 @@
<activeByDefault>true</activeByDefault>
</activation>
<modules>
- <module>creditcard-payment-jaxws</module>
<module>smsgateway-jaxws</module>
<module>smsgateway-corba</module>
<module>smsgateway-ejb</module>