Author: heiko.braun(a)jboss.com
Date: 2006-11-09 08:32:13 -0500 (Thu, 09 Nov 2006)
New Revision: 1414
Added:
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/DiscountRequest.java
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/DiscountResponse.java
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmt.java
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmtBean.java
Log:
JBW samples
Added:
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/DiscountRequest.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/DiscountRequest.java 2006-11-09
12:09:32 UTC (rev 1413)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/DiscountRequest.java 2006-11-09
13:32:13 UTC (rev 1414)
@@ -0,0 +1,29 @@
+
+package org.jboss.test.ws.jaxws.samples.retail.profile;
+
+import org.jboss.test.ws.jaxws.samples.retail.Customer;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+public class DiscountRequest {
+
+ protected Customer customer;
+
+ public DiscountRequest() {
+ }
+
+ public DiscountRequest(Customer customer) {
+ this.customer = customer;
+ }
+
+ public Customer getCustomer() {
+ return customer;
+ }
+
+ public void setCustomer(Customer value) {
+ this.customer = value;
+ }
+
+}
Property changes on:
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/DiscountRequest.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/DiscountResponse.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/DiscountResponse.java 2006-11-09
12:09:32 UTC (rev 1413)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/DiscountResponse.java 2006-11-09
13:32:13 UTC (rev 1414)
@@ -0,0 +1,36 @@
+
+package org.jboss.test.ws.jaxws.samples.retail.profile;
+
+import org.jboss.test.ws.jaxws.samples.retail.Customer;
+
+
+public class DiscountResponse {
+
+ protected Customer customer;
+ protected double discount;
+
+ public DiscountResponse() {
+ }
+
+ public DiscountResponse(Customer customer, double discount) {
+ this.customer = customer;
+ this.discount = discount;
+ }
+
+ public Customer getCustomer() {
+ return customer;
+ }
+
+ public void setCustomer(Customer value) {
+ this.customer = value;
+ }
+
+ public double getDiscount() {
+ return discount;
+ }
+
+ public void setDiscount(double value) {
+ this.discount = value;
+ }
+
+}
Property changes on:
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/DiscountResponse.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmt.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmt.java 2006-11-09
12:09:32 UTC (rev 1413)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmt.java 2006-11-09
13:32:13 UTC (rev 1414)
@@ -0,0 +1,17 @@
+
+package org.jboss.test.ws.jaxws.samples.retail.profile;
+
+import javax.ejb.Remote;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+@Remote
+@WebService(name = "ProfileMgmt", targetNamespace =
"http://org.jboss.ws/samples/retail/profile")
+@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
+public interface ProfileMgmt {
+
+ @WebMethod
+ public DiscountResponse getCustomerDiscount( DiscountRequest request);
+
+}
Property changes on:
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmt.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmtBean.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmtBean.java 2006-11-09
12:09:32 UTC (rev 1413)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmtBean.java 2006-11-09
13:32:13 UTC (rev 1414)
@@ -0,0 +1,34 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+*/
+package org.jboss.test.ws.jaxws.samples.retail.profile;
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+
+@Stateless
+@WebService(endpointInterface =
"org.jboss.test.ws.jaxws.samples.retail.profile.ProfileMgmt")
+public class ProfileMgmtBean implements ProfileMgmt {
+
+ public DiscountResponse getCustomerDiscount(DiscountRequest request) {
+ return new DiscountResponse(request.getCustomer(), 10.00);
+ }
+}
Property changes on:
trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmtBean.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF