Author: thomas.diesler(a)jboss.com
Date: 2008-03-12 06:23:49 -0400 (Wed, 12 Mar 2008)
New Revision: 5937
Added:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/Customer.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/Order.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderAdmin.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderItem.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderLineRequest.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderLineResponse.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmt.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmtBean.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderStatus.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/RetailSampleTestCase.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerification.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationBean.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationService.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CreditcardProcessor.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/ObjectFactory.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationRequest.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationResponse.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/package-info.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/SOAPMessageTrace.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/Timer.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/jaxws-handler.xml
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountRequest.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountResponse.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ObjectFactory.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmt.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtBean.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtService.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/package-info.java
framework/trunk/src/test/resources/jaxws/samples/advanced/
framework/trunk/src/test/resources/jaxws/samples/advanced/retail/
Removed:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerification.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationBean.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationService.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CreditcardProcessor.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/ObjectFactory.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationRequest.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationResponse.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/package-info.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/SOAPMessageTrace.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/Timer.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountRequest.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountResponse.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ObjectFactory.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmt.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtBean.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtService.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/package-info.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/
framework/trunk/src/test/resources/jaxws/samples/retail/
Modified:
framework/trunk/src/test/ant-import/build-jars-jaxws.xml
Log:
[JBWS-2031] Put advanced samples together with the retail sample
Modified: framework/trunk/src/test/ant-import/build-jars-jaxws.xml
===================================================================
--- framework/trunk/src/test/ant-import/build-jars-jaxws.xml 2008-03-12 09:57:55 UTC (rev
5936)
+++ framework/trunk/src/test/ant-import/build-jars-jaxws.xml 2008-03-12 10:23:49 UTC (rev
5937)
@@ -196,10 +196,10 @@
<!-- jaxws-samples-retail -->
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-retail.jar">
<fileset dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/retail/**/*.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/retail/jaxws-handler.xml"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/retail/**/*.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/advanced/retail/jaxws-handler.xml"/>
</fileset>
- <metainf
dir="${tests.output.dir}/resources/jaxws/samples/retail/META-INF">
+ <metainf
dir="${tests.output.dir}/resources/jaxws/samples/advanced/retail/META-INF">
<include name="wsdl/*"/>
</metainf>
</jar>
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/Customer.java
(from rev 5915,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/Customer.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/Customer.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/Customer.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,62 @@
+/*
+* 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.advanced.retail;
+
+import java.io.Serializable;
+
+import javax.xml.bind.annotation.XmlType;
+
+@XmlType(name="customer", namespace =
"http://org.jboss.ws/samples/retail", propOrder = {
+ "creditCardDetails",
+ "firstName",
+ "lastName"
+})
+public class Customer implements Serializable {
+ private String firstName;
+ private String lastName;
+ private String creditCardDetails;
+
+ public String getFirstName() {
+ return firstName;
+ }
+
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public String getLastName() {
+ return lastName;
+ }
+
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ public String getCreditCardDetails() {
+ return creditCardDetails;
+ }
+
+ public void setCreditCardDetails(String creditCardDetails) {
+ this.creditCardDetails = creditCardDetails;
+ }
+}
+
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/Order.java
(from rev 5915,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/Order.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/Order.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/Order.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,91 @@
+/*
+* 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.advanced.retail;
+
+import javax.xml.bind.annotation.*;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * @author Heiko Braun <heiko.braun(a)jboss.com>
+ * @version $Id$
+ * @since Nov 7, 2006
+ */
+
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(
+ name = "orderType",
+ namespace="http://org.jboss.ws/samples/retail",
+ propOrder = { "orderNum", "state", "customer",
"items" }
+)
+public class Order implements Serializable {
+
+ public enum OrderState {TRANSIENT, PREPARED, VERIFIED, PROCESSED}
+
+ private OrderState state;
+ private long orderNum;
+ private Customer customer;
+ private List<OrderItem> items;
+
+ public Order(Customer customer) {
+ this.customer = customer;
+ }
+
+ public Order() {
+ this.state = OrderState.TRANSIENT;
+ }
+
+ public long getOrderNum() {
+ return orderNum;
+ }
+
+ public void setOrderNum(long orderNum) {
+ this.orderNum = orderNum;
+ }
+
+ public Customer getCustomer() {
+ return customer;
+ }
+
+ public void setCustomer(Customer customer) {
+ this.customer = customer;
+ }
+
+ public List<OrderItem> getItems() {
+ if(null==items)
+ items = new ArrayList<OrderItem>();
+ return items;
+ }
+
+ public OrderState getState() {
+ return state;
+ }
+
+ public void setState(OrderState state) {
+ this.state = state;
+ }
+
+ public String toString() {
+ return "Order {num="+orderNum+"}";
+ }
+}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderAdmin.java
(from rev 5915,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderAdmin.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderAdmin.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderAdmin.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,36 @@
+/*
+* 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.advanced.retail;
+
+import javax.ejb.Remote;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+@Remote
+@WebService(name = "OrderAdmin", targetNamespace =
"http://org.jboss.ws/samples/retail")
+@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
+public interface OrderAdmin {
+
+ @WebMethod
+ public OrderLineResponse checkOrderLines(OrderLineRequest request);
+}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderItem.java
(from rev 5915,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderItem.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderItem.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderItem.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,58 @@
+/*
+* 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.advanced.retail;
+
+import java.io.Serializable;
+
+/**
+ * @author Heiko Braun <heiko.braun(a)jboss.com>
+ * @version $Id$
+ * @since Nov 7, 2006
+ */
+public class OrderItem implements Serializable {
+ private String name;
+ private double price;
+
+ public OrderItem() {
+ }
+
+ public OrderItem(String name, double price) {
+ this.name = name;
+ this.price = price;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public double getPrice() {
+ return price;
+ }
+
+ public void setPrice(double price) {
+ this.price = price;
+ }
+}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderLineRequest.java
(from rev 5915,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderLineRequest.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderLineRequest.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderLineRequest.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,20 @@
+package org.jboss.test.ws.jaxws.samples.advanced.retail;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: hbraun
+ * Date: 13.12.2006
+ * Time: 14:18:27
+ * To change this template use File | Settings | File Templates.
+ */
+public class OrderLineRequest {
+ private String reqKey;
+
+ public String getReqKey() {
+ return reqKey;
+ }
+
+ public void setReqKey(String reqKey) {
+ this.reqKey = reqKey;
+ }
+}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderLineResponse.java
(from rev 5915,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderLineResponse.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderLineResponse.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderLineResponse.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,20 @@
+package org.jboss.test.ws.jaxws.samples.advanced.retail;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: hbraun
+ * Date: 13.12.2006
+ * Time: 14:19:03
+ * To change this template use File | Settings | File Templates.
+ */
+public class OrderLineResponse {
+ private int ordersInLine;
+
+ public int getOrdersInLine() {
+ return ordersInLine;
+ }
+
+ public void setOrdersInLine(int ordersInLine) {
+ this.ordersInLine = ordersInLine;
+ }
+}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmt.java
(from rev 5915,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderMgmt.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmt.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmt.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,36 @@
+/*
+* 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.advanced.retail;
+
+import javax.ejb.Remote;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+@Remote
+@WebService(name = "OrderMgmt", targetNamespace =
"http://org.jboss.ws/samples/retail")
+@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
+public interface OrderMgmt {
+
+ @WebMethod
+ public OrderStatus prepareOrder(Order order);
+}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmtBean.java
(from rev 5915,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderMgmtBean.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmtBean.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderMgmtBean.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,122 @@
+/*
+ * 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.advanced.retail;
+
+import javax.annotation.PostConstruct;
+import javax.ejb.Stateless;
+import javax.jws.HandlerChain;
+import javax.jws.WebService;
+import javax.xml.ws.WebServiceRef;
+
+import org.jboss.logging.Logger;
+import org.jboss.test.ws.jaxws.samples.advanced.retail.cc.CCVerification;
+import org.jboss.test.ws.jaxws.samples.advanced.retail.cc.CCVerificationService;
+import org.jboss.test.ws.jaxws.samples.advanced.retail.profile.DiscountRequest;
+import org.jboss.test.ws.jaxws.samples.advanced.retail.profile.DiscountResponse;
+import org.jboss.test.ws.jaxws.samples.advanced.retail.profile.ProfileMgmt;
+import org.jboss.test.ws.jaxws.samples.advanced.retail.profile.ProfileMgmtService;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+/**
+ * An example order management component
+ * that offers access though RMI and SOAP
+ */
+@Stateless
+@WebService(endpointInterface =
"org.jboss.test.ws.jaxws.samples.retail.OrderMgmt", name =
"OrderMgmt", serviceName = "OrderMgmtService")
+@WebContext(contextRoot = "/jaxws-samples-retail")
+@HandlerChain(file = "jaxws-handler.xml")
+public class OrderMgmtBean implements OrderMgmt
+{
+
+ private static final Logger log = Logger.getLogger(OrderMgmtBean.class);
+
+ @WebServiceRef(wsdlLocation = "META-INF/wsdl/CCVerificationService.wsdl")
+ private CCVerificationService verificationService;
+ private CCVerification verificationPort;
+
+ @WebServiceRef(wsdlLocation = "META-INF/wsdl/ProfileMgmtService.wsdl")
+ private ProfileMgmtService profileService;
+ private ProfileMgmt profilePort;
+
+ @PostConstruct
+ public void initialize()
+ {
+ // Throws NPE with SUN-RI, use lazy initialize instead
+ //verificationPort = verificationService.getCCVerificationPort();
+ //profilePort = profileService.getProfileMgmtPort();
+ }
+
+ public CCVerification getVerificationPort()
+ {
+ return verificationService.getCCVerificationPort();
+ }
+
+ public ProfileMgmt getProfilePort()
+ {
+ return profileService.getProfileMgmtPort();
+ }
+
+ /**
+ * Prepare a customer order.
+ * This will verify the billing details (i.e. creditcard)
+ * and check if the customer qualifies for a discount
+ * (applies to high value customers only)
+ *
+ * @param order
+ * @return OrderStaus
+ */
+ public OrderStatus prepareOrder(Order order)
+ {
+
+ log.info("Preparing order " + order);
+
+ // verify billing details
+ String creditCard = order.getCustomer().getCreditCardDetails();
+ //Response<Boolean> response =
getVerificationPort().verifyAsync(creditCard);
+
+ boolean validCard = getVerificationPort().verify(creditCard);
+
+ // high value customer discount
+ DiscountRequest discountRequest = new DiscountRequest(order.getCustomer());
+ DiscountResponse discount = getProfilePort().getCustomerDiscount(discountRequest);
+ boolean hasDiscount = discount.getDiscount() > 0.00;
+ log.info("High value customer ? " + hasDiscount);
+
+ try
+ {
+ //log.info(creditCard + " valid? " + response.get());
+ log.info(creditCard + " valid? " + validCard);
+ }
+ catch (Exception e)
+ {
+ log.error("Failed to access async results", e);
+ }
+
+ // transition to prepared state
+ order.setState(Order.OrderState.PREPARED);
+
+ // done
+ //return new OrderStatus("Prepared", order.getOrderNum(),
discount.getDiscount());
+ return new OrderStatus("Prepared", order.getOrderNum(), 0);
+ }
+
+}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderStatus.java
(from rev 5915,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/OrderStatus.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderStatus.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/OrderStatus.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,75 @@
+/*
+* 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.advanced.retail;
+
+import java.io.Serializable;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * @author Heiko Braun <heiko.braun(a)jboss.com>
+ * @version $Id$
+ * @since Nov 8, 2006
+ */
+
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "orderStatus", namespace =
"http://org.jboss.ws/samples/retail")
+public class OrderStatus implements Serializable {
+ private String status;
+ private long orderNum;
+ private double discount;
+
+ public OrderStatus() {
+ }
+
+ public OrderStatus(String status, long orderNum, double discount) {
+ this.status = status;
+ this.orderNum = orderNum;
+ this.discount = discount;
+ }
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public long getOrderNum() {
+ return orderNum;
+ }
+
+ public void setOrderNum(long orderNum) {
+ this.orderNum = orderNum;
+ }
+
+ public double getDiscount() {
+ return discount;
+ }
+
+ public void setDiscount(double discount) {
+ this.discount = discount;
+ }
+}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/RetailSampleTestCase.java
(from rev 5915,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/RetailSampleTestCase.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/RetailSampleTestCase.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/RetailSampleTestCase.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,75 @@
+/*
+* 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.advanced.retail;
+
+// $Id$
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * @author Heiko Braun <heiko.braun(a)jboss.com>
+ * @since 08-Nov-2006
+ */
+public class RetailSampleTestCase extends JBossWSTest {
+
+ public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() +
":8080/jaxws-samples-retail/OrderMgmtBean";
+
+ private OrderMgmt orderMgmtWS;
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(RetailSampleTestCase.class,
"jaxws-samples-retail.jar");
+ }
+
+ protected void setUp() throws Exception
+ {
+ QName serviceName = new
QName("http://retail.samples.jaxws.ws.test.jboss.org/",
"OrderMgmtService");
+ URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS+"?wsdl");
+
+ Service service = Service.create(wsdlURL, serviceName);
+ orderMgmtWS = (OrderMgmt)service.getPort(OrderMgmt.class);
+ }
+
+ public void testWebService() throws Exception
+ {
+ Customer customer = new Customer();
+ customer.setFirstName("Chuck");
+ customer.setLastName("Norris");
+ customer.setCreditCardDetails("1000-4567-3456-XXXX");
+
+ Order order = new Order(customer);
+ order.setOrderNum(12345);
+ order.getItems().add( new OrderItem("Introduction to Web Services",
39.99) );
+
+ OrderStatus result = orderMgmtWS.prepareOrder(order);
+ assertNotNull("Result was null", result);
+ assertEquals("Prepared", result.getStatus());
+ }
+}
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc
(from rev 5915, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc)
Deleted:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerification.java
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CCVerification.java 2008-03-11
14:02:15 UTC (rev 5915)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerification.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -1,39 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.retail.cc;
-
-import javax.jws.WebMethod;
-import javax.jws.WebParam;
-import javax.jws.WebResult;
-import javax.jws.WebService;
-import javax.xml.ws.RequestWrapper;
-import javax.xml.ws.Response;
-import javax.xml.ws.ResponseWrapper;
-
-
-/**
- * This class was generated by the JAXWS SI.
- * JAX-WS RI 2.1-10/21/2006 12:56 AM(vivek)-EA2
- * Generated source version: 2.0
- *
- */
-@WebService(name = "CCVerification", targetNamespace =
"http://org.jboss.ws/samples/retail/cc")
-public interface CCVerification {
-
-
- /**
- *
- * @param creditCardNumber
- * @return
- * returns boolean
- */
- @WebMethod
- @WebResult(name = "verified", targetNamespace = "")
- @RequestWrapper(localName = "verify", targetNamespace =
"http://org.jboss.ws/samples/retail/cc", className =
"org.jboss.test.ws.jaxws.samples.retail.cc.VerificationRequest")
- @ResponseWrapper(localName = "verifyResponse", targetNamespace =
"http://org.jboss.ws/samples/retail/cc", className =
"org.jboss.test.ws.jaxws.samples.retail.cc.VerificationResponse")
- public Boolean verify(
- @WebParam(name = "creditCardNumber", targetNamespace = "")
- String creditCardNumber);
-
- //Response<Boolean> verifyAsync(String creditCardNumber);
-
-}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerification.java
(from rev 5936,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CCVerification.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerification.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerification.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,39 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.retail.cc;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.Response;
+import javax.xml.ws.ResponseWrapper;
+
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.1-10/21/2006 12:56 AM(vivek)-EA2
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "CCVerification", targetNamespace =
"http://org.jboss.ws/samples/retail/cc")
+public interface CCVerification {
+
+
+ /**
+ *
+ * @param creditCardNumber
+ * @return
+ * returns boolean
+ */
+ @WebMethod
+ @WebResult(name = "verified", targetNamespace = "")
+ @RequestWrapper(localName = "verify", targetNamespace =
"http://org.jboss.ws/samples/retail/cc", className =
"org.jboss.test.ws.jaxws.samples.retail.cc.VerificationRequest")
+ @ResponseWrapper(localName = "verifyResponse", targetNamespace =
"http://org.jboss.ws/samples/retail/cc", className =
"org.jboss.test.ws.jaxws.samples.retail.cc.VerificationResponse")
+ public Boolean verify(
+ @WebParam(name = "creditCardNumber", targetNamespace = "")
+ String creditCardNumber);
+
+ //Response<Boolean> verifyAsync(String creditCardNumber);
+
+}
Deleted:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationBean.java
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CCVerificationBean.java 2008-03-11
14:02:15 UTC (rev 5915)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationBean.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -1,51 +0,0 @@
-/*
- * 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.cc;
-
-import javax.ejb.Stateless;
-import javax.jws.WebService;
-import javax.xml.ws.Response;
-
-import org.jboss.logging.Logger;
-import org.jboss.wsf.spi.annotation.WebContext;
-
-@Stateless
-@WebService(endpointInterface =
"org.jboss.test.ws.jaxws.samples.retail.cc.CCVerification", name =
"CCVerification")
-@WebContext(contextRoot = "/jaxws-samples-retail")
-//@HandlerChain(file = "../jaxws-handler.xml")
-public class CCVerificationBean implements CCVerification
-{
-
- private static final Logger log = Logger.getLogger(CCVerificationBean.class);
-
- public Boolean verify(String creditcard)
- {
- log.info("Verifying credit card: " + creditcard);
- CreditcardProcessor.process(creditcard);
- return true;
- }
-
- public Response<Boolean> verifyAsync(String creditCardNumber)
- {
- return null;
- }
-}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationBean.java
(from rev 5936,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CCVerificationBean.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationBean.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationBean.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,51 @@
+/*
+ * 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.advanced.retail.cc;
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.xml.ws.Response;
+
+import org.jboss.logging.Logger;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+@Stateless
+@WebService(endpointInterface =
"org.jboss.test.ws.jaxws.samples.retail.cc.CCVerification", name =
"CCVerification")
+@WebContext(contextRoot = "/jaxws-samples-retail")
+//@HandlerChain(file = "../jaxws-handler.xml")
+public class CCVerificationBean implements CCVerification
+{
+
+ private static final Logger log = Logger.getLogger(CCVerificationBean.class);
+
+ public Boolean verify(String creditcard)
+ {
+ log.info("Verifying credit card: " + creditcard);
+ CreditcardProcessor.process(creditcard);
+ return true;
+ }
+
+ public Response<Boolean> verifyAsync(String creditCardNumber)
+ {
+ return null;
+ }
+}
Deleted:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationService.java
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CCVerificationService.java 2008-03-11
14:02:15 UTC (rev 5915)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationService.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -1,52 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.retail.cc;
-
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.Service;
-import javax.xml.ws.WebEndpoint;
-import javax.xml.ws.WebServiceClient;
-
-/**
- * This class was generated by the JAXWS SI.
- * JAX-WS RI 2.1-10/21/2006 12:56 AM(vivek)-EA2
- * Generated source version: 2.0
- *
- */
-@WebServiceClient(name = "CCVerificationService", targetNamespace =
"http://org.jboss.ws/samples/retail/cc", wsdlLocation =
"resources/jaxws/samples/retail/META-INF/wsdl/CCVerificationService.wsdl")
-public class CCVerificationService
- extends Service
-{
-
- private final static URL CCVERIFICATIONSERVICE_WSDL_LOCATION;
-
- static {
- URL url = null;
- try {
- url = new
URL("http://somehost:8080/jaxws-samples-retail/CCVerificationBean?wsdl");
- } catch (MalformedURLException e) {
- e.printStackTrace();
- }
- CCVERIFICATIONSERVICE_WSDL_LOCATION = url;
- }
-
- public CCVerificationService(URL wsdlLocation, QName serviceName) {
- super(wsdlLocation, serviceName);
- }
-
- public CCVerificationService() {
- super(CCVERIFICATIONSERVICE_WSDL_LOCATION, new
QName("http://org.jboss.ws/samples/retail/cc",
"CCVerificationService"));
- }
-
- /**
- *
- * @return
- * returns CCVerification
- */
- @WebEndpoint(name = "CCVerificationPort")
- public CCVerification getCCVerificationPort() {
- return (CCVerification)super.getPort(new
QName("http://org.jboss.ws/samples/retail/cc", "CCVerificationPort"),
CCVerification.class);
- }
-}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationService.java
(from rev 5936,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CCVerificationService.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationService.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CCVerificationService.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,52 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.retail.cc;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.1-10/21/2006 12:56 AM(vivek)-EA2
+ * Generated source version: 2.0
+ *
+ */
+@WebServiceClient(name = "CCVerificationService", targetNamespace =
"http://org.jboss.ws/samples/retail/cc", wsdlLocation =
"resources/jaxws/samples/retail/META-INF/wsdl/CCVerificationService.wsdl")
+public class CCVerificationService
+ extends Service
+{
+
+ private final static URL CCVERIFICATIONSERVICE_WSDL_LOCATION;
+
+ static {
+ URL url = null;
+ try {
+ url = new
URL("http://somehost:8080/jaxws-samples-retail/CCVerificationBean?wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ CCVERIFICATIONSERVICE_WSDL_LOCATION = url;
+ }
+
+ public CCVerificationService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public CCVerificationService() {
+ super(CCVERIFICATIONSERVICE_WSDL_LOCATION, new
QName("http://org.jboss.ws/samples/retail/cc",
"CCVerificationService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns CCVerification
+ */
+ @WebEndpoint(name = "CCVerificationPort")
+ public CCVerification getCCVerificationPort() {
+ return (CCVerification)super.getPort(new
QName("http://org.jboss.ws/samples/retail/cc", "CCVerificationPort"),
CCVerification.class);
+ }
+}
Deleted:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CreditcardProcessor.java
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CreditcardProcessor.java 2008-03-11
14:02:15 UTC (rev 5915)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CreditcardProcessor.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -1,43 +0,0 @@
-/*
-* 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.cc;
-
-/**
- * @author Heiko Braun <heiko.braun(a)jboss.com>
- * @version $Id$
- * @since Nov 9, 2006
- */
-public class CreditcardProcessor {
-
- public static void process(String creditcatrd)
- {
- // this will take some time
- try
- {
- Thread.currentThread().join(1500);
- }
- catch (InterruptedException e)
- {
- e.printStackTrace();
- }
- }
-}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CreditcardProcessor.java
(from rev 5936,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/CreditcardProcessor.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CreditcardProcessor.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/CreditcardProcessor.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,43 @@
+/*
+* 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.advanced.retail.cc;
+
+/**
+ * @author Heiko Braun <heiko.braun(a)jboss.com>
+ * @version $Id$
+ * @since Nov 9, 2006
+ */
+public class CreditcardProcessor {
+
+ public static void process(String creditcatrd)
+ {
+ // this will take some time
+ try
+ {
+ Thread.currentThread().join(1500);
+ }
+ catch (InterruptedException e)
+ {
+ e.printStackTrace();
+ }
+ }
+}
Deleted:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/ObjectFactory.java
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/ObjectFactory.java 2008-03-11
14:02:15 UTC (rev 5915)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/ObjectFactory.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -1,71 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.retail.cc;
-
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.annotation.XmlElementDecl;
-import javax.xml.bind.annotation.XmlRegistry;
-import javax.xml.namespace.QName;
-
-
-/**
- * This object contains factory methods for each
- * Java content interface and Java element interface
- * generated in the org.jboss.test.ws.jaxws.samples.retail.cc package.
- * <p>An ObjectFactory allows you to programatically
- * construct new instances of the Java representation
- * for XML content. The Java representation of XML
- * content can consist of schema derived interfaces
- * and classes representing the binding of schema
- * type definitions, element declarations and model
- * groups. Factory methods for each of these are
- * provided in this class.
- *
- */
-@XmlRegistry
-public class ObjectFactory {
-
- private final static QName _VerifyResponse_QNAME = new
QName("http://org.jboss.ws/samples/retail/cc", "verifyResponse");
- private final static QName _Verify_QNAME = new
QName("http://org.jboss.ws/samples/retail/cc", "verify");
-
- /**
- * Create a new ObjectFactory that can be used to create new instances of schema
derived classes for package: org.jboss.test.ws.jaxws.samples.retail.cc
- *
- */
- public ObjectFactory() {
- }
-
- /**
- * Create an instance of {@link VerificationRequest }
- *
- */
- public VerificationRequest createVerificationRequest() {
- return new VerificationRequest();
- }
-
- /**
- * Create an instance of {@link VerificationResponse }
- *
- */
- public VerificationResponse createVerificationResponse() {
- return new VerificationResponse();
- }
-
- /**
- * Create an instance of {@link JAXBElement }{@code <}{@link VerificationResponse
}{@code >}}
- *
- */
- @XmlElementDecl(namespace = "http://org.jboss.ws/samples/retail/cc", name =
"verifyResponse")
- public JAXBElement<VerificationResponse>
createVerifyResponse(VerificationResponse value) {
- return new JAXBElement<VerificationResponse>(_VerifyResponse_QNAME,
VerificationResponse.class, null, value);
- }
-
- /**
- * Create an instance of {@link JAXBElement }{@code <}{@link VerificationRequest
}{@code >}}
- *
- */
- @XmlElementDecl(namespace = "http://org.jboss.ws/samples/retail/cc", name =
"verify")
- public JAXBElement<VerificationRequest> createVerify(VerificationRequest value)
{
- return new JAXBElement<VerificationRequest>(_Verify_QNAME,
VerificationRequest.class, null, value);
- }
-
-}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/ObjectFactory.java
(from rev 5936,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/ObjectFactory.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/ObjectFactory.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/ObjectFactory.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,71 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.retail.cc;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.jboss.test.ws.jaxws.samples.retail.cc package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+ private final static QName _VerifyResponse_QNAME = new
QName("http://org.jboss.ws/samples/retail/cc", "verifyResponse");
+ private final static QName _Verify_QNAME = new
QName("http://org.jboss.ws/samples/retail/cc", "verify");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema
derived classes for package: org.jboss.test.ws.jaxws.samples.retail.cc
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link VerificationRequest }
+ *
+ */
+ public VerificationRequest createVerificationRequest() {
+ return new VerificationRequest();
+ }
+
+ /**
+ * Create an instance of {@link VerificationResponse }
+ *
+ */
+ public VerificationResponse createVerificationResponse() {
+ return new VerificationResponse();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link VerificationResponse
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://org.jboss.ws/samples/retail/cc", name =
"verifyResponse")
+ public JAXBElement<VerificationResponse>
createVerifyResponse(VerificationResponse value) {
+ return new JAXBElement<VerificationResponse>(_VerifyResponse_QNAME,
VerificationResponse.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link VerificationRequest
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://org.jboss.ws/samples/retail/cc", name =
"verify")
+ public JAXBElement<VerificationRequest> createVerify(VerificationRequest value)
{
+ return new JAXBElement<VerificationRequest>(_Verify_QNAME,
VerificationRequest.class, null, value);
+ }
+
+}
Deleted:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationRequest.java
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/VerificationRequest.java 2008-03-11
14:02:15 UTC (rev 5915)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationRequest.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -1,67 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.retail.cc;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- * <p>Java class for verificationRequest complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within
this class.
- *
- * <pre>
- * <complexType name="verificationRequest">
- * <complexContent>
- * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="creditCardNumber"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-(a)XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "verificationRequest", propOrder = {
- "creditCardNumber"
- })
-public class VerificationRequest {
-
- protected String creditCardNumber;
-
- public VerificationRequest(String creditCardNumber) {
- this.creditCardNumber = creditCardNumber;
- }
-
- public VerificationRequest() {
- }
-
- /**
- * Gets the value of the creditCardNumber property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getCreditCardNumber() {
- return creditCardNumber;
- }
-
- /**
- * Sets the value of the creditCardNumber property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setCreditCardNumber(String value) {
- this.creditCardNumber = value;
- }
-
-}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationRequest.java
(from rev 5936,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/VerificationRequest.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationRequest.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationRequest.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,67 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.retail.cc;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for verificationRequest complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="verificationRequest">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="creditCardNumber"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "verificationRequest", propOrder = {
+ "creditCardNumber"
+ })
+public class VerificationRequest {
+
+ protected String creditCardNumber;
+
+ public VerificationRequest(String creditCardNumber) {
+ this.creditCardNumber = creditCardNumber;
+ }
+
+ public VerificationRequest() {
+ }
+
+ /**
+ * Gets the value of the creditCardNumber property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getCreditCardNumber() {
+ return creditCardNumber;
+ }
+
+ /**
+ * Sets the value of the creditCardNumber property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setCreditCardNumber(String value) {
+ this.creditCardNumber = value;
+ }
+
+}
Deleted:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationResponse.java
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/VerificationResponse.java 2008-03-11
14:02:15 UTC (rev 5915)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationResponse.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -1,52 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.retail.cc;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- * <p>Java class for verificationResponse complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within
this class.
- *
- * <pre>
- * <complexType name="verificationResponse">
- * <complexContent>
- * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="verified"
type="{http://www.w3.org/2001/XMLSchema}boolean"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-(a)XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "verificationResponse", propOrder = {
- "verified"
-})
-public class VerificationResponse {
-
- protected Boolean verified;
-
- /**
- * Gets the value of the verified property.
- *
- */
- public Boolean isVerified() {
- return verified;
- }
-
- /**
- * Sets the value of the verified property.
- *
- */
- public void setVerified(Boolean value) {
- this.verified = value;
- }
-
-}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationResponse.java
(from rev 5936,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/VerificationResponse.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationResponse.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/VerificationResponse.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,52 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.retail.cc;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for verificationResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="verificationResponse">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="verified"
type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "verificationResponse", propOrder = {
+ "verified"
+})
+public class VerificationResponse {
+
+ protected Boolean verified;
+
+ /**
+ * Gets the value of the verified property.
+ *
+ */
+ public Boolean isVerified() {
+ return verified;
+ }
+
+ /**
+ * Sets the value of the verified property.
+ *
+ */
+ public void setVerified(Boolean value) {
+ this.verified = value;
+ }
+
+}
Deleted:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/package-info.java
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/package-info.java 2008-03-11
14:02:15 UTC (rev 5915)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/package-info.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -1,2 +0,0 @@
-(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://org.jboss.ws/samples/retail/cc")
-package org.jboss.test.ws.jaxws.samples.retail.cc;
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/package-info.java
(from rev 5936,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/cc/package-info.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/package-info.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/cc/package-info.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,2 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://org.jboss.ws/samples/retail/cc")
+package org.jboss.test.ws.jaxws.samples.advanced.retail.cc;
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler
(from rev 5915,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/handler)
Deleted:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/SOAPMessageTrace.java
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/handler/SOAPMessageTrace.java 2008-03-11
14:02:15 UTC (rev 5915)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/SOAPMessageTrace.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -1,48 +0,0 @@
-/*
-* 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.handler;
-
-import javax.xml.ws.handler.MessageContext;
-
-import org.jboss.logging.Logger;
-import org.jboss.wsf.test.GenericSOAPHandler;
-
-public class SOAPMessageTrace extends GenericSOAPHandler
-{
- private static final Logger log = Logger.getLogger(SOAPMessageTrace.class);
-
- private Timer timer = Timer.getInstance();
-
- @Override
- public boolean handleInbound(MessageContext msgContext)
- {
- timer.push(System.currentTimeMillis());
- return true;
- }
-
- @Override
- public boolean handleOutbound(MessageContext msgContext)
- {
- log.info("Exectime time: " + timer.pop() + " ms");
- return true;
- }
-}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/SOAPMessageTrace.java
(from rev 5936,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/handler/SOAPMessageTrace.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/SOAPMessageTrace.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/SOAPMessageTrace.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,48 @@
+/*
+* 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.advanced.retail.handler;
+
+import javax.xml.ws.handler.MessageContext;
+
+import org.jboss.logging.Logger;
+import org.jboss.wsf.test.GenericSOAPHandler;
+
+public class SOAPMessageTrace extends GenericSOAPHandler
+{
+ private static final Logger log = Logger.getLogger(SOAPMessageTrace.class);
+
+ private Timer timer = Timer.getInstance();
+
+ @Override
+ public boolean handleInbound(MessageContext msgContext)
+ {
+ timer.push(System.currentTimeMillis());
+ return true;
+ }
+
+ @Override
+ public boolean handleOutbound(MessageContext msgContext)
+ {
+ log.info("Exectime time: " + timer.pop() + " ms");
+ return true;
+ }
+}
Deleted:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/Timer.java
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/handler/Timer.java 2008-03-11
14:02:15 UTC (rev 5915)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/Timer.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -1,57 +0,0 @@
-/*
-* 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.
-*/
-/**
- * @author Heiko Braun <heiko.braun(a)jboss.com>
- * @since Nov 9, 2006
- * @version $Id$
- */
-package org.jboss.test.ws.jaxws.samples.retail.handler;
-
-import java.util.Stack;
-
-public class Timer {
-
- private Stack<Long> timings = new Stack<Long>();
-
- private static Timer ourInstance = new Timer();
-
- public static Timer getInstance() {
- return ourInstance;
- }
-
- private Timer() {
- }
-
- public synchronized void push(long t)
- {
- timings.push(new Long(t));
- }
-
- public synchronized long pop()
- {
- if(timings.isEmpty())
- return 0;
-
- Long aLong = timings.pop();
- return System.currentTimeMillis() - aLong.longValue();
- }
-}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/Timer.java
(from rev 5936,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/handler/Timer.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/Timer.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/handler/Timer.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,57 @@
+/*
+* 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.
+*/
+/**
+ * @author Heiko Braun <heiko.braun(a)jboss.com>
+ * @since Nov 9, 2006
+ * @version $Id$
+ */
+package org.jboss.test.ws.jaxws.samples.advanced.retail.handler;
+
+import java.util.Stack;
+
+public class Timer {
+
+ private Stack<Long> timings = new Stack<Long>();
+
+ private static Timer ourInstance = new Timer();
+
+ public static Timer getInstance() {
+ return ourInstance;
+ }
+
+ private Timer() {
+ }
+
+ public synchronized void push(long t)
+ {
+ timings.push(new Long(t));
+ }
+
+ public synchronized long pop()
+ {
+ if(timings.isEmpty())
+ return 0;
+
+ Long aLong = timings.pop();
+ return System.currentTimeMillis() - aLong.longValue();
+ }
+}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/jaxws-handler.xml
(from rev 5915,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/jaxws-handler.xml)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/jaxws-handler.xml
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/jaxws-handler.xml 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<handler-chains
xmlns="http://java.sun.com/xml/ns/javaee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ns1="http://org.jboss.ws/jaxws/handlerscope"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
javaee_web_services_1_2.xsd">
+
+ <handler-chain>
+ <protocol-bindings>##SOAP11_HTTP</protocol-bindings>
+ <handler>
+ <handler-name>SOAPMessageTrace</handler-name>
+ <handler-class>org.jboss.test.ws.jaxws.samples.advanced.retail.handler.SOAPMessageTrace</handler-class>
+ </handler>
+ </handler-chain>
+
+</handler-chains>
\ No newline at end of file
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile
(from rev 5915,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile)
Deleted:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountRequest.java
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/DiscountRequest.java 2008-03-11
14:02:15 UTC (rev 5915)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountRequest.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -1,69 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.retail.profile;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlType;
-
-import org.jboss.test.ws.jaxws.samples.retail.Customer;
-
-
-/**
- * <p>Java class for discountRequest complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within
this class.
- *
- * <pre>
- * <complexType name="discountRequest">
- * <complexContent>
- * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="customer"
type="{http://org.jboss.ws/samples/retail}customer"
minOccurs="0"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-(a)XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "discountRequest", propOrder = {
- "customer"
- })
-public class DiscountRequest {
-
- protected Customer customer;
-
- public DiscountRequest() {
- }
-
- public DiscountRequest(Customer customer) {
- this.customer = customer;
- }
-
- /**
- * Gets the value of the customer property.
- *
- * @return
- * possible object is
- * {@link Customer }
- *
- */
- public Customer getCustomer() {
- return customer;
- }
-
- /**
- * Sets the value of the customer property.
- *
- * @param value
- * allowed object is
- * {@link Customer }
- *
- */
- public void setCustomer(Customer value) {
- this.customer = value;
- }
-
-}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountRequest.java
(from rev 5936,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/DiscountRequest.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountRequest.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountRequest.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,69 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.retail.profile;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+import org.jboss.test.ws.jaxws.samples.advanced.retail.Customer;
+
+
+/**
+ * <p>Java class for discountRequest complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="discountRequest">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="customer"
type="{http://org.jboss.ws/samples/retail}customer"
minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "discountRequest", propOrder = {
+ "customer"
+ })
+public class DiscountRequest {
+
+ protected Customer customer;
+
+ public DiscountRequest() {
+ }
+
+ public DiscountRequest(Customer customer) {
+ this.customer = customer;
+ }
+
+ /**
+ * Gets the value of the customer property.
+ *
+ * @return
+ * possible object is
+ * {@link Customer }
+ *
+ */
+ public Customer getCustomer() {
+ return customer;
+ }
+
+ /**
+ * Sets the value of the customer property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Customer }
+ *
+ */
+ public void setCustomer(Customer value) {
+ this.customer = value;
+ }
+
+}
Deleted:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountResponse.java
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/DiscountResponse.java 2008-03-11
14:02:15 UTC (rev 5915)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountResponse.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -1,89 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.retail.profile;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlType;
-
-import org.jboss.test.ws.jaxws.samples.retail.Customer;
-
-
-/**
- * <p>Java class for discountResponse complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within
this class.
- *
- * <pre>
- * <complexType name="discountResponse">
- * <complexContent>
- * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="customer"
type="{http://org.jboss.ws/samples/retail}customer"
minOccurs="0"/>
- * <element name="discount"
type="{http://www.w3.org/2001/XMLSchema}double"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
-(a)XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "discountResponse", propOrder = {
- "customer",
- "discount"
- })
-public class DiscountResponse {
-
- protected Customer customer;
- protected double discount;
-
- public DiscountResponse() {
- }
-
- public DiscountResponse(Customer customer, double discount) {
- this.customer = customer;
- this.discount = discount;
- }
-
- /**
- * Gets the value of the customer property.
- *
- * @return
- * possible object is
- * {@link Customer }
- *
- */
- public Customer getCustomer() {
- return customer;
- }
-
- /**
- * Sets the value of the customer property.
- *
- * @param value
- * allowed object is
- * {@link Customer }
- *
- */
- public void setCustomer(Customer value) {
- this.customer = value;
- }
-
- /**
- * Gets the value of the discount property.
- *
- */
- public double getDiscount() {
- return discount;
- }
-
- /**
- * Sets the value of the discount property.
- *
- */
- public void setDiscount(double value) {
- this.discount = value;
- }
-
-}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountResponse.java
(from rev 5936,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/DiscountResponse.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountResponse.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/DiscountResponse.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,89 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.retail.profile;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+import org.jboss.test.ws.jaxws.samples.advanced.retail.Customer;
+
+
+/**
+ * <p>Java class for discountResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="discountResponse">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="customer"
type="{http://org.jboss.ws/samples/retail}customer"
minOccurs="0"/>
+ * <element name="discount"
type="{http://www.w3.org/2001/XMLSchema}double"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "discountResponse", propOrder = {
+ "customer",
+ "discount"
+ })
+public class DiscountResponse {
+
+ protected Customer customer;
+ protected double discount;
+
+ public DiscountResponse() {
+ }
+
+ public DiscountResponse(Customer customer, double discount) {
+ this.customer = customer;
+ this.discount = discount;
+ }
+
+ /**
+ * Gets the value of the customer property.
+ *
+ * @return
+ * possible object is
+ * {@link Customer }
+ *
+ */
+ public Customer getCustomer() {
+ return customer;
+ }
+
+ /**
+ * Sets the value of the customer property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Customer }
+ *
+ */
+ public void setCustomer(Customer value) {
+ this.customer = value;
+ }
+
+ /**
+ * Gets the value of the discount property.
+ *
+ */
+ public double getDiscount() {
+ return discount;
+ }
+
+ /**
+ * Sets the value of the discount property.
+ *
+ */
+ public void setDiscount(double value) {
+ this.discount = value;
+ }
+
+}
Deleted:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ObjectFactory.java
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ObjectFactory.java 2008-03-11
14:02:15 UTC (rev 5915)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ObjectFactory.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -1,81 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.retail.profile;
-
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.annotation.XmlElementDecl;
-import javax.xml.bind.annotation.XmlRegistry;
-import javax.xml.namespace.QName;
-
-import org.jboss.test.ws.jaxws.samples.retail.Customer;
-
-
-/**
- * This object contains factory methods for each
- * Java content interface and Java element interface
- * generated in the org.jboss.test.ws.jaxws.samples.retail.profile package.
- * <p>An ObjectFactory allows you to programatically
- * construct new instances of the Java representation
- * for XML content. The Java representation of XML
- * content can consist of schema derived interfaces
- * and classes representing the binding of schema
- * type definitions, element declarations and model
- * groups. Factory methods for each of these are
- * provided in this class.
- *
- */
-@XmlRegistry
-public class ObjectFactory {
-
- private final static QName _GetCustomerDiscount_QNAME = new
QName("http://org.jboss.ws/samples/retail/profile",
"getCustomerDiscount");
- private final static QName _GetCustomerDiscountResponse_QNAME = new
QName("http://org.jboss.ws/samples/retail/profile",
"getCustomerDiscountResponse");
-
- /**
- * Create a new ObjectFactory that can be used to create new instances of schema
derived classes for package: org.jboss.test.ws.jaxws.samples.retail.profile
- *
- */
- public ObjectFactory() {
- }
-
- /**
- * Create an instance of {@link Customer }
- *
- */
- public Customer createCustomer() {
- return new Customer();
- }
-
- /**
- * Create an instance of {@link DiscountResponse }
- *
- */
- public DiscountResponse createDiscountResponse() {
- return new DiscountResponse();
- }
-
- /**
- * Create an instance of {@link DiscountRequest }
- *
- */
- public DiscountRequest createDiscountRequest() {
- return new DiscountRequest();
- }
-
- /**
- * Create an instance of {@link JAXBElement }{@code <}{@link DiscountRequest
}{@code >}}
- *
- */
- @XmlElementDecl(namespace = "http://org.jboss.ws/samples/retail/profile",
name = "getCustomerDiscount")
- public JAXBElement<DiscountRequest> createGetCustomerDiscount(DiscountRequest
value) {
- return new JAXBElement<DiscountRequest>(_GetCustomerDiscount_QNAME,
DiscountRequest.class, null, value);
- }
-
- /**
- * Create an instance of {@link JAXBElement }{@code <}{@link DiscountResponse
}{@code >}}
- *
- */
- @XmlElementDecl(namespace = "http://org.jboss.ws/samples/retail/profile",
name = "getCustomerDiscountResponse")
- public JAXBElement<DiscountResponse>
createGetCustomerDiscountResponse(DiscountResponse value) {
- return new
JAXBElement<DiscountResponse>(_GetCustomerDiscountResponse_QNAME,
DiscountResponse.class, null, value);
- }
-
-}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ObjectFactory.java
(from rev 5936,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ObjectFactory.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ObjectFactory.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ObjectFactory.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,81 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.retail.profile;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+import org.jboss.test.ws.jaxws.samples.advanced.retail.Customer;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.jboss.test.ws.jaxws.samples.retail.profile package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+ private final static QName _GetCustomerDiscount_QNAME = new
QName("http://org.jboss.ws/samples/retail/profile",
"getCustomerDiscount");
+ private final static QName _GetCustomerDiscountResponse_QNAME = new
QName("http://org.jboss.ws/samples/retail/profile",
"getCustomerDiscountResponse");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema
derived classes for package: org.jboss.test.ws.jaxws.samples.retail.profile
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link Customer }
+ *
+ */
+ public Customer createCustomer() {
+ return new Customer();
+ }
+
+ /**
+ * Create an instance of {@link DiscountResponse }
+ *
+ */
+ public DiscountResponse createDiscountResponse() {
+ return new DiscountResponse();
+ }
+
+ /**
+ * Create an instance of {@link DiscountRequest }
+ *
+ */
+ public DiscountRequest createDiscountRequest() {
+ return new DiscountRequest();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link DiscountRequest
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://org.jboss.ws/samples/retail/profile",
name = "getCustomerDiscount")
+ public JAXBElement<DiscountRequest> createGetCustomerDiscount(DiscountRequest
value) {
+ return new JAXBElement<DiscountRequest>(_GetCustomerDiscount_QNAME,
DiscountRequest.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link DiscountResponse
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://org.jboss.ws/samples/retail/profile",
name = "getCustomerDiscountResponse")
+ public JAXBElement<DiscountResponse>
createGetCustomerDiscountResponse(DiscountResponse value) {
+ return new
JAXBElement<DiscountResponse>(_GetCustomerDiscountResponse_QNAME,
DiscountResponse.class, null, value);
+ }
+
+}
Deleted:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmt.java
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmt.java 2008-03-11
14:02:15 UTC (rev 5915)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmt.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -1,18 +0,0 @@
-
-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);
-
-}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmt.java
(from rev 5936,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmt.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmt.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmt.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,18 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.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);
+
+}
Deleted:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtBean.java
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmtBean.java 2008-03-11
14:02:15 UTC (rev 5915)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtBean.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -1,40 +0,0 @@
-/*
- * 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;
-
-import org.jboss.wsf.spi.annotation.WebContext;
-
-@Stateless
-@WebService(endpointInterface =
"org.jboss.test.ws.jaxws.samples.retail.profile.ProfileMgmt", name =
"ProfileMgmt", serviceName = "ProfileMgmtService")
-@WebContext(contextRoot = "/jaxws-samples-retail")
-//@HandlerChain(file = "../jaxws-handler.xml")
-public class ProfileMgmtBean implements ProfileMgmt
-{
-
- public DiscountResponse getCustomerDiscount(DiscountRequest request)
- {
- return new DiscountResponse(request.getCustomer(), 10.00);
- }
-}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtBean.java
(from rev 5936,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmtBean.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtBean.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtBean.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,40 @@
+/*
+ * 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.advanced.retail.profile;
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+
+import org.jboss.wsf.spi.annotation.WebContext;
+
+@Stateless
+@WebService(endpointInterface =
"org.jboss.test.ws.jaxws.samples.retail.profile.ProfileMgmt", name =
"ProfileMgmt", serviceName = "ProfileMgmtService")
+@WebContext(contextRoot = "/jaxws-samples-retail")
+//@HandlerChain(file = "../jaxws-handler.xml")
+public class ProfileMgmtBean implements ProfileMgmt
+{
+
+ public DiscountResponse getCustomerDiscount(DiscountRequest request)
+ {
+ return new DiscountResponse(request.getCustomer(), 10.00);
+ }
+}
Deleted:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtService.java
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmtService.java 2008-03-11
14:02:15 UTC (rev 5915)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtService.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -1,53 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.retail.profile;
-
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.Service;
-import javax.xml.ws.WebEndpoint;
-import javax.xml.ws.WebServiceClient;
-
-
-/**
- * This class was generated by the JAXWS SI.
- * JAX-WS RI 2.1-10/21/2006 12:56 AM(vivek)-EA2
- * Generated source version: 2.0
- *
- */
-@WebServiceClient(name = "ProfileMgmtService", targetNamespace =
"http://org.jboss.ws/samples/retail/profile", wsdlLocation =
"resources/jaxws/samples/retail/META-INF/wsdl/ProfileMgmtService.wsdl")
-public class ProfileMgmtService
- extends Service
-{
-
- private final static URL PROFILEMGMTSERVICE_WSDL_LOCATION;
-
- static {
- URL url = null;
- try {
- url = new
URL("http://somehost:8080/jaxws-samples-retail/ProfileMgmtBean?wsdl");
- } catch (MalformedURLException e) {
- e.printStackTrace();
- }
- PROFILEMGMTSERVICE_WSDL_LOCATION = url;
- }
-
- public ProfileMgmtService(URL wsdlLocation, QName serviceName) {
- super(wsdlLocation, serviceName);
- }
-
- public ProfileMgmtService() {
- super(PROFILEMGMTSERVICE_WSDL_LOCATION, new
QName("http://org.jboss.ws/samples/retail/profile",
"ProfileMgmtService"));
- }
-
- /**
- *
- * @return
- * returns ProfileMgmt
- */
- @WebEndpoint(name = "ProfileMgmtPort")
- public ProfileMgmt getProfileMgmtPort() {
- return (ProfileMgmt)super.getPort(new
QName("http://org.jboss.ws/samples/retail/profile",
"ProfileMgmtPort"), ProfileMgmt.class);
- }
-}
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtService.java
(from rev 5936,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/ProfileMgmtService.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtService.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/ProfileMgmtService.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,53 @@
+
+package org.jboss.test.ws.jaxws.samples.advanced.retail.profile;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.1-10/21/2006 12:56 AM(vivek)-EA2
+ * Generated source version: 2.0
+ *
+ */
+@WebServiceClient(name = "ProfileMgmtService", targetNamespace =
"http://org.jboss.ws/samples/retail/profile", wsdlLocation =
"resources/jaxws/samples/retail/META-INF/wsdl/ProfileMgmtService.wsdl")
+public class ProfileMgmtService
+ extends Service
+{
+
+ private final static URL PROFILEMGMTSERVICE_WSDL_LOCATION;
+
+ static {
+ URL url = null;
+ try {
+ url = new
URL("http://somehost:8080/jaxws-samples-retail/ProfileMgmtBean?wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ PROFILEMGMTSERVICE_WSDL_LOCATION = url;
+ }
+
+ public ProfileMgmtService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public ProfileMgmtService() {
+ super(PROFILEMGMTSERVICE_WSDL_LOCATION, new
QName("http://org.jboss.ws/samples/retail/profile",
"ProfileMgmtService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns ProfileMgmt
+ */
+ @WebEndpoint(name = "ProfileMgmtPort")
+ public ProfileMgmt getProfileMgmtPort() {
+ return (ProfileMgmt)super.getPort(new
QName("http://org.jboss.ws/samples/retail/profile",
"ProfileMgmtPort"), ProfileMgmt.class);
+ }
+}
Deleted:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/package-info.java
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/package-info.java 2008-03-11
14:02:15 UTC (rev 5915)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/package-info.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -1,2 +0,0 @@
-(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://org.jboss.ws/samples/retail/profile")
-package org.jboss.test.ws.jaxws.samples.retail.profile;
Copied:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/package-info.java
(from rev 5936,
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/retail/profile/package-info.java)
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/package-info.java
(rev 0)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/advanced/retail/profile/package-info.java 2008-03-12
10:23:49 UTC (rev 5937)
@@ -0,0 +1,2 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://org.jboss.ws/samples/retail/profile")
+package org.jboss.test.ws.jaxws.samples.advanced.retail.profile;
Copied: framework/trunk/src/test/resources/jaxws/samples/advanced/retail (from rev 5936,
framework/trunk/src/test/resources/jaxws/samples/retail)