From f1f5a5d02c2f7beb16b27d6bd37c8cd670f788f9 Mon Sep 17 00:00:00 2001 From: nash Date: Tue, 30 Mar 2010 12:53:32 +0000 Subject: 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 --- .../travelsample/distribution/bundle/pom.xml | 5 -- .../tutorials/travelsample/services/build.xml | 1 - .../services/creditcard-payment-jaxws/build.xml | 53 ---------------- .../services/creditcard-payment-jaxws/pom.xml | 70 ---------------------- .../scatours/creditcard/CreditCardService.java | 34 ----------- .../creditcard/CreditCardServiceBootstrap.java | 31 ---------- .../scatours/creditcard/CreditCardServiceImpl.java | 34 ----------- .../trunk/tutorials/travelsample/services/pom.xml | 1 - 8 files changed, 229 deletions(-) delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/build.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardService.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardServiceBootstrap.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardServiceImpl.java (limited to 'sca-java-1.x/trunk/tutorials') 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 @@ -528,11 +528,6 @@ scatours-launcher-using ${pom.version} - - org.apache.tuscany.sca - scatours-service-creditcard-payment-jaxws - ${pom.version} - org.apache.tuscany.sca scatours-service-smsgateway-corba 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 @@ - 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 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - scatours - 1.0-SNAPSHOT - ../../pom.xml - 1.0-SNAPSHOT - scatours-service-creditcard-payment-jaxws - Apache Tuscany SCA Tours Credit Card Payment JAX-WS Service - - - - javax.xml.ws - jaxws-api - 2.1 - - - javax.xml.soap - saaj-api - - - - - - junit - junit - 4.5 - test - - - - - ${artifactId} - - - org.apache.maven.plugins - maven-jar-plugin - 2.2 - - - - ../util/scatours-util-jaxws-runtime.jar - scatours.creditcard.CreditCardServiceBootstrap - - - - - - - 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 @@ true - creditcard-payment-jaxws smsgateway-jaxws smsgateway-corba smsgateway-ejb -- cgit v1.2.3