From e4298514b9c7adb5713fe8be440249e806a307b1 Mon Sep 17 00:00:00 2001 From: nash Date: Tue, 15 Sep 2009 22:44:35 +0000 Subject: Rename packages to match notification-ws contribution (needed to preserve interop) git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@815537 13f79535-47bb-0310-9956-ffa450edef68 --- .../smsgateway/SMSGatewayService.java | 32 +++++++++++++++++++++ .../smsgateway/SMSGatewayServiceBootstrap.java | 31 ++++++++++++++++++++ .../smsgateway/SMSGatewayServiceImpl.java | 33 ++++++++++++++++++++++ .../scatours/smsgateway/SMSGatewayService.java | 32 --------------------- .../smsgateway/SMSGatewayServiceBootstrap.java | 31 -------------------- .../scatours/smsgateway/SMSGatewayServiceImpl.java | 33 ---------------------- 6 files changed, 96 insertions(+), 96 deletions(-) create mode 100644 sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayService.java create mode 100644 sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayServiceBootstrap.java create mode 100644 sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayServiceImpl.java delete mode 100644 sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/scatours/smsgateway/SMSGatewayService.java delete mode 100644 sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/scatours/smsgateway/SMSGatewayServiceBootstrap.java delete mode 100644 sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/scatours/smsgateway/SMSGatewayServiceImpl.java (limited to 'sandbox/travelsample/services') diff --git a/sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayService.java b/sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayService.java new file mode 100644 index 0000000000..696ab12daa --- /dev/null +++ b/sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayService.java @@ -0,0 +1,32 @@ +/* + * 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 com.tuscanyscatours.smsgateway; + +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 SMSGatewayService { + + @WebMethod + boolean sendSMS(String fromNumber, String toNumber, String text); +} diff --git a/sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayServiceBootstrap.java b/sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayServiceBootstrap.java new file mode 100644 index 0000000000..3d07ffdd13 --- /dev/null +++ b/sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayServiceBootstrap.java @@ -0,0 +1,31 @@ +/* + * 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 com.tuscanyscatours.smsgateway; + +import javax.xml.ws.Endpoint; + +public class SMSGatewayServiceBootstrap { + + public static void main(String[] args) { + System.out.println("Publishing SMS Gateway Service as web service"); + + Endpoint.publish("http://localhost:8081/SMSGatewayService", + new SMSGatewayServiceImpl()); + } +} diff --git a/sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayServiceImpl.java b/sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayServiceImpl.java new file mode 100644 index 0000000000..cd4eab052d --- /dev/null +++ b/sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayServiceImpl.java @@ -0,0 +1,33 @@ +/* + * 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 com.tuscanyscatours.smsgateway; + +import javax.jws.WebService; + +@WebService(endpointInterface = "com.tuscanyscatours.smsgateway.SMSGatewayService") +public class SMSGatewayServiceImpl implements SMSGatewayService { + + public boolean sendSMS(String fromNumber, String toNumber, String text) { + System.out.println("Sending SMS message"); + System.out.println("From: " + fromNumber); + System.out.println("To: " + toNumber); + System.out.println("Message: " + text); + return true; + } +} diff --git a/sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/scatours/smsgateway/SMSGatewayService.java b/sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/scatours/smsgateway/SMSGatewayService.java deleted file mode 100644 index e6541a8ad0..0000000000 --- a/sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/scatours/smsgateway/SMSGatewayService.java +++ /dev/null @@ -1,32 +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.smsgateway; - -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 SMSGatewayService { - - @WebMethod - boolean sendSMS(String fromNumber, String toNumber, String text); -} diff --git a/sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/scatours/smsgateway/SMSGatewayServiceBootstrap.java b/sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/scatours/smsgateway/SMSGatewayServiceBootstrap.java deleted file mode 100644 index 8ed262e527..0000000000 --- a/sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/scatours/smsgateway/SMSGatewayServiceBootstrap.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.smsgateway; - -import javax.xml.ws.Endpoint; - -public class SMSGatewayServiceBootstrap { - - public static void main(String[] args) { - System.out.println("Publishing SMS Gateway Service as web service"); - - Endpoint.publish("http://localhost:8081/SMSGatewayService", - new SMSGatewayServiceImpl()); - } -} diff --git a/sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/scatours/smsgateway/SMSGatewayServiceImpl.java b/sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/scatours/smsgateway/SMSGatewayServiceImpl.java deleted file mode 100644 index 824bbf8963..0000000000 --- a/sandbox/travelsample/services/smsgateway-jaxws-service/src/main/java/scatours/smsgateway/SMSGatewayServiceImpl.java +++ /dev/null @@ -1,33 +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.smsgateway; - -import javax.jws.WebService; - -@WebService(endpointInterface = "scatours.smsgateway.SMSGatewayService") -public class SMSGatewayServiceImpl implements SMSGatewayService { - - public boolean sendSMS(String fromNumber, String toNumber, String text) { - System.out.println("Sending SMS message"); - System.out.println("From: " + fromNumber); - System.out.println("To: " + toNumber); - System.out.println("Message: " + text); - return true; - } -} -- cgit v1.2.3