Author: jason.greene(a)jboss.com
Date: 2006-11-23 01:23:52 -0500 (Thu, 23 Nov 2006)
New Revision: 1512
Added:
trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/LastMod_PortType.java
trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/Lastmod.java
trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/LastmodImpl.java
trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/LastmodResponse.java
trunk/src/test/resources/jaxrpc/jbws1303/WEB-INF/jaxrpc-mapping.xml
Removed:
trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/LastModImpl.java
trunk/src/test/resources/jaxrpc/jbws1303/wstools-config.xml
Modified:
trunk/src/test/build.xml
trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/JBWS1303TestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/ServerHandler.java
trunk/src/test/resources/jaxrpc/jbws1303/WEB-INF/web.xml
Log:
Merge JBWS-1311
Fix JBWS-1303 test case
Modified: trunk/src/test/build.xml
===================================================================
--- trunk/src/test/build.xml 2006-11-23 05:43:20 UTC (rev 1511)
+++ trunk/src/test/build.xml 2006-11-23 06:23:52 UTC (rev 1512)
@@ -226,7 +226,6 @@
<src path="${test.java.dir}"/>
<exclude name="org/jboss/test/ws/interop/**"/>
<exclude name="org/jboss/test/ws/jaxrpc/jbws718/**"/>
- <exclude name="org/jboss/test/ws/jaxrpc/jbws1303/**"/>
<classpath refid="javac.classpath"/>
</javac>
</target>
@@ -286,8 +285,6 @@
</taskdef>
<mkdir dir="${build.tests.dir}/wstools/java"/>
<wstools
dest="${build.tests.dir}/wstools/resources/jaxrpc/jbws718/WEB-INF"
config="${test.resources.dir}/jaxrpc/jbws718/wstools-config.xml"/>
- <wstools
dest="${build.tests.dir}/wstools/resources/jaxrpc/jbws1303/WEB-INF"
config="${test.resources.dir}/jaxrpc/jbws1303/wstools-config.xml"/>
- <wstools
dest="${build.tests.dir}/wstools/resources/jaxrpc/samples/docstyle/bare/WEB-INF"
config="${test.resources.dir}/jaxrpc/samples/docstyle/bare/wstools-config.xml"/>
<wstools
dest="${build.tests.dir}/wstools/resources/jaxrpc/samples/docstyle/wrapped/WEB-INF"
config="${test.resources.dir}/jaxrpc/samples/docstyle/wrapped/wstools-config.xml"/>
<wstools
dest="${build.tests.dir}/wstools/resources/jaxrpc/samples/dynamichandler/WEB-INF"
config="${test.resources.dir}/jaxrpc/samples/dynamichandler/wstools-config.xml"/>
<wstools
dest="${build.tests.dir}/wstools/resources/jaxrpc/samples/exception/WEB-INF"
config="${test.resources.dir}/jaxrpc/samples/exception/wstools-config.xml"/>
@@ -309,7 +306,6 @@
<wstools
dest="${build.tests.dir}/wstools/resources/jaxws/samples/wsaddressing/META-INF"
config="${test.resources.dir}/jaxws/samples/wsaddressing/wstools-config.xml"/>
<move todir="${build.tests.dir}/wstools/java">
<fileset
dir="${build.tests.dir}/wstools/resources/jaxrpc/jbws718/WEB-INF"
includes="org/**"/>
- <fileset
dir="${build.tests.dir}/wstools/resources/jaxrpc/jbws1303/WEB-INF"
includes="org/**"/>
<fileset
dir="${build.tests.dir}/wstools/resources/jaxrpc/samples/docstyle/wrapped/WEB-INF"
includes="org/**"/>
</move>
</target>
Modified: trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/JBWS1303TestCase.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/JBWS1303TestCase.java 2006-11-23
05:43:20 UTC (rev 1511)
+++ trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/JBWS1303TestCase.java 2006-11-23
06:23:52 UTC (rev 1512)
@@ -21,7 +21,7 @@
*/
package org.jboss.test.ws.jaxrpc.jbws1303;
-// $Id:JBWS1303TestCase.java 1490 2006-11-21 19:27:40Z thomas.diesler(a)jboss.com $
+// $Id$
import javax.naming.InitialContext;
import javax.xml.rpc.Service;
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/LastModImpl.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/LastModImpl.java 2006-11-23
05:43:20 UTC (rev 1511)
+++ trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/LastModImpl.java 2006-11-23
06:23:52 UTC (rev 1512)
@@ -1,39 +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.jaxrpc.jbws1303;
-
-import java.rmi.RemoteException;
-
-import org.jboss.logging.Logger;
-
-public class LastModImpl implements LastMod_PortType
-{
- // Provide logging
- private static Logger log = Logger.getLogger(LastModImpl.class);
-
- public LastmodResponse lastmod(Lastmod lastmod) throws RemoteException
- {
- String req = lastmod.getLastmodRequest();
- log.info("lastmod: " + req);
- return new LastmodResponse(req);
- }
-}
Added: trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/LastMod_PortType.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/LastMod_PortType.java 2006-11-23
05:43:20 UTC (rev 1511)
+++ trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/LastMod_PortType.java 2006-11-23
06:23:52 UTC (rev 1512)
@@ -0,0 +1,15 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Sun Oct 22 20:21:32 CDT 2006
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+package org.jboss.test.ws.jaxrpc.jbws1303;
+public interface LastMod_PortType extends java.rmi.Remote
+{
+
+ public org.jboss.test.ws.jaxrpc.jbws1303.LastmodResponse
lastmod(org.jboss.test.ws.jaxrpc.jbws1303.Lastmod lastmod) throws
java.rmi.RemoteException;
+}
Property changes on:
trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/LastMod_PortType.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/Lastmod.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/Lastmod.java 2006-11-23 05:43:20
UTC (rev 1511)
+++ trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/Lastmod.java 2006-11-23 06:23:52
UTC (rev 1512)
@@ -0,0 +1,27 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Sun Oct 22 20:21:32 CDT 2006
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package org.jboss.test.ws.jaxrpc.jbws1303;
+
+
+public class Lastmod
+{
+
+protected java.lang.String lastmodRequest;
+public Lastmod(){}
+
+public Lastmod(java.lang.String lastmodRequest){
+this.lastmodRequest=lastmodRequest;
+}
+public java.lang.String getLastmodRequest() { return lastmodRequest ;}
+
+public void setLastmodRequest(java.lang.String lastmodRequest){ this.lastmodRequest =
lastmodRequest; }
+
+}
Property changes on: trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/Lastmod.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/LastmodImpl.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/LastmodImpl.java 2006-11-23
05:43:20 UTC (rev 1511)
+++ trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/LastmodImpl.java 2006-11-23
06:23:52 UTC (rev 1512)
@@ -0,0 +1,39 @@
+/*
+ * 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.jaxrpc.jbws1303;
+
+import java.rmi.RemoteException;
+
+import org.jboss.logging.Logger;
+
+public class LastmodImpl implements LastMod_PortType
+{
+ // Provide logging
+ private static Logger log = Logger.getLogger(LastmodImpl.class);
+
+ public LastmodResponse lastmod(Lastmod lastmod) throws RemoteException
+ {
+ String req = lastmod.getLastmodRequest();
+ log.info("lastmod: " + req);
+ return new LastmodResponse(req);
+ }
+}
Added: trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/LastmodResponse.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/LastmodResponse.java 2006-11-23
05:43:20 UTC (rev 1511)
+++ trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/LastmodResponse.java 2006-11-23
06:23:52 UTC (rev 1512)
@@ -0,0 +1,27 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Sun Oct 22 20:21:32 CDT 2006
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package org.jboss.test.ws.jaxrpc.jbws1303;
+
+
+public class LastmodResponse
+{
+
+protected java.lang.String timeChanged;
+public LastmodResponse(){}
+
+public LastmodResponse(java.lang.String timeChanged){
+this.timeChanged=timeChanged;
+}
+public java.lang.String getTimeChanged() { return timeChanged ;}
+
+public void setTimeChanged(java.lang.String timeChanged){ this.timeChanged=timeChanged;
}
+
+}
Property changes on:
trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/LastmodResponse.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/ServerHandler.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/ServerHandler.java 2006-11-23
05:43:20 UTC (rev 1511)
+++ trunk/src/test/java/org/jboss/test/ws/jaxrpc/jbws1303/ServerHandler.java 2006-11-23
06:23:52 UTC (rev 1512)
@@ -40,11 +40,13 @@
}
/**
- * <env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+ * <env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'
+ *
xmlns:xsi='http://www.w3c.org/2001/XMLSchema-instance'
+ &
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
* <env:Header/>
* <env:Body>
* <lastmodResponse xmlns='http://netid.msu.edu:8080/lastmod.pl'>
- * <TimeChanged
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:type='xsd:string'>yesterday</TimeChanged>
+ * <TimeChanged xsi:type='xsd:string'>yesterday</TimeChanged>
* </lastmodResponse>
* </env:Body>
* </env:Envelope>
@@ -56,10 +58,10 @@
SOAPMessage soapMessage = MessageFactory.newInstance().createMessage();
SOAPEnvelope soapEnvelope = soapMessage.getSOAPPart().getEnvelope();
soapEnvelope.addNamespaceDeclaration(Constants.PREFIX_XSD,
Constants.NS_SCHEMA_XSD);
+ soapEnvelope.addNamespaceDeclaration(Constants.PREFIX_XSI,
Constants.NS_SCHEMA_XSI);
SOAPElement bodyElement =
soapMessage.getSOAPBody().addChildElement("lastmodResponse");
bodyElement.setAttribute("xmlns",
"http://netid.msu.edu:8080/lastmod.pl");
SOAPElement soapElement = bodyElement.addChildElement("TimeChanged");
- soapElement.addNamespaceDeclaration(Constants.PREFIX_XSI,
Constants.NS_SCHEMA_XSI);
soapElement.setAttribute("xsi:type", "xsd:string");
soapElement.setValue("yesterday");
((SOAPMessageContext)msgContext).setMessage(soapMessage);
Added: trunk/src/test/resources/jaxrpc/jbws1303/WEB-INF/jaxrpc-mapping.xml
===================================================================
--- trunk/src/test/resources/jaxrpc/jbws1303/WEB-INF/jaxrpc-mapping.xml 2006-11-23
05:43:20 UTC (rev 1511)
+++ trunk/src/test/resources/jaxrpc/jbws1303/WEB-INF/jaxrpc-mapping.xml 2006-11-23
06:23:52 UTC (rev 1512)
@@ -0,0 +1,55 @@
+<?xml version='1.0' encoding='UTF-8'?><java-wsdl-mapping
version='1.1'
xmlns='http://java.sun.com/xml/ns/j2ee'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd'>
+ <package-mapping>
+ <package-type>org.jboss.test.ws.jaxrpc.jbws1303</package-type>
+ <namespaceURI>http://netid.msu.edu:8080/lastmod.pl</namespaceURI>
+ </package-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.test.ws.jaxrpc.jbws1303.Lastmod</java-type>
+ <anonymous-type-qname
xmlns:typeNS='http://netid.msu.edu:8080/lastmod.pl'>typeNS:>lastmod</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>lastmodRequest</java-variable-name>
+ <xml-element-name>lastmodRequest</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.test.ws.jaxrpc.jbws1303.LastmodResponse</java-type>
+ <anonymous-type-qname
xmlns:typeNS='http://netid.msu.edu:8080/lastmod.pl'>typeNS:>lastmodResponse</anonymous-type-qname>
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>timeChanged</java-variable-name>
+ <xml-element-name>TimeChanged</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <service-interface-mapping>
+
<service-interface>org.jboss.test.ws.jaxrpc.jbws1303.LastMod</service-interface>
+ <wsdl-service-name
xmlns:serviceNS='http://netid.msu.edu:8080/lastmod.pl'>serviceNS:LastMod</wsdl-service-name>
+ <port-mapping>
+ <port-name>LastModPort</port-name>
+ <java-port-name>LastModPort</java-port-name>
+ </port-mapping>
+ </service-interface-mapping>
+ <service-endpoint-interface-mapping>
+
<service-endpoint-interface>org.jboss.test.ws.jaxrpc.jbws1303.LastMod_PortType</service-endpoint-interface>
+ <wsdl-port-type
xmlns:portTypeNS='http://netid.msu.edu:8080/lastmod.pl'>portTypeNS:LastModPortType</wsdl-port-type>
+ <wsdl-binding
xmlns:bindingNS='http://netid.msu.edu:8080/lastmod.pl'>bindingNS:LastModBinding</wsdl-binding>
+ <service-endpoint-method-mapping>
+ <java-method-name>lastmod</java-method-name>
+ <wsdl-operation>lastmod</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+ <param-type>org.jboss.test.ws.jaxrpc.jbws1303.Lastmod</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message
xmlns:wsdlMsgNS='http://netid.msu.edu:8080/lastmod.pl'>wsdlMsgNS:lastmodInput</wsdl-message>
+ <wsdl-message-part-name>parameters</wsdl-message-part-name>
+ <parameter-mode>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping>
+
<method-return-value>org.jboss.test.ws.jaxrpc.jbws1303.LastmodResponse</method-return-value>
+ <wsdl-message
xmlns:wsdlMsgNS='http://netid.msu.edu:8080/lastmod.pl'>wsdlMsgNS:lastmodOutput</wsdl-message>
+ <wsdl-message-part-name>result</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ </service-endpoint-interface-mapping>
+</java-wsdl-mapping>
Property changes on: trunk/src/test/resources/jaxrpc/jbws1303/WEB-INF/jaxrpc-mapping.xml
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: trunk/src/test/resources/jaxrpc/jbws1303/WEB-INF/web.xml
===================================================================
--- trunk/src/test/resources/jaxrpc/jbws1303/WEB-INF/web.xml 2006-11-23 05:43:20 UTC (rev
1511)
+++ trunk/src/test/resources/jaxrpc/jbws1303/WEB-INF/web.xml 2006-11-23 06:23:52 UTC (rev
1512)
@@ -7,7 +7,7 @@
<servlet>
<servlet-name>LastMod</servlet-name>
-
<servlet-class>org.jboss.test.ws.jaxrpc.jbws1303.LastModImpl</servlet-class>
+
<servlet-class>org.jboss.test.ws.jaxrpc.jbws1303.LastmodImpl</servlet-class>
</servlet>
<servlet-mapping>
Deleted: trunk/src/test/resources/jaxrpc/jbws1303/wstools-config.xml
===================================================================
--- trunk/src/test/resources/jaxrpc/jbws1303/wstools-config.xml 2006-11-23 05:43:20 UTC
(rev 1511)
+++ trunk/src/test/resources/jaxrpc/jbws1303/wstools-config.xml 2006-11-23 06:23:52 UTC
(rev 1512)
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- wstools -config wstools-config.xml
--->
-
-<configuration
xmlns="http://www.jboss.org/jbossws-tools"
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://www.jboss.org/jbossws-tools
-
http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd">
-
- <global>
- <package-namespace package="org.jboss.test.ws.jaxrpc.jbws1303"
namespace="http://netid.msu.edu:8080/lastmod.pl"/>
- </global>
-
- <wsdl-java
location="resources/jaxrpc/jbws1303/WEB-INF/wsdl/lastmodified.wsdl"
parameter-style="bare">
- <mapping file="jaxrpc-mapping.xml" />
- </wsdl-java>
-
-</configuration>