JBossWS SVN: r6294 - framework/trunk/src/test/ant-import.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-09 05:27:00 -0400 (Wed, 09 Apr 2008)
New Revision: 6294
Modified:
framework/trunk/src/test/ant-import/build-jars-jaxws.xml
Log:
Use SEIs with explict name
Modified: framework/trunk/src/test/ant-import/build-jars-jaxws.xml
===================================================================
--- framework/trunk/src/test/ant-import/build-jars-jaxws.xml 2008-04-09 09:25:47 UTC (rev 6293)
+++ framework/trunk/src/test/ant-import/build-jars-jaxws.xml 2008-04-09 09:27:00 UTC (rev 6294)
@@ -472,8 +472,8 @@
<jar jarfile="${tests.output.dir}/libs/jaxws-jbws1872.jar">
<fileset dir="${tests.output.dir}/classes">
<include name="org/jboss/test/ws/jaxws/jbws1872/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws1872/*TestCase*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws1872/ClientIface.class"/>
+ <exclude name="org/jboss/test/ws/jaxws/jbws1872/*TestCase.class"/>
+ <exclude name="org/jboss/test/ws/jaxws/jbws1872/Client*.class"/>
</fileset>
</jar>
16 years, 9 months
JBossWS SVN: r6293 - framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-09 05:25:47 -0400 (Wed, 09 Apr 2008)
New Revision: 6293
Added:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/Client1.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/Client2.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/Client3.java
Removed:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/ClientIface.java
Modified:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/JBWS1872TestCase.java
Log:
Use SEIs with explict name
Copied: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/Client1.java (from rev 6270, framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/ClientIface.java)
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/Client1.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/Client1.java 2008-04-09 09:25:47 UTC (rev 6293)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws1872;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+/**
+ * Interface used on client side
+ *
+ * @author richard.opalka(a)jboss.com
+ */
+@WebService(name = "Bean1", targetNamespace = "http://org.jboss.ws/jbws1872")
+public interface Client1
+{
+ @WebMethod
+ String echo(String msg);
+}
Added: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/Client2.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/Client2.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/Client2.java 2008-04-09 09:25:47 UTC (rev 6293)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws1872;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+/**
+ * Interface used on client side
+ *
+ * @author richard.opalka(a)jboss.com
+ */
+@WebService(name = "Bean2", targetNamespace = "http://org.jboss.ws/jbws1872")
+public interface Client2
+{
+ @WebMethod
+ String echo(String msg);
+}
Property changes on: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/Client2.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/Client3.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/Client3.java (rev 0)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/Client3.java 2008-04-09 09:25:47 UTC (rev 6293)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws1872;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+/**
+ * Interface used on client side
+ *
+ * @author richard.opalka(a)jboss.com
+ */
+@WebService(name = "Bean3", targetNamespace = "http://org.jboss.ws/jbws1872")
+public interface Client3
+{
+ @WebMethod
+ String echo(String msg);
+}
Property changes on: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/Client3.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Deleted: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/ClientIface.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/ClientIface.java 2008-04-09 09:02:20 UTC (rev 6292)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/ClientIface.java 2008-04-09 09:25:47 UTC (rev 6293)
@@ -1,37 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.jbws1872;
-
-import javax.jws.WebMethod;
-import javax.jws.WebService;
-
-/**
- * Interface used on client side
- *
- * @author richard.opalka(a)jboss.com
- */
-@WebService
-public interface ClientIface
-{
- @WebMethod
- String echo(String msg);
-}
Modified: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/JBWS1872TestCase.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/JBWS1872TestCase.java 2008-04-09 09:02:20 UTC (rev 6292)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1872/JBWS1872TestCase.java 2008-04-09 09:25:47 UTC (rev 6293)
@@ -46,9 +46,9 @@
public void testEJB1() throws Exception
{
URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbws1872/EJB3Bean1?wsdl");
- QName serviceName = new QName("http://org.jboss.ws/jbws1872", "EJB3Bean1Service");
+ QName serviceName = new QName("http://org.jboss.ws/jbws1872", "Bean1Service");
Service service = Service.create(wsdlURL, serviceName);
- ClientIface port = service.getPort(ClientIface.class);
+ Client1 port = service.getPort(Client1.class);
String retStr = port.echo("hello");
assertEquals("bean1-hello", retStr);
}
@@ -56,9 +56,9 @@
public void testEJB2() throws Exception
{
URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbws1872/EJB3Bean2?wsdl");
- QName serviceName = new QName("http://org.jboss.ws/jbws1872", "EJB3Bean2Service");
+ QName serviceName = new QName("http://org.jboss.ws/jbws1872", "Bean2Service");
Service service = Service.create(wsdlURL, serviceName);
- ClientIface port = service.getPort(ClientIface.class);
+ Client2 port = service.getPort(Client2.class);
String retStr = port.echo("hello");
assertEquals("bean2-hello", retStr);
}
@@ -66,9 +66,9 @@
public void testEJB3() throws Exception
{
URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbws1872/EJB3Bean3?wsdl");
- QName serviceName = new QName("http://org.jboss.ws/jbws1872", "EJB3Bean3Service");
+ QName serviceName = new QName("http://org.jboss.ws/jbws1872", "Bean3Service");
Service service = Service.create(wsdlURL, serviceName);
- ClientIface port = service.getPort(ClientIface.class);
+ Client3 port = service.getPort(Client3.class);
String retStr = port.echo("hello");
assertEquals("bean3-hello", retStr);
}
16 years, 9 months
JBossWS SVN: r6292 - in stack/native/trunk: src/test/java/org/jboss/test/ws/jaxws and 4 other directories.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-09 05:02:20 -0400 (Wed, 09 Apr 2008)
New Revision: 6292
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/DocRequest.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/DocResponse.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/Endpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/EndpointImpl.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/JBWS1809TestCase.java
stack/native/trunk/src/test/resources/jaxws/jbws1809/
stack/native/trunk/src/test/resources/jaxws/jbws1809/META-INF/
stack/native/trunk/src/test/resources/jaxws/jbws1809/META-INF/jaxb-intros.xml
Modified:
stack/native/trunk/ant-import-tests/build-jars-jaxws.xml
Log:
Move jbws1809 to native
Modified: stack/native/trunk/ant-import-tests/build-jars-jaxws.xml
===================================================================
--- stack/native/trunk/ant-import-tests/build-jars-jaxws.xml 2008-04-09 09:00:07 UTC (rev 6291)
+++ stack/native/trunk/ant-import-tests/build-jars-jaxws.xml 2008-04-09 09:02:20 UTC (rev 6292)
@@ -169,6 +169,15 @@
</classes>
</war>
+ <!-- jaxws-jbws1809 -->
+ <jar destfile="${tests.output.dir}/libs/jaxws-jbws1809.jar">
+ <fileset dir="${tests.output.dir}/classes">
+ <include name="org/jboss/test/ws/jaxws/jbws1809/*.class"/>
+ <exclude name="org/jboss/test/ws/jaxws/jbws1809/*TestCase.class"/>
+ </fileset>
+ <metainf dir="${tests.output.dir}/resources/jaxws/jbws1809/META-INF"/>
+ </jar>
+
<!-- jaxws-jbws1814 -->
<war warfile="${tests.output.dir}/libs/jaxws-jbws1814.war" webxml="${tests.output.dir}/resources/jaxws/jbws1814/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/DocRequest.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/DocRequest.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/DocRequest.java 2008-04-09 09:02:20 UTC (rev 6292)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws1809;
+
+/**
+ * @author Heiko.Braun(a)jboss.com
+ * @version $Revision$
+ */
+public class DocRequest
+{
+ String value;
+
+ public String getValue()
+ {
+ return value;
+ }
+
+ public void setValue(String value)
+ {
+ this.value = value;
+ }
+}
Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/DocRequest.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/DocResponse.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/DocResponse.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/DocResponse.java 2008-04-09 09:02:20 UTC (rev 6292)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws1809;
+
+/**
+ * @author Heiko.Braun(a)jboss.com
+ * @version $Revision$
+ */
+public class DocResponse
+{
+ String value;
+
+
+ public String getValue()
+ {
+ return value;
+ }
+
+ public void setValue(String value)
+ {
+ this.value = value;
+ }
+}
Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/DocResponse.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/Endpoint.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/Endpoint.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/Endpoint.java 2008-04-09 09:02:20 UTC (rev 6292)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws1809;
+
+import javax.ejb.Remote;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * @author Heiko.Braun(a)jboss.com
+ * @version $Revision$
+ */
+@Remote
+@WebService(targetNamespace = "http://org.jboss.ws/jaxbintro/wsdl")
+@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, parameterStyle = SOAPBinding.ParameterStyle.BARE)
+public interface Endpoint
+{
+ DocResponse processDocument(DocRequest req);
+}
Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/Endpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/EndpointImpl.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/EndpointImpl.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/EndpointImpl.java 2008-04-09 09:02:20 UTC (rev 6292)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws1809;
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * @author Heiko.Braun(a)jboss.com
+ * @version $Revision$
+ */
+@Stateless
+@WebService(
+ targetNamespace = "http://org.jboss.ws/jaxbintro/wsdl",
+ endpointInterface = "org.jboss.test.ws.jaxws.jbws1809.Endpoint"
+)
+@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, parameterStyle = SOAPBinding.ParameterStyle.BARE)
+public class EndpointImpl implements Endpoint
+{
+ public DocResponse processDocument(DocRequest req)
+ {
+ DocResponse res = new DocResponse();
+ res.setValue(req.getValue()+"Response");
+ return res;
+ }
+}
Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/EndpointImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/JBWS1809TestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/JBWS1809TestCase.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/JBWS1809TestCase.java 2008-04-09 09:02:20 UTC (rev 6292)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws1809;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.common.DOMUtils;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
+import java.net.URL;
+import java.util.Iterator;
+
+/**
+ * Test the JAXBIntroduction features.
+ *
+ * Check if the WSDL is generated correctly.
+ * The introduction should turn a property into a xsd:attribute declaration.
+ *
+ * @author heiko.braun(a)jboss.com
+ */
+public class JBWS1809TestCase extends JBossWSTest
+{
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(JBWS1809TestCase.class, "jaxws-jbws1809.jar");
+ }
+
+ public void testWSDLAccess() throws Exception
+ {
+ URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbws1809/EndpointImpl?wsdl");
+
+ Document doc = DOMUtils.getDocumentBuilder().parse(wsdlURL.toString());
+ Element types = (Element)((Element)doc.getDocumentElement()
+ .getElementsByTagNameNS("http://schemas.xmlsoap.org/wsdl/", "types").item(0))
+ .getElementsByTagNameNS("http://www.w3.org/2001/XMLSchema", "schema").item(0);
+ Iterator it = DOMUtils.getChildElements(types, "complexType");
+
+ boolean foundAttributeDeclaration = false;
+ while(it.hasNext())
+ {
+ Element next = (Element)it.next();
+ if(DOMUtils.getAttributeValue(next, "name").equals("docRequest"))
+ {
+ Iterator it2 = DOMUtils.getChildElements(next, "attribute");
+
+ while(it2.hasNext())
+ {
+ Element next2 = (Element)it2.next();
+ if(DOMUtils.getAttributeValue(next2, "name").equals("value"))
+ {
+ foundAttributeDeclaration = true;
+ }
+ }
+ }
+ }
+
+ assertTrue("JAXBIntros should turn the 'docRequest.name' property into a XML attribute", foundAttributeDeclaration);
+ }
+}
Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/JBWS1809TestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/src/test/resources/jaxws/jbws1809/META-INF/jaxb-intros.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/jbws1809/META-INF/jaxb-intros.xml (rev 0)
+++ stack/native/trunk/src/test/resources/jaxws/jbws1809/META-INF/jaxb-intros.xml 2008-04-09 09:02:20 UTC (rev 6292)
@@ -0,0 +1,26 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<jaxb-intros xmlns="http://www.jboss.org/xsd/jaxb/intros" default-namespace="http://org.jboss.ws/jaxbintro/wsdl">
+
+ <!--
+ The XSD for the schema can be found at:
+ http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/extras/jaxbintr...
+ Register it against the http://www.jboss.org/xsd/jaxb/intros namespace in your IDE and away you go :-)
+ -->
+
+ <!--
+ Note: how the "name" attributes on class, field and method configs can be regular expressions.
+ -->
+
+ <!--
+ The type namespaces on the customerOrder are different from the rest of the message...
+ -->
+ <Class name="org.jboss.test.ws.jaxws.jbws1809.DocRequest">
+ <XmlAccessorType value="FIELD"/>
+ <XmlRootElement name="request" namespace="http://org.jboss.ws/jaxbintro/wsdl"/>
+
+ <Field name="value">
+ <XmlAttribute />
+ </Field>
+ </Class>
+
+</jaxb-intros>
Property changes on: stack/native/trunk/src/test/resources/jaxws/jbws1809/META-INF/jaxb-intros.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
16 years, 9 months
JBossWS SVN: r6291 - in framework/trunk/src/test: java/org/jboss/test/ws/jaxws and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-09 05:00:07 -0400 (Wed, 09 Apr 2008)
New Revision: 6291
Removed:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1809/
framework/trunk/src/test/resources/jaxws/jbws1809/
Modified:
framework/trunk/src/test/ant-import/build-jars-jaxws.xml
Log:
Move jbws1809 to native
Modified: framework/trunk/src/test/ant-import/build-jars-jaxws.xml
===================================================================
--- framework/trunk/src/test/ant-import/build-jars-jaxws.xml 2008-04-09 08:54:01 UTC (rev 6290)
+++ framework/trunk/src/test/ant-import/build-jars-jaxws.xml 2008-04-09 09:00:07 UTC (rev 6291)
@@ -350,15 +350,6 @@
</webinf>
</war>
- <!-- jaxws-jbws1809 -->
- <jar destfile="${tests.output.dir}/libs/jaxws-jbws1809.jar">
- <fileset dir="${tests.output.dir}/classes">
- <include name="org/jboss/test/ws/jaxws/jbws1809/*.class"/>
- <exclude name="org/jboss/test/ws/jaxws/jbws1809/*TestCase.class"/>
- </fileset>
- <metainf dir="${tests.output.dir}/resources/jaxws/jbws1809/META-INF"/>
- </jar>
-
<!-- jaxws-jbws1813 -->
<jar destfile="${tests.output.dir}/libs/jaxws-jbws1813.jar">
<fileset dir="${tests.output.dir}/classes">
16 years, 9 months
JBossWS SVN: r6290 - framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1807.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-09 04:54:01 -0400 (Wed, 09 Apr 2008)
New Revision: 6290
Modified:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1807/ProviderImpl.java
Log:
serviceName = "ProviderService"
Modified: framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1807/ProviderImpl.java
===================================================================
--- framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1807/ProviderImpl.java 2008-04-09 08:40:35 UTC (rev 6289)
+++ framework/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1807/ProviderImpl.java 2008-04-09 08:54:01 UTC (rev 6290)
@@ -37,7 +37,7 @@
import org.jboss.wsf.common.DOMUtils;
import org.jboss.wsf.common.DOMWriter;
-@WebServiceProvider(wsdlLocation = "WEB-INF/wsdl/provider.wsdl", portName = "ProviderPort", serviceName = "Provider", targetNamespace = "http://ws.com/")
+@WebServiceProvider(wsdlLocation = "WEB-INF/wsdl/provider.wsdl", portName = "ProviderPort", serviceName = "ProviderService", targetNamespace = "http://ws.com/")
@ServiceMode(value = Service.Mode.PAYLOAD)
@BindingType(value = HTTPBinding.HTTP_BINDING)
public class ProviderImpl implements Provider<Source>
16 years, 9 months
JBossWS SVN: r6289 - framework/trunk/src/test/ant-import.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-09 04:40:35 -0400 (Wed, 09 Apr 2008)
New Revision: 6289
Modified:
framework/trunk/src/test/ant-import/build-testsuite.xml
Log:
filter token="endpoint.servlet" value="${endpoint.servlet}"
Modified: framework/trunk/src/test/ant-import/build-testsuite.xml
===================================================================
--- framework/trunk/src/test/ant-import/build-testsuite.xml 2008-04-09 08:34:13 UTC (rev 6288)
+++ framework/trunk/src/test/ant-import/build-testsuite.xml 2008-04-09 08:40:35 UTC (rev 6289)
@@ -304,6 +304,7 @@
<exclude name="jaxrpc/samples-override/**"/>
</fileset>
<filterset>
+ <filter token="endpoint.servlet" value="${endpoint.servlet}"/>
<filter token="java.home" value="${java.home}"/>
<filter token="jboss.bind.address" value="${node0}"/>
<filter token="tests.output.dir" value="${tests.output.dir}"/>
16 years, 9 months
JBossWS SVN: r6288 - stack/native/trunk.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-09 04:34:13 -0400 (Wed, 09 Apr 2008)
New Revision: 6288
Modified:
stack/native/trunk/ant.properties.example
Log:
Endpoint servlet used by test descriptors
Modified: stack/native/trunk/ant.properties.example
===================================================================
--- stack/native/trunk/ant.properties.example 2008-04-09 08:34:05 UTC (rev 6287)
+++ stack/native/trunk/ant.properties.example 2008-04-09 08:34:13 UTC (rev 6288)
@@ -35,6 +35,9 @@
# JDK settings
#java.home.jdk16=/usr/java/jdk1.6
+# Endpoint servlet used by test descriptors
+endpoint.servlet=org.jboss.wsf.stack.jbws.EndpointServlet
+
# Java Compiler options
javac.debug=yes
javac.deprecation=yes
16 years, 9 months
JBossWS SVN: r6287 - framework/trunk/src/test/resources/jaxws/jbws1762/WEB-INF.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-09 04:34:05 -0400 (Wed, 09 Apr 2008)
New Revision: 6287
Modified:
framework/trunk/src/test/resources/jaxws/jbws1762/WEB-INF/web.xml
Log:
Endpoint servlet used by test descriptors
Modified: framework/trunk/src/test/resources/jaxws/jbws1762/WEB-INF/web.xml
===================================================================
--- framework/trunk/src/test/resources/jaxws/jbws1762/WEB-INF/web.xml 2008-04-09 08:33:58 UTC (rev 6286)
+++ framework/trunk/src/test/resources/jaxws/jbws1762/WEB-INF/web.xml 2008-04-09 08:34:05 UTC (rev 6287)
@@ -4,7 +4,7 @@
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>POJOBean</servlet-name>
- <servlet-class>org.jboss.wsf.stack.jbws.EndpointServlet</servlet-class>
+ <servlet-class>@endpoint.servlet@</servlet-class>
<init-param>
<param-name>jboss.ws.endpoint</param-name>
<param-value>org.jboss.test.ws.jaxws.jbws1762.services.POJOBean</param-value>
16 years, 9 months
JBossWS SVN: r6286 - stack/metro/trunk.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-09 04:33:58 -0400 (Wed, 09 Apr 2008)
New Revision: 6286
Modified:
stack/metro/trunk/ant.properties.example
Log:
Endpoint servlet used by test descriptors
Modified: stack/metro/trunk/ant.properties.example
===================================================================
--- stack/metro/trunk/ant.properties.example 2008-04-09 08:33:50 UTC (rev 6285)
+++ stack/metro/trunk/ant.properties.example 2008-04-09 08:33:58 UTC (rev 6286)
@@ -34,6 +34,9 @@
# JDK settings
#java.home.jdk16=/usr/java/jdk1.6
+# Endpoint servlet used by test descriptors
+endpoint.servlet=org.jboss.wsf.stack.metro.EndpointServlet
+
# Java Compiler options
javac.debug=yes
javac.deprecation=no
16 years, 9 months
JBossWS SVN: r6285 - stack/cxf/trunk.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-09 04:33:50 -0400 (Wed, 09 Apr 2008)
New Revision: 6285
Modified:
stack/cxf/trunk/ant.properties.example
Log:
Endpoint servlet used by test descriptors
Modified: stack/cxf/trunk/ant.properties.example
===================================================================
--- stack/cxf/trunk/ant.properties.example 2008-04-09 04:14:22 UTC (rev 6284)
+++ stack/cxf/trunk/ant.properties.example 2008-04-09 08:33:50 UTC (rev 6285)
@@ -34,6 +34,9 @@
# JDK settings
#java.home.jdk16=/usr/java/jdk1.6
+# Endpoint servlet used by test descriptors
+endpoint.servlet=org.jboss.wsf.stack.cxf.CXFServletExt
+
# Java Compiler options
javac.debug=yes
javac.deprecation=no
16 years, 9 months