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
This commit is contained in:
parent
bbe39bc905
commit
f1f5a5d02c
8 changed files with 0 additions and 229 deletions
|
@ -528,11 +528,6 @@
|
|||
<artifactId>scatours-launcher-using</artifactId>
|
||||
<version>${pom.version}</version>
|
||||
</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>
|
||||
|
|
|
@ -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}"/>
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
|
@ -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);
|
||||
}
|
|
@ -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());
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue