[jbossws-commits] JBossWS SVN: r18581 - in stack/cxf/trunk/modules/testsuite/shared-tests/src/test: java/org/jboss/test/ws/jaxws and 1 other directories.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Tue Apr 22 11:34:00 EDT 2014


Author: asoldano
Date: 2014-04-22 11:34:00 -0400 (Tue, 22 Apr 2014)
New Revision: 18581

Added:
   stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/
   stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/Adapter1.java
   stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/CalendarEndpoint.java
   stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/CalendarEndpointImpl.java
   stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/CalendarTestCase.java
   stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoCalendar.java
   stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoCalendarResponse.java
   stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoXMLGregorianCalendar.java
   stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoXMLGregorianCalendarResponse.java
   stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/ObjectFactory.java
   stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/package-info.java
Modified:
   stack/cxf/trunk/modules/testsuite/shared-tests/src/test/ant-import/build-jars-jaxws.xml
Log:
Adding a testcase on jaxb databinding (in particular on Calendar / XMLCalendar) and XmlAdapter


Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/ant-import/build-jars-jaxws.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/ant-import/build-jars-jaxws.xml	2014-04-22 09:40:40 UTC (rev 18580)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/ant-import/build-jars-jaxws.xml	2014-04-22 15:34:00 UTC (rev 18581)
@@ -32,28 +32,28 @@
 
 	<target name="build-jars-jaxws" description="Build the deployments.">
 
-	    <!-- endpoint-publish.war -->  	
-	    <war warfile="${tests.output.dir}/test-libs/endpoint-publish.war" needxmlfile='false'>
-	      <classes dir="${tests.output.dir}/test-classes">
-	        <include name="org/jboss/test/ws/publish/**/*.class"/>
-	      	<include name="org/jboss/test/ws/publish/EndpointImpl5.xml"/>
-	      	<include name="org/jboss/test/ws/publish/TestService.xml"/>
-	        <exclude name="org/jboss/test/ws/publish/*TestCase.class"/>
-	      </classes>
-	      <classes dir="${tests.output.dir}/test-classes/org/jboss/test/ws/publish">
-	        <include name="WEB-INF/wsdl/**" />
-	      </classes>
-	      <webinf dir="${tests.output.dir}/test-resources/publish/WEB-INF">
-	      	<include name="wsdl/**"/>
-	      </webinf>
-	      <zipfileset dir="${tests.output.dir}/test-resources/publish/META-INF" prefix="META-INF">
-	        <include name="permissions.xml"/>
-	      </zipfileset>
-	      <manifest>
-	        <attribute name="Dependencies" value="org.jboss.ws.common" />
-	      </manifest>
-	    </war>
-	  	
+		<!-- endpoint-publish.war -->
+		<war warfile="${tests.output.dir}/test-libs/endpoint-publish.war" needxmlfile='false'>
+			<classes dir="${tests.output.dir}/test-classes">
+				<include name="org/jboss/test/ws/publish/**/*.class" />
+				<include name="org/jboss/test/ws/publish/EndpointImpl5.xml" />
+				<include name="org/jboss/test/ws/publish/TestService.xml" />
+				<exclude name="org/jboss/test/ws/publish/*TestCase.class" />
+			</classes>
+			<classes dir="${tests.output.dir}/test-classes/org/jboss/test/ws/publish">
+				<include name="WEB-INF/wsdl/**" />
+			</classes>
+			<webinf dir="${tests.output.dir}/test-resources/publish/WEB-INF">
+				<include name="wsdl/**" />
+			</webinf>
+			<zipfileset dir="${tests.output.dir}/test-resources/publish/META-INF" prefix="META-INF">
+				<include name="permissions.xml" />
+			</zipfileset>
+			<manifest>
+				<attribute name="Dependencies" value="org.jboss.ws.common" />
+			</manifest>
+		</war>
+
 		<!-- jaxws-anonymous -->
 		<war warfile="${tests.output.dir}/test-libs/jaxws-anonymous.war" webxml="${tests.output.dir}/test-resources/jaxws/anonymous/WEB-INF/web.xml">
 			<classes dir="${tests.output.dir}/test-classes">
@@ -116,6 +116,17 @@
 			</classes>
 		</war>
 
+		<!-- jaxws-calendar -->
+		<war warfile="${tests.output.dir}/test-libs/jaxws-calendar.war" needxmlfile="false">
+			<classes dir="${tests.output.dir}/test-classes">
+				<include name="org/jboss/test/ws/jaxws/calendar/CalendarEndpoint*.class" />
+				<include name="org/jboss/test/ws/jaxws/calendar/Echo*.class" />
+				<include name="org/jboss/test/ws/jaxws/calendar/Adapter*.class" />
+				<include name="org/jboss/test/ws/jaxws/calendar/package-info.class" />
+				<include name="org/jboss/test/ws/jaxws/calendar/ObjectFactory*.class" />
+			</classes>
+		</war>
+
 		<!-- jaxws-classloading-service -->
 		<jar destfile="${tests.output.dir}/test-libs/jaxws-classloading-service.jar">
 			<fileset dir="${tests.output.dir}/test-classes">
@@ -153,7 +164,7 @@
 				<include name="META-INF/jaxws-client-config.xml" />
 			</classes>
 			<zipfileset dir="${tests.output.dir}/test-resources/jaxws/clientConfig/META-INF" prefix="META-INF">
-				<include name="permissions.xml"/>
+				<include name="permissions.xml" />
 			</zipfileset>
 			<manifest>
 				<attribute name="Dependencies" value="org.jboss.ws.common" />
@@ -1218,7 +1229,7 @@
 			<webinf dir="${tests.output.dir}/test-resources/jaxws/jbws3223/WEB-INF">
 				<include name="wsdl/**" />
 			</webinf>
-            <manifest>
+			<manifest>
 				<attribute name="Dependencies" value="org.jboss.ws.common" />
 			</manifest>
 		</war>

Added: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/Adapter1.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/Adapter1.java	                        (rev 0)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/Adapter1.java	2014-04-22 15:34:00 UTC (rev 18581)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.calendar;
+
+import java.util.Calendar;
+import javax.xml.bind.annotation.adapters.XmlAdapter;
+
+public class Adapter1 extends XmlAdapter<String, Calendar>
+{
+
+   public Calendar unmarshal(String value)
+   {
+      if (value == null || value.trim().length() == 0) {
+         return null;
+      }
+      return (javax.xml.bind.DatatypeConverter.parseDateTime(value));
+   }
+
+   public String marshal(Calendar value)
+   {
+      if (value == null)
+      {
+         return null;
+      }
+      return (javax.xml.bind.DatatypeConverter.printDateTime(value));
+   }
+
+}


Property changes on: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/Adapter1.java
___________________________________________________________________
Added: svn:keywords
   + Rev Date
Added: svn:eol-style
   + native

Added: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/CalendarEndpoint.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/CalendarEndpoint.java	                        (rev 0)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/CalendarEndpoint.java	2014-04-22 15:34:00 UTC (rev 18581)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.calendar;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+ at WebService(targetNamespace = "http://org.jboss.ws/jaxws/calendar", name = "CalendarEndpoint")
+ at XmlSeeAlso({ObjectFactory.class})
+public interface CalendarEndpoint {
+
+    @WebResult(name = "return", targetNamespace = "")
+    @RequestWrapper(localName = "echoXMLGregorianCalendar", targetNamespace = "http://org.jboss.ws/jaxws/calendar", className = "org.jboss.test.ws.jaxws.calendar.EchoXMLGregorianCalendar")
+    @WebMethod
+    @ResponseWrapper(localName = "echoXMLGregorianCalendarResponse", targetNamespace = "http://org.jboss.ws/jaxws/calendar", className = "org.jboss.test.ws.jaxws.calendar.EchoXMLGregorianCalendarResponse")
+    public java.lang.Object echoXMLGregorianCalendar(
+        @WebParam(name = "arg0", targetNamespace = "")
+        java.lang.Object arg0
+    );
+
+    @WebResult(name = "return", targetNamespace = "")
+    @RequestWrapper(localName = "echoCalendar", targetNamespace = "http://org.jboss.ws/jaxws/calendar", className = "org.jboss.test.ws.jaxws.calendar.EchoCalendar")
+    @WebMethod
+    @ResponseWrapper(localName = "echoCalendarResponse", targetNamespace = "http://org.jboss.ws/jaxws/calendar", className = "org.jboss.test.ws.jaxws.calendar.EchoCalendarResponse")
+    public java.util.Calendar echoCalendar(
+        @WebParam(name = "arg0", targetNamespace = "")
+        java.util.Calendar arg0
+    );
+}


Property changes on: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/CalendarEndpoint.java
___________________________________________________________________
Added: svn:keywords
   + Rev Date
Added: svn:eol-style
   + native

Added: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/CalendarEndpointImpl.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/CalendarEndpointImpl.java	                        (rev 0)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/CalendarEndpointImpl.java	2014-04-22 15:34:00 UTC (rev 18581)
@@ -0,0 +1,61 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.calendar;
+
+import java.util.Calendar;
+
+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.ResponseWrapper;
+
+ at WebService(targetNamespace = "http://org.jboss.ws/jaxws/calendar",
+            name = "CalendarEndpoint",
+            portName = "EndpointPort",
+            serviceName = "EndpointService",
+            endpointInterface = "org.jboss.test.ws.jaxws.calendar.CalendarEndpoint")
+public class CalendarEndpointImpl implements CalendarEndpoint
+{
+
+   @Override
+   @WebResult(name = "return", targetNamespace = "")
+   @RequestWrapper(localName = "echoXMLGregorianCalendar", targetNamespace = "http://org.jboss.ws/jaxws/calendar", className = "org.jboss.test.ws.jaxws.calendar.EchoXMLGregorianCalendar")
+   @WebMethod
+   @ResponseWrapper(localName = "echoXMLGregorianCalendarResponse", targetNamespace = "http://org.jboss.ws/jaxws/calendar", className = "org.jboss.test.ws.jaxws.calendar.EchoXMLGregorianCalendarResponse")
+   public Object echoXMLGregorianCalendar(@WebParam(name = "arg0", targetNamespace = "") Object arg0)
+   {
+      return arg0;
+   }
+
+   @Override
+   @WebResult(name = "return", targetNamespace = "")
+   @RequestWrapper(localName = "echoCalendar", targetNamespace = "http://org.jboss.ws/jaxws/calendar", className = "org.jboss.test.ws.jaxws.calendar.EchoCalendar")
+   @WebMethod
+   @ResponseWrapper(localName = "echoCalendarResponse", targetNamespace = "http://org.jboss.ws/jaxws/calendar", className = "org.jboss.test.ws.jaxws.calendar.EchoCalendarResponse")
+   public Calendar echoCalendar(@WebParam(name = "arg0", targetNamespace = "") Calendar arg0)
+   {
+      return arg0;
+   }
+
+}


Property changes on: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/CalendarEndpointImpl.java
___________________________________________________________________
Added: svn:keywords
   + Rev Date
Added: svn:eol-style
   + native

Added: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/CalendarTestCase.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/CalendarTestCase.java	                        (rev 0)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/CalendarTestCase.java	2014-04-22 15:34:00 UTC (rev 18581)
@@ -0,0 +1,99 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.calendar;
+
+import java.io.ByteArrayInputStream;
+import java.net.URL;
+import java.util.Calendar;
+
+import javax.xml.datatype.DatatypeFactory;
+import javax.xml.datatype.XMLGregorianCalendar;
+import javax.xml.namespace.QName;
+import javax.xml.soap.MessageFactory;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.Dispatch;
+import javax.xml.ws.Service;
+import javax.xml.ws.Service.Mode;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Test calendar type binding
+ *
+ * @author alessio.soldano at jboss.com
+ * @since 22-Apr-2014
+ */
+public class CalendarTestCase extends JBossWSTest
+{
+   public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-calendar/EndpointService";
+
+   public static Test suite()
+   {
+      return new JBossWSTestSetup(CalendarTestCase.class, "jaxws-calendar.war");
+   }
+
+   public void testCalendar() throws Exception
+   {
+      URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+      QName qname = new QName("http://org.jboss.ws/jaxws/calendar", "EndpointService");
+      Service service = Service.create(wsdlURL, qname);
+      CalendarEndpoint port = service.getPort(CalendarEndpoint.class);
+
+      Calendar calendar = Calendar.getInstance();
+      
+      Calendar response = port.echoCalendar(calendar);
+      assertEquals(calendar.getTimeInMillis(), response.getTimeInMillis());
+   }
+
+   public void testXMLGregorianCalendar() throws Exception
+   {
+      URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+      QName qname = new QName("http://org.jboss.ws/jaxws/calendar", "EndpointService");
+      Service service = Service.create(wsdlURL, qname);
+      CalendarEndpoint port = service.getPort(CalendarEndpoint.class);
+
+      DatatypeFactory calFactory = DatatypeFactory.newInstance();
+      XMLGregorianCalendar calendar = calFactory.newXMLGregorianCalendar(2002, 4, 5, 0, 0, 0, 0, 0);
+      
+      Object response = port.echoXMLGregorianCalendar(calendar);
+      assertEquals("2002-04-05T00:00:00.000Z", response.toString());
+   }
+   
+   public void testEmptyCalendar() throws Exception {
+      URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+      QName qname = new QName("http://org.jboss.ws/jaxws/calendar", "EndpointService");
+      Service service = Service.create(wsdlURL, qname);
+
+      Dispatch<SOAPMessage> dispatch = service.createDispatch(new QName("http://org.jboss.ws/jaxws/calendar", "EndpointPort"), SOAPMessage.class, Mode.MESSAGE);
+
+      String reqEnv = "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><ns2:echoCalendar xmlns:ns2=\"http://org.jboss.ws/jaxws/calendar\"><arg0/></ns2:echoCalendar></soap:Body></soap:Envelope>";
+
+      SOAPMessage reqMsg = MessageFactory.newInstance().createMessage(null, new ByteArrayInputStream(reqEnv.getBytes()));
+      SOAPMessage resMsg = dispatch.invoke(reqMsg);
+
+      assertNotNull(resMsg);
+      //TODO improve checks
+   }
+}


Property changes on: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/CalendarTestCase.java
___________________________________________________________________
Added: svn:keywords
   + Rev Date
Added: svn:eol-style
   + native

Added: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoCalendar.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoCalendar.java	                        (rev 0)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoCalendar.java	2014-04-22 15:34:00 UTC (rev 18581)
@@ -0,0 +1,87 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.calendar;
+
+import java.util.Calendar;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+
+/**
+ * <p>Java class for echoCalendar complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="echoCalendar">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="arg0" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "echoCalendar", propOrder = {
+    "arg0"
+})
+public class EchoCalendar {
+
+    @XmlElement(type = String.class)
+    @XmlJavaTypeAdapter(Adapter1 .class)
+    @XmlSchemaType(name = "dateTime")
+    protected Calendar arg0;
+
+    /**
+     * Gets the value of the arg0 property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public Calendar getArg0() {
+        return arg0;
+    }
+
+    /**
+     * Sets the value of the arg0 property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setArg0(Calendar value) {
+        this.arg0 = value;
+    }
+
+}


Property changes on: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoCalendar.java
___________________________________________________________________
Added: svn:keywords
   + Rev Date
Added: svn:eol-style
   + native

Added: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoCalendarResponse.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoCalendarResponse.java	                        (rev 0)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoCalendarResponse.java	2014-04-22 15:34:00 UTC (rev 18581)
@@ -0,0 +1,87 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.calendar;
+
+import java.util.Calendar;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+
+/**
+ * <p>Java class for echoCalendarResponse complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="echoCalendarResponse">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="return" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "echoCalendarResponse", propOrder = {
+    "_return"
+})
+public class EchoCalendarResponse {
+
+    @XmlElement(name = "return", type = String.class)
+    @XmlJavaTypeAdapter(Adapter1 .class)
+    @XmlSchemaType(name = "dateTime")
+    protected Calendar _return;
+
+    /**
+     * Gets the value of the return property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public Calendar getReturn() {
+        return _return;
+    }
+
+    /**
+     * Sets the value of the return property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setReturn(Calendar value) {
+        this._return = value;
+    }
+
+}


Property changes on: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoCalendarResponse.java
___________________________________________________________________
Added: svn:keywords
   + Rev Date
Added: svn:eol-style
   + native

Added: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoXMLGregorianCalendar.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoXMLGregorianCalendar.java	                        (rev 0)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoXMLGregorianCalendar.java	2014-04-22 15:34:00 UTC (rev 18581)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.calendar;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for echoXMLGregorianCalendar complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="echoXMLGregorianCalendar">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="arg0" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" minOccurs="0"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "echoXMLGregorianCalendar", propOrder = {
+    "arg0"
+})
+public class EchoXMLGregorianCalendar {
+
+    @XmlSchemaType(name = "anySimpleType")
+    protected Object arg0;
+
+    /**
+     * Gets the value of the arg0 property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link Object }
+     *     
+     */
+    public Object getArg0() {
+        return arg0;
+    }
+
+    /**
+     * Sets the value of the arg0 property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link Object }
+     *     
+     */
+    public void setArg0(Object value) {
+        this.arg0 = value;
+    }
+
+}


Property changes on: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoXMLGregorianCalendar.java
___________________________________________________________________
Added: svn:keywords
   + Rev Date
Added: svn:eol-style
   + native

Added: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoXMLGregorianCalendarResponse.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoXMLGregorianCalendarResponse.java	                        (rev 0)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoXMLGregorianCalendarResponse.java	2014-04-22 15:34:00 UTC (rev 18581)
@@ -0,0 +1,84 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.calendar;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for echoXMLGregorianCalendarResponse complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="echoXMLGregorianCalendarResponse">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="return" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" minOccurs="0"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "echoXMLGregorianCalendarResponse", propOrder = {
+    "_return"
+})
+public class EchoXMLGregorianCalendarResponse {
+
+    @XmlElement(name = "return")
+    @XmlSchemaType(name = "anySimpleType")
+    protected Object _return;
+
+    /**
+     * Gets the value of the return property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link Object }
+     *     
+     */
+    public Object getReturn() {
+        return _return;
+    }
+
+    /**
+     * Sets the value of the return property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link Object }
+     *     
+     */
+    public void setReturn(Object value) {
+        this._return = value;
+    }
+
+}


Property changes on: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/EchoXMLGregorianCalendarResponse.java
___________________________________________________________________
Added: svn:keywords
   + Rev Date
Added: svn:eol-style
   + native

Added: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/ObjectFactory.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/ObjectFactory.java	                        (rev 0)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/ObjectFactory.java	2014-04-22 15:34:00 UTC (rev 18581)
@@ -0,0 +1,127 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.calendar;
+
+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.calendar 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.
+ * 
+ */
+ at XmlRegistry
+public class ObjectFactory {
+
+    private final static QName _EchoXMLGregorianCalendar_QNAME = new QName("http://org.jboss.ws/jaxws/calendar", "echoXMLGregorianCalendar");
+    private final static QName _EchoCalendar_QNAME = new QName("http://org.jboss.ws/jaxws/calendar", "echoCalendar");
+    private final static QName _EchoCalendarResponse_QNAME = new QName("http://org.jboss.ws/jaxws/calendar", "echoCalendarResponse");
+    private final static QName _EchoXMLGregorianCalendarResponse_QNAME = new QName("http://org.jboss.ws/jaxws/calendar", "echoXMLGregorianCalendarResponse");
+
+    /**
+     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.calendar
+     * 
+     */
+    public ObjectFactory() {
+    }
+
+    /**
+     * Create an instance of {@link EchoXMLGregorianCalendar }
+     * 
+     */
+    public EchoXMLGregorianCalendar createEchoXMLGregorianCalendar() {
+        return new EchoXMLGregorianCalendar();
+    }
+
+    /**
+     * Create an instance of {@link EchoCalendarResponse }
+     * 
+     */
+    public EchoCalendarResponse createEchoCalendarResponse() {
+        return new EchoCalendarResponse();
+    }
+
+    /**
+     * Create an instance of {@link EchoXMLGregorianCalendarResponse }
+     * 
+     */
+    public EchoXMLGregorianCalendarResponse createEchoXMLGregorianCalendarResponse() {
+        return new EchoXMLGregorianCalendarResponse();
+    }
+
+    /**
+     * Create an instance of {@link EchoCalendar }
+     * 
+     */
+    public EchoCalendar createEchoCalendar() {
+        return new EchoCalendar();
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link EchoXMLGregorianCalendar }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "http://org.jboss.ws/jaxws/calendar", name = "echoXMLGregorianCalendar")
+    public JAXBElement<EchoXMLGregorianCalendar> createEchoXMLGregorianCalendar(EchoXMLGregorianCalendar value) {
+        return new JAXBElement<EchoXMLGregorianCalendar>(_EchoXMLGregorianCalendar_QNAME, EchoXMLGregorianCalendar.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link EchoCalendar }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "http://org.jboss.ws/jaxws/calendar", name = "echoCalendar")
+    public JAXBElement<EchoCalendar> createEchoCalendar(EchoCalendar value) {
+        return new JAXBElement<EchoCalendar>(_EchoCalendar_QNAME, EchoCalendar.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link EchoCalendarResponse }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "http://org.jboss.ws/jaxws/calendar", name = "echoCalendarResponse")
+    public JAXBElement<EchoCalendarResponse> createEchoCalendarResponse(EchoCalendarResponse value) {
+        return new JAXBElement<EchoCalendarResponse>(_EchoCalendarResponse_QNAME, EchoCalendarResponse.class, null, value);
+    }
+
+    /**
+     * Create an instance of {@link JAXBElement }{@code <}{@link EchoXMLGregorianCalendarResponse }{@code >}}
+     * 
+     */
+    @XmlElementDecl(namespace = "http://org.jboss.ws/jaxws/calendar", name = "echoXMLGregorianCalendarResponse")
+    public JAXBElement<EchoXMLGregorianCalendarResponse> createEchoXMLGregorianCalendarResponse(EchoXMLGregorianCalendarResponse value) {
+        return new JAXBElement<EchoXMLGregorianCalendarResponse>(_EchoXMLGregorianCalendarResponse_QNAME, EchoXMLGregorianCalendarResponse.class, null, value);
+    }
+
+}


Property changes on: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/ObjectFactory.java
___________________________________________________________________
Added: svn:keywords
   + Rev Date
Added: svn:eol-style
   + native

Added: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/package-info.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/package-info.java	                        (rev 0)
+++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/package-info.java	2014-04-22 15:34:00 UTC (rev 18581)
@@ -0,0 +1,23 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.
+ */
+ at javax.xml.bind.annotation.XmlSchema(namespace = "http://org.jboss.ws/jaxws/calendar")
+package org.jboss.test.ws.jaxws.calendar;


Property changes on: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/calendar/package-info.java
___________________________________________________________________
Added: svn:keywords
   + Rev Date
Added: svn:eol-style
   + native



More information about the jbossws-commits mailing list