Author: thomas.diesler(a)jboss.com
Date: 2007-05-22 03:40:33 -0400 (Tue, 22 May 2007)
New Revision: 3174
Added:
trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/DocWrapped.java
trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/DocWrappedServiceImpl.java
trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/PurchaseOrder.java
trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/PurchaseOrderAck.java
Log:
Fix tools dependency on jaxws samples
Added: trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/DocWrapped.java
===================================================================
--- trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/DocWrapped.java
(rev 0)
+++
trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/DocWrapped.java 2007-05-22
07:40:33 UTC (rev 3174)
@@ -0,0 +1,45 @@
+/*
+ * 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.tools.jaxws;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+@WebService(name = "DocWrapped")
+@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL,
parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
+public interface DocWrapped
+{
+ @WebMethod(operationName = "SubmitPO")
+ @WebResult(name = "PurchaseOrderAck")
+ public PurchaseOrderAck submitPO(@WebParam(name = "PurchaseOrder")
+ PurchaseOrder purchaseOrder);
+
+ @WebMethod(operationName = "SubmitNamespacedPO")
+ @WebResult(name = "NamespacedPurchaseOrderAck", targetNamespace =
"http://namespace/result")
+ public PurchaseOrderAck submitNamespacedPO(
+ @WebParam(name = "NamespacedPurchaseOrder", targetNamespace =
"http://namespace/purchase")
+ PurchaseOrder purchaseOrder, @WebParam(name = "NamespacedString",
targetNamespace = "http://namespace/string")
+ String string);
+}
\ No newline at end of file
Property changes on:
trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/DocWrapped.java
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/DocWrappedServiceImpl.java
===================================================================
---
trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/DocWrappedServiceImpl.java
(rev 0)
+++
trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/DocWrappedServiceImpl.java 2007-05-22
07:40:33 UTC (rev 3174)
@@ -0,0 +1,55 @@
+/*
+ * 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.tools.jaxws;
+
+import javax.jws.WebService;
+
+import org.jboss.logging.Logger;
+
+/**
+ * Test the JSR-181 annotation: javax.jws.SOAPBinding
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @author <a href="mailto:jason.greene@jboss.com">Jason T.
Greene</a>
+ * @since 16-Oct-2005
+ */
+
+@WebService(endpointInterface =
"org.jboss.test.ws.jaxws.samples.soapbinding.DocWrapped",
name="DocWrapped")
+public class DocWrappedServiceImpl implements DocWrapped
+{
+ // Provide logging
+ private static Logger log = Logger.getLogger(DocWrappedServiceImpl.class);
+
+ public PurchaseOrderAck submitPO(PurchaseOrder purchaseOrder)
+ {
+ log.info("submitPO: " + purchaseOrder);
+ PurchaseOrderAck poAck = new PurchaseOrderAck(purchaseOrder.getProduct());
+ return poAck;
+ }
+
+ public PurchaseOrderAck submitNamespacedPO(PurchaseOrder purchaseOrder, String
string)
+ {
+ log.info("submitNamespacedPO: " + purchaseOrder + ", " +
string);
+ PurchaseOrderAck poAck = new PurchaseOrderAck(purchaseOrder.getProduct());
+ return poAck;
+ }
+}
Property changes on:
trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/DocWrappedServiceImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/PurchaseOrder.java
===================================================================
--- trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/PurchaseOrder.java
(rev 0)
+++
trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/PurchaseOrder.java 2007-05-22
07:40:33 UTC (rev 3174)
@@ -0,0 +1,55 @@
+/*
+ * 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.tools.jaxws;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "PurchaseOrderType",
namespace="http://soapbinding.samples.jaxws.ws.test.jboss.org/", propOrder = {
"product" })
+public class PurchaseOrder
+{
+ @XmlElement(namespace="http://soapbinding.samples.jaxws.ws.test.jboss.org/",
required = true)
+ private String product;
+
+ public PurchaseOrder()
+ {
+ }
+
+ public PurchaseOrder(String product)
+ {
+ this.product = product;
+ }
+
+ public String getProduct()
+ {
+ return product;
+ }
+
+ public void setProduct(String product)
+ {
+ this.product = product;
+ }
+}
Property changes on:
trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/PurchaseOrder.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/PurchaseOrderAck.java
===================================================================
--- trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/PurchaseOrderAck.java
(rev 0)
+++
trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/PurchaseOrderAck.java 2007-05-22
07:40:33 UTC (rev 3174)
@@ -0,0 +1,55 @@
+/*
+ * 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.tools.jaxws;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "PurchaseOrderAckType",
namespace="http://soapbinding.samples.jaxws.ws.test.jboss.org/", propOrder = {
"product" })
+public class PurchaseOrderAck
+{
+ @XmlElement(namespace="http://soapbinding.samples.jaxws.ws.test.jboss.org/",
required = true)
+ private String product;
+
+ public PurchaseOrderAck()
+ {
+ }
+
+ public PurchaseOrderAck(String product)
+ {
+ this.product = product;
+ }
+
+ public String getProduct()
+ {
+ return product;
+ }
+
+ public void setProduct(String product)
+ {
+ this.product = product;
+ }
+}
Property changes on:
trunk/jbossws-core/src/test/java/org/jboss/test/ws/tools/jaxws/PurchaseOrderAck.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF