[jboss-svn-commits] JBossWS SVN: r957 - in branches/jbossws-1.0.3.jbws1186: . .settings src/test/ant src/test/java/org/jboss/test/ws src/test/java/org/jboss/test/ws/jaxrpc src/test/java/org/jboss/test/ws/jaxrpc/jbws1186 src/test/java/org/jboss/test/ws/samples src/test/resources src/test/resources/jaxrpc src/test/resources/jaxrpc/jbws1186 src/test/resources/jaxrpc/jbws1186/WEB-INF src/test/resources/jaxrpc/jbws1186/WEB-INF/wsdl

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Sep 14 18:08:33 EDT 2006


Author: thomas.diesler at jboss.com
Date: 2006-09-14 18:08:23 -0400 (Thu, 14 Sep 2006)
New Revision: 957

Added:
   branches/jbossws-1.0.3.jbws1186/.settings/org.eclipse.core.resources.prefs
   branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/
   branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/
   branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/JBWS1186TestCase.java
   branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/TestEndpoint.java
   branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/TestEndpointImpl.java
   branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/UserType.java
   branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/
   branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/
   branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/
   branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/jaxrpc-mapping.xml
   branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/web.xml
   branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/webservices.xml
   branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/wsdl/
   branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/wsdl/TestService.wsdl
   branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/wstools-config.xml
Removed:
   branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/samples/wsbpel/
Modified:
   branches/jbossws-1.0.3.jbws1186/.project
   branches/jbossws-1.0.3.jbws1186/src/test/ant/build-jars.xml
Log:
[JBWS-1186] The prefix "xsi" for attribute "xsi:nil" is not bound
Add the test case

Modified: branches/jbossws-1.0.3.jbws1186/.project
===================================================================
--- branches/jbossws-1.0.3.jbws1186/.project	2006-09-14 20:52:04 UTC (rev 956)
+++ branches/jbossws-1.0.3.jbws1186/.project	2006-09-14 22:08:23 UTC (rev 957)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <projectDescription>
-	<name>jbossws-1.0</name>
+	<name>jbossws-1.0.3.jbws1186</name>
 	<comment></comment>
 	<projects>
 	</projects>

Added: branches/jbossws-1.0.3.jbws1186/.settings/org.eclipse.core.resources.prefs
===================================================================
--- branches/jbossws-1.0.3.jbws1186/.settings/org.eclipse.core.resources.prefs	2006-09-14 20:52:04 UTC (rev 956)
+++ branches/jbossws-1.0.3.jbws1186/.settings/org.eclipse.core.resources.prefs	2006-09-14 22:08:23 UTC (rev 957)
@@ -0,0 +1,4 @@
+#Thu Sep 14 23:43:41 CEST 2006
+eclipse.preferences.version=1
+encoding//src/test/resources/jaxrpc/jbws1186/WEB-INF/wsdl/TestService.wsdl=UTF-8
+encoding//src/test/resources/jbws1010/WEB-INF/wsdl/TestService.wsdl=UTF-8

Modified: branches/jbossws-1.0.3.jbws1186/src/test/ant/build-jars.xml
===================================================================
--- branches/jbossws-1.0.3.jbws1186/src/test/ant/build-jars.xml	2006-09-14 20:52:04 UTC (rev 956)
+++ branches/jbossws-1.0.3.jbws1186/src/test/ant/build-jars.xml	2006-09-14 22:08:23 UTC (rev 957)
@@ -821,6 +821,20 @@
       </metainf>
     </jar>
     
+    <!-- jbossws-jbws1186 -->
+    <war warfile="${build.test.dir}/libs/jaxrpc-jbws1186.war" webxml="${build.test.dir}/resources/jaxrpc/jbws1186/WEB-INF/web.xml">
+      <classes dir="${build.test.dir}/classes">
+        <include name="org/jboss/test/ws/jaxrpc/jbws1186/TestEndpointImpl.class"/>
+        <include name="org/jboss/test/ws/jaxrpc/jbws1186/TestEndpoint.class"/>
+        <include name="org/jboss/test/ws/jaxrpc/jbws1186/UserType.class"/>
+      </classes>
+      <webinf dir="${build.test.dir}/resources/jaxrpc/jbws1186/WEB-INF">
+        <include name="webservices.xml"/>
+        <include name="jaxrpc-mapping.xml"/>
+        <include name="wsdl/**"/>
+      </webinf>    	
+    </war>
+    
     <!-- jbossws-jsr181-handlerchain -->
     <war warfile="${build.test.dir}/libs/jbossws-jsr181-handlerchain.war" webxml="${build.test.dir}/resources/jsr181/handlerchain/WEB-INF/web.xml">
       <classes dir="${build.test.dir}/classes">

Added: branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/JBWS1186TestCase.java
===================================================================
--- branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/JBWS1186TestCase.java	2006-09-14 20:52:04 UTC (rev 956)
+++ branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/JBWS1186TestCase.java	2006-09-14 22:08:23 UTC (rev 957)
@@ -0,0 +1,127 @@
+/*
+ * 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.jbws1186;
+
+import java.io.ByteArrayInputStream;
+import java.io.File;
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.rpc.Service;
+import javax.xml.soap.MessageFactory;
+import javax.xml.soap.SOAPConnection;
+import javax.xml.soap.SOAPConnectionFactory;
+import javax.xml.soap.SOAPElement;
+import javax.xml.soap.SOAPMessage;
+
+import junit.framework.Test;
+
+import org.jboss.test.ws.JBossWSTest;
+import org.jboss.test.ws.JBossWSTestSetup;
+import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
+
+/**
+ * The prefix "xsi" for attribute "xsi:nil" is not bound
+ * 
+ * http://jira.jboss.org/jira/browse/JBWS-1186
+ * 
+ * @author Thomas.Diesler at jboss.com
+ * @since 14-Sep-2006
+ */
+public class JBWS1186TestCase extends JBossWSTest
+{
+
+   private static TestEndpoint port;
+
+   public static Test suite() throws Exception
+   {
+      return JBossWSTestSetup.newTestSetup(JBWS1186TestCase.class, "jaxrpc-jbws1186.war");
+   }
+
+   public void setUp() throws Exception
+   {
+      super.setUp();
+      if (port == null)
+      {
+         ServiceFactoryImpl factory = new ServiceFactoryImpl();
+         URL wsdlURL = new File("resources/jaxrpc/jbws1186/WEB-INF/wsdl/TestService.wsdl").toURL();
+         URL mappingURL = new File("resources/jaxrpc/jbws1186/WEB-INF/jaxrpc-mapping.xml").toURL();
+         QName qname = new QName("http://org.jboss.test.ws/jbws1186", "TestService");
+         Service service = factory.createService(wsdlURL, qname, mappingURL);
+         port = (TestEndpoint)service.getPort(TestEndpoint.class);
+      }
+   }
+
+   public void testNotNull() throws Exception
+   {
+      UserType userType = new UserType("World");
+      UserType retObj = port.echo("Hello", userType);
+      assertEquals("Hello World", retObj.getName());
+   }
+
+   public void testNullMessage() throws Exception
+   {
+      UserType userType = new UserType("World");
+      UserType retObj = port.echo(null, userType);
+      assertEquals("null World", retObj.getName());
+   }
+
+   public void testNullComplexType() throws Exception
+   {
+      UserType userType = new UserType();
+      UserType retObj = port.echo("Hello", userType);
+      assertEquals("Hello null", retObj.getName());
+   }
+
+   public void testAllNull() throws Exception
+   {
+      UserType userType = new UserType();
+      UserType retObj = port.echo(null, userType);
+      assertEquals("null null", retObj.getName());
+   }
+
+   public void testAccessMessage() throws Exception
+   {
+      MessageFactory factory = MessageFactory.newInstance();
+      
+      // The xsi namespace is declared on the envelope
+      String reqStr = 
+         "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>" +
+         " <env:Body>" +
+         "  <ns1:echo xmlns:ns1='http://org.jboss.test.ws/jbws1186'>" +
+         "   <String_1 xsi:nil='1'/>" +
+         "   <UserType_2>" +
+         "    <name xsi:nil='1'/>" +
+         "   </UserType_2>" +
+         "  </ns1:echo>" +
+         " </env:Body>" +
+         "</env:Envelope>";
+      
+      SOAPMessage reqMessage = factory.createMessage(null, new ByteArrayInputStream(reqStr.getBytes()));
+      SOAPConnection con = SOAPConnectionFactory.newInstance().createConnection();
+      SOAPMessage resMessage = con.call(reqMessage, "http://" + getServerHost() + ":8080/jaxrpc-jbws1186");
+      SOAPElement soapElement = (SOAPElement)resMessage.getSOAPBody().getChildElements().next();
+      soapElement = (SOAPElement)soapElement.getChildElements().next();
+      soapElement = (SOAPElement)soapElement.getChildElements().next();
+      assertEquals("null null", soapElement.getValue());
+   }
+}


Property changes on: branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/JBWS1186TestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/TestEndpoint.java
===================================================================
--- branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/TestEndpoint.java	2006-09-14 20:52:04 UTC (rev 956)
+++ branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/TestEndpoint.java	2006-09-14 22:08:23 UTC (rev 957)
@@ -0,0 +1,30 @@
+/*
+ * 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.jbws1186;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+public interface TestEndpoint extends Remote
+{
+   public UserType echo(String message, UserType ut) throws RemoteException;
+}


Property changes on: branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/TestEndpoint.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/TestEndpointImpl.java
===================================================================
--- branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/TestEndpointImpl.java	2006-09-14 20:52:04 UTC (rev 956)
+++ branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/TestEndpointImpl.java	2006-09-14 22:08:23 UTC (rev 957)
@@ -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.jbws1186;
+
+import java.rmi.RemoteException;
+
+import org.jboss.logging.Logger;
+
+public class TestEndpointImpl implements TestEndpoint
+{
+   private Logger log = Logger.getLogger(TestEndpointImpl.class);
+
+   public UserType echo(String message, UserType ut) throws RemoteException
+   {
+      log.info("echo: " + message);
+      ut.setName(message + " " + ut.getName());
+      return ut;
+   }
+
+}


Property changes on: branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/TestEndpointImpl.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/UserType.java
===================================================================
--- branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/UserType.java	2006-09-14 20:52:04 UTC (rev 956)
+++ branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/UserType.java	2006-09-14 22:08:23 UTC (rev 957)
@@ -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.jaxrpc.jbws1186;
+
+public class UserType
+{
+   private String name;
+
+   public UserType()
+   {
+   }
+
+   public UserType(String name)
+   {
+      this.name = name;
+   }
+
+   public String getName()
+   {
+      return name;
+   }
+
+   public void setName(String name)
+   {
+      this.name = name;
+   }
+   
+
+}


Property changes on: branches/jbossws-1.0.3.jbws1186/src/test/java/org/jboss/test/ws/jaxrpc/jbws1186/UserType.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/jaxrpc-mapping.xml
===================================================================
--- branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/jaxrpc-mapping.xml	2006-09-14 20:52:04 UTC (rev 956)
+++ branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/jaxrpc-mapping.xml	2006-09-14 22:08:23 UTC (rev 957)
@@ -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.jbws1186</package-type>
+  <namespaceURI>http://org.jboss.test.ws/jbws1186/types</namespaceURI>
+ </package-mapping>
+ <java-xml-type-mapping>
+  <java-type>org.jboss.test.ws.jaxrpc.jbws1186.UserType</java-type>
+  <root-type-qname xmlns:typeNS='http://org.jboss.test.ws/jbws1186/types'>typeNS:UserType</root-type-qname>
+  <qname-scope>complexType</qname-scope>
+  <variable-mapping>
+   <java-variable-name>name</java-variable-name>
+   <xml-element-name>name</xml-element-name>
+  </variable-mapping>
+ </java-xml-type-mapping>
+ <service-interface-mapping>
+  <service-interface>org.jboss.test.ws.jaxrpc.jbws1186.TestService</service-interface>
+  <wsdl-service-name xmlns:serviceNS='http://org.jboss.test.ws/jbws1186'>serviceNS:TestService</wsdl-service-name>
+  <port-mapping>
+   <port-name>TestEndpointPort</port-name>
+   <java-port-name>TestEndpointPort</java-port-name>
+  </port-mapping>
+ </service-interface-mapping>
+ <service-endpoint-interface-mapping>
+  <service-endpoint-interface>org.jboss.test.ws.jaxrpc.jbws1186.TestEndpoint</service-endpoint-interface>
+  <wsdl-port-type xmlns:portTypeNS='http://org.jboss.test.ws/jbws1186'>portTypeNS:TestEndpoint</wsdl-port-type>
+  <wsdl-binding xmlns:bindingNS='http://org.jboss.test.ws/jbws1186'>bindingNS:TestEndpointBinding</wsdl-binding>
+  <service-endpoint-method-mapping>
+   <java-method-name>echo</java-method-name>
+   <wsdl-operation>echo</wsdl-operation>
+   <method-param-parts-mapping>
+    <param-position>0</param-position>
+    <param-type>java.lang.String</param-type>
+    <wsdl-message-mapping>
+     <wsdl-message xmlns:wsdlMsgNS='http://org.jboss.test.ws/jbws1186'>wsdlMsgNS:TestEndpoint_echo</wsdl-message>
+     <wsdl-message-part-name>String_1</wsdl-message-part-name>
+     <parameter-mode>IN</parameter-mode>
+    </wsdl-message-mapping>
+   </method-param-parts-mapping>
+   <method-param-parts-mapping>
+    <param-position>1</param-position>
+    <param-type>org.jboss.test.ws.jaxrpc.jbws1186.UserType</param-type>
+    <wsdl-message-mapping>
+     <wsdl-message xmlns:wsdlMsgNS='http://org.jboss.test.ws/jbws1186'>wsdlMsgNS:TestEndpoint_echo</wsdl-message>
+     <wsdl-message-part-name>UserType_2</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.jbws1186.UserType</method-return-value>
+    <wsdl-message xmlns:wsdlMsgNS='http://org.jboss.test.ws/jbws1186'>wsdlMsgNS:TestEndpoint_echoResponse</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>
\ No newline at end of file


Property changes on: branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/jaxrpc-mapping.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/web.xml
===================================================================
--- branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/web.xml	2006-09-14 20:52:04 UTC (rev 956)
+++ branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/web.xml	2006-09-14 22:08:23 UTC (rev 957)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app 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://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+  version="2.4">
+
+  <servlet>
+    <servlet-name>TestEndpoint</servlet-name>
+    <servlet-class>org.jboss.test.ws.jaxrpc.jbws1186.TestEndpointImpl</servlet-class>
+  </servlet>
+  <servlet-mapping>
+    <servlet-name>TestEndpoint</servlet-name>
+    <url-pattern>/*</url-pattern>
+  </servlet-mapping>
+</web-app>
+


Property changes on: branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/webservices.xml
===================================================================
--- branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/webservices.xml	2006-09-14 20:52:04 UTC (rev 956)
+++ branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/webservices.xml	2006-09-14 22:08:23 UTC (rev 957)
@@ -0,0 +1,15 @@
+<webservices version='1.1' xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:impl='http://org.jboss.test.ws/jbws1186' 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_web_services_1_1.xsd'>
+ <webservice-description>
+  <webservice-description-name>TestService</webservice-description-name>
+  <wsdl-file>WEB-INF/wsdl/TestService.wsdl</wsdl-file>
+  <jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
+  <port-component>
+   <port-component-name>TestEndpointPort</port-component-name>
+   <wsdl-port>impl:TestEndpointPort</wsdl-port>
+   <service-endpoint-interface>org.jboss.test.ws.jaxrpc.jbws1186.TestEndpoint</service-endpoint-interface>
+   <service-impl-bean>
+    <servlet-link>TestEndpoint</servlet-link>
+   </service-impl-bean>
+  </port-component>
+ </webservice-description>
+</webservices>
\ No newline at end of file


Property changes on: branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/webservices.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/wsdl/TestService.wsdl
===================================================================
--- branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/wsdl/TestService.wsdl	2006-09-14 20:52:04 UTC (rev 956)
+++ branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/wsdl/TestService.wsdl	2006-09-14 22:08:23 UTC (rev 957)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name='TestService' targetNamespace='http://org.jboss.test.ws/jbws1186' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:ns1='http://org.jboss.test.ws/jbws1186/types' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://org.jboss.test.ws/jbws1186' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+ <types>
+  <schema targetNamespace='http://org.jboss.test.ws/jbws1186/types' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:tns='http://org.jboss.test.ws/jbws1186/types' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
+   <complexType name='UserType'>
+    <sequence>
+     <element name='name' nillable='true' type='string'/>
+    </sequence>
+   </complexType>
+  </schema>
+ </types>
+ <message name='TestEndpoint_echo'>
+  <part name='String_1' type='xsd:string'/>
+  <part name='UserType_2' type='ns1:UserType'/>
+ </message>
+ <message name='TestEndpoint_echoResponse'>
+  <part name='result' type='ns1:UserType'/>
+ </message>
+ <portType name='TestEndpoint'>
+  <operation name='echo' parameterOrder='String_1 UserType_2'>
+   <input message='tns:TestEndpoint_echo'/>
+   <output message='tns:TestEndpoint_echoResponse'/>
+  </operation>
+ </portType>
+ <binding name='TestEndpointBinding' type='tns:TestEndpoint'>
+  <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
+  <operation name='echo'>
+   <soap:operation soapAction=''/>
+   <input>
+    <soap:body namespace='http://org.jboss.test.ws/jbws1186' use='literal'/>
+   </input>
+   <output>
+    <soap:body namespace='http://org.jboss.test.ws/jbws1186' use='literal'/>
+   </output>
+  </operation>
+ </binding>
+ <service name='TestService'>
+  <port binding='tns:TestEndpointBinding' name='TestEndpointPort'>
+   <soap:address location='http://@jbosstest.host.name@:8080/jaxrpc-jbws1186'/>
+  </port>
+ </service>
+</definitions>
\ No newline at end of file


Property changes on: branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/WEB-INF/wsdl/TestService.wsdl
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/wstools-config.xml
===================================================================
--- branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/wstools-config.xml	2006-09-14 20:52:04 UTC (rev 956)
+++ branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/wstools-config.xml	2006-09-14 22:08:23 UTC (rev 957)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  wstools -cp ../../../../output/tests/classes -dest ./WEB-INF -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">
+  <java-wsdl>
+    <service name="TestService" style="rpc" endpoint="org.jboss.test.ws.jaxrpc.jbws1186.TestEndpoint"/>
+    <namespaces target-namespace="http://org.jboss.test.ws/jbws1186" type-namespace="http://org.jboss.test.ws/jbws1186/types"/>
+    <mapping file="jaxrpc-mapping.xml"/>
+    <webservices servlet-link="TestEndpoint"/>
+  </java-wsdl>
+</configuration>


Property changes on: branches/jbossws-1.0.3.jbws1186/src/test/resources/jaxrpc/jbws1186/wstools-config.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF




More information about the jboss-svn-commits mailing list