UNSTABLE
1
--===============1745281599752083270==--
From jbossws-commits at lists.jboss.org Tue Oct 18 08:11:47 2011
Content-Type: multipart/mixed; boundary="===============8724268394307919934=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15128 - hudson/trunk/hudson-home.
Date: Tue, 18 Oct 2011 08:11:46 -0400
Message-ID: <201110181211.p9ICBk51030557@svn01.web.mwc.hst.phx2.redhat.com>
--===============8724268394307919934==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-18 08:11:46 -0400 (Tue, 18 Oct 2011)
New Revision: 15128
Modified:
hudson/trunk/hudson-home/config.xml
Log:
removing AS 6.1.0 QA jobs - not needed anymore
Modified: hudson/trunk/hudson-home/config.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- hudson/trunk/hudson-home/config.xml 2011-10-18 12:10:52 UTC (rev 15127)
+++ hudson/trunk/hudson-home/config.xml 2011-10-18 12:11:46 UTC (rev 15128)
@@ -37,7 +37,6 @@
JBossWS CXF: | @hudson.cxf.url@ |
|
@hudson.jboss600.build@ | -r(a)hudson.jboss60=
0.rev@ @hudson.jboss600.url@ |
- @hudson.jboss610.build@ | -r(a)hudson.jboss61=
0.rev@ @hudson.jboss610.url@ |
@hudson.jboss700.build@ | -r(a)hudson.jboss70=
0.rev@ @hudson.jboss700.url@ |
@hudson.jboss710.build@ | -r(a)hudson.jboss71=
0.rev@ @hudson.jboss710.url@ |
|
--===============8724268394307919934==--
From jbossws-commits at lists.jboss.org Tue Oct 18 12:12:15 2011
Content-Type: multipart/mixed; boundary="===============7667365510431973206=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15129 -
stack/cxf/trunk/modules/resources/src/main/resources/modules/org/jboss/ws/spi/main.
Date: Tue, 18 Oct 2011 12:12:15 -0400
Message-ID: <201110181612.p9IGCFw0012080@svn01.web.mwc.hst.phx2.redhat.com>
--===============7667365510431973206==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: alessio.soldano(a)jboss.com
Date: 2011-10-18 12:12:14 -0400 (Tue, 18 Oct 2011)
New Revision: 15129
Modified:
stack/cxf/trunk/modules/resources/src/main/resources/modules/org/jboss/w=
s/spi/main/module.xml
Log:
Synch with AS7 upstream
Modified: stack/cxf/trunk/modules/resources/src/main/resources/modules/org/=
jboss/ws/spi/main/module.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/resources/src/main/resources/modules/org/jboss/=
ws/spi/main/module.xml 2011-10-18 12:11:46 UTC (rev 15128)
+++ stack/cxf/trunk/modules/resources/src/main/resources/modules/org/jboss/=
ws/spi/main/module.xml 2011-10-18 16:12:14 UTC (rev 15129)
@@ -35,5 +35,6 @@
+
--===============7667365510431973206==--
From jbossws-commits at lists.jboss.org Tue Oct 18 12:12:34 2011
Content-Type: multipart/mixed; boundary="===============4346331403568412778=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15130 -
stack/native/trunk/modules/resources/src/main/resources/modules/org/jboss/ws/spi/main.
Date: Tue, 18 Oct 2011 12:12:34 -0400
Message-ID: <201110181612.p9IGCYGQ012091@svn01.web.mwc.hst.phx2.redhat.com>
--===============4346331403568412778==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: alessio.soldano(a)jboss.com
Date: 2011-10-18 12:12:34 -0400 (Tue, 18 Oct 2011)
New Revision: 15130
Modified:
stack/native/trunk/modules/resources/src/main/resources/modules/org/jbos=
s/ws/spi/main/module.xml
Log:
Synch with AS7 upstream
Modified: stack/native/trunk/modules/resources/src/main/resources/modules/o=
rg/jboss/ws/spi/main/module.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/native/trunk/modules/resources/src/main/resources/modules/org/jbo=
ss/ws/spi/main/module.xml 2011-10-18 16:12:14 UTC (rev 15129)
+++ stack/native/trunk/modules/resources/src/main/resources/modules/org/jbo=
ss/ws/spi/main/module.xml 2011-10-18 16:12:34 UTC (rev 15130)
@@ -35,5 +35,6 @@
+
--===============4346331403568412778==--
From jbossws-commits at lists.jboss.org Wed Oct 19 03:22:07 2011
Content-Type: multipart/mixed; boundary="===============4814869480547798220=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15131 - stack/cxf/trunk.
Date: Wed, 19 Oct 2011 03:22:07 -0400
Message-ID: <201110190722.p9J7M7eH023928@svn01.web.mwc.hst.phx2.redhat.com>
--===============4814869480547798220==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-19 03:22:07 -0400 (Wed, 19 Oct 2011)
New Revision: 15131
Modified:
stack/cxf/trunk/pom.xml
Log:
use Apache CXF 2.4.4-SNAPSHOT
Modified: stack/cxf/trunk/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/pom.xml 2011-10-18 16:12:34 UTC (rev 15130)
+++ stack/cxf/trunk/pom.xml 2011-10-19 07:22:07 UTC (rev 15131)
@@ -55,7 +55,7 @@
4.0.0-SNAPSHOT
7.0.0.Final
1.0.1.Final
- 2.4.3
+ 2.4.4-SNAPSHOT
3.3
2.3.2
1.2.7
--===============4814869480547798220==--
From jbossws-commits at lists.jboss.org Wed Oct 19 05:28:52 2011
Content-Type: multipart/mixed; boundary="===============3733209899645921092=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15132 -
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws981.
Date: Wed, 19 Oct 2011 05:28:52 -0400
Message-ID: <201110190928.p9J9SqIP015542@svn01.web.mwc.hst.phx2.redhat.com>
--===============3733209899645921092==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-19 05:28:52 -0400 (Wed, 19 Oct 2011)
New Revision: 15132
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/j=
bws981/EJB3Bean.java
Log:
sync with JBossWS API
Modified: shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/=
jaxws/jbws981/EJB3Bean.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/=
jbws981/EJB3Bean.java 2011-10-19 07:22:07 UTC (rev 15131)
+++ shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/=
jbws981/EJB3Bean.java 2011-10-19 09:28:52 UTC (rev 15132)
@@ -23,40 +23,22 @@
=
import javax.ejb.Stateless;
import javax.jws.WebService;
-import javax.management.MBeanServer;
-import javax.management.MBeanServerFactory;
-import javax.management.ObjectName;
=
-import org.jboss.logging.Logger;
import org.jboss.ws.api.annotation.WebContext;
=
/**
- * =
+ *
* @author darran.lofthouse(a)jboss.com
* @since Nov 2, 2006
*/
@Stateless
@WebService(endpointInterface =3D "org.jboss.test.ws.jaxws.jbws981.Endpoin=
tInterface", targetNamespace =3D "http://www.jboss.org/test/ws/jaxws/jbws98=
1", serviceName =3D "EndpointService")
-(a)WebContext(virtualHosts =3D { "localhost", "www.jboss.org" })
+(a)WebContext(virtualHost =3D "default-host")
public class EJB3Bean implements EJB3RemoteInterface
{
=
- private static final Logger log =3D Logger.getLogger(EJB3Bean.class);
-
public String hello(final String message)
{
- try
- {
- MBeanServer mbeanServer =3D (MBeanServer)MBeanServerFactory.findM=
BeanServer(null).get(0);
- ObjectName on =3D new ObjectName("jboss.web:J2EEApplication=3Dnon=
e,J2EEServer=3Dnone,WebModule=3D//www.jboss.org/jaxws-jbws981,j2eeType=3DSe=
rvlet,name=3DEJB3Bean");
- mbeanServer.getMBeanInfo(on);
- }
- catch (Exception e)
- {
- log.error("Unable to lookup deployment", e);
- return "Unable to get WebModule MBean for virtual host - virtual-=
host not handled from @WebContext";
- }
-
return message;
}
=
--===============3733209899645921092==--
From jbossws-commits at lists.jboss.org Wed Oct 19 05:33:41 2011
Content-Type: multipart/mixed; boundary="===============3098712128991659232=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15133 -
api/trunk/src/main/java/org/jboss/ws/api/annotation.
Date: Wed, 19 Oct 2011 05:33:41 -0400
Message-ID: <201110190933.p9J9XfUF016015@svn01.web.mwc.hst.phx2.redhat.com>
--===============3098712128991659232==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-19 05:33:41 -0400 (Wed, 19 Oct 2011)
New Revision: 15133
Modified:
api/trunk/src/main/java/org/jboss/ws/api/annotation/WebContext.java
Log:
[JBAS-8363] clarifying API - endpoint can be deployed to one virtual host o=
nly
Modified: api/trunk/src/main/java/org/jboss/ws/api/annotation/WebContext.ja=
va
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- api/trunk/src/main/java/org/jboss/ws/api/annotation/WebContext.java 201=
1-10-19 09:28:52 UTC (rev 15132)
+++ api/trunk/src/main/java/org/jboss/ws/api/annotation/WebContext.java 201=
1-10-19 09:33:41 UTC (rev 15133)
@@ -45,11 +45,11 @@
String contextRoot() default "";
=
/** =
- * The virtual hosts that the web service endpoint is deployed to.
+ * The virtual host that the web service endpoint is deployed to.
* =
* Applies to server side port components only.
*/
- String[] virtualHosts() default {};
+ String virtualHost() default "";
=
/** =
* Relative path that is appended to the contextRoot to form fully qual=
ified
--===============3098712128991659232==--
From jbossws-commits at lists.jboss.org Wed Oct 19 05:39:15 2011
Content-Type: multipart/mixed; boundary="===============4720669030873316967=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15134 - in
shared-testsuite/trunk/testsuite/src/test:
java/org/jboss/test/ws/jaxrpc/samples/docstyle/bare and 8 other directories.
Date: Wed, 19 Oct 2011 05:39:15 -0400
Message-ID: <201110190939.p9J9dFoP016384@svn01.web.mwc.hst.phx2.redhat.com>
--===============4720669030873316967==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: alessio.soldano(a)jboss.com
Date: 2011-10-19 05:39:14 -0400 (Wed, 19 Oct 2011)
New Revision: 15134
Modified:
shared-testsuite/trunk/testsuite/src/test/ant-import/build-samples-jaxrp=
c.xml
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc/=
samples/docstyle/bare/TrivialServiceDocBareTestCase.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc/=
samples/docstyle/wrapped/TrivialServiceDocWrappedTestCase.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc/=
samples/exception/ExceptionTestCase.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc/=
samples/handler/HeaderClientTestCase.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc/=
samples/holder/HolderTestCase.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc/=
samples/message/MessageTestCase.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc/=
samples/mtom/MTOMTestCase.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc/=
samples/oneway/OneWayTestCase.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc/=
samples/rpcstyle/TrivialServiceRpcTestCase.java
Log:
Updating some jaxrpc tests to avoid relying on remote jndi lookup
Modified: shared-testsuite/trunk/testsuite/src/test/ant-import/build-sample=
s-jaxrpc.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/ant-import/build-samples-jaxr=
pc.xml 2011-10-19 09:33:41 UTC (rev 15133)
+++ shared-testsuite/trunk/testsuite/src/test/ant-import/build-samples-jaxr=
pc.xml 2011-10-19 09:39:14 UTC (rev 15134)
@@ -292,6 +292,9 @@
+
+
+
@@ -318,6 +321,9 @@
+
+
+
Modified: shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/=
jaxrpc/samples/docstyle/bare/TrivialServiceDocBareTestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc=
/samples/docstyle/bare/TrivialServiceDocBareTestCase.java 2011-10-19 09:33:=
41 UTC (rev 15133)
+++ shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc=
/samples/docstyle/bare/TrivialServiceDocBareTestCase.java 2011-10-19 09:39:=
14 UTC (rev 15134)
@@ -21,8 +21,12 @@
*/
package org.jboss.test.ws.jaxrpc.samples.docstyle.bare;
=
+import java.net.URL;
+
import javax.naming.InitialContext;
+import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
+import javax.xml.rpc.ServiceFactory;
=
import junit.framework.Test;
=
@@ -37,6 +41,8 @@
*/
public class TrivialServiceDocBareTestCase extends JBossWSTest
{
+ private static final String TARGET_NAMESPACE =3D "http://org.jboss.ws/s=
amples/docstyle/bare";
+ private static final String TARGET_ENDPOINT_URL =3D "http://" + getServ=
erHost() + ":8080/jaxrpc-samples-docstyle-bare";
private static TrivialService port;
=
public static Test suite()
@@ -50,12 +56,15 @@
=
if (port =3D=3D null)
{
- InitialContext iniCtx =3D getInitialContext();
- Object obj =3D iniCtx.lookup("java:comp/env/service/TrivialServic=
e");
- Service service =3D (Service)obj;
- port =3D (TrivialService)service.getPort(TrivialService.class);
+ port =3D getService(TrivialService.class, "SampleService", "Trivi=
alServicePort");
}
}
+ =
+ protected T getService(final Class clazz, final String serviceNa=
me, final String portName) throws Exception {
+ ServiceFactory serviceFactory =3D ServiceFactory.newInstance();
+ Service service =3D serviceFactory.createService(new URL(TARGET_ENDP=
OINT_URL + "?wsdl"), new QName(TARGET_NAMESPACE, serviceName));
+ return (T) service.getPort(new QName(TARGET_NAMESPACE, portName), cl=
azz);
+ }
=
public void testProducPurchase() throws Exception
{
Modified: shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/=
jaxrpc/samples/docstyle/wrapped/TrivialServiceDocWrappedTestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc=
/samples/docstyle/wrapped/TrivialServiceDocWrappedTestCase.java 2011-10-19 =
09:33:41 UTC (rev 15133)
+++ shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc=
/samples/docstyle/wrapped/TrivialServiceDocWrappedTestCase.java 2011-10-19 =
09:39:14 UTC (rev 15134)
@@ -21,8 +21,12 @@
*/
package org.jboss.test.ws.jaxrpc.samples.docstyle.wrapped;
=
+import java.net.URL;
+
import javax.naming.InitialContext;
+import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
+import javax.xml.rpc.ServiceFactory;
=
import junit.framework.Test;
=
@@ -37,6 +41,8 @@
*/
public class TrivialServiceDocWrappedTestCase extends JBossWSTest
{
+ private static final String TARGET_NAMESPACE =3D "http://org.jboss.ws/s=
amples/docstyle/wrapped";
+ private static final String TARGET_ENDPOINT_URL =3D "http://" + getServ=
erHost() + ":8080/jaxrpc-samples-docstyle-wrapped";
private static TrivialService port;
=
public static Test suite()
@@ -50,11 +56,15 @@
=
if (port =3D=3D null)
{
- InitialContext iniCtx =3D getInitialContext();
- Service service =3D (Service)iniCtx.lookup("java:comp/env/service=
/TrivialService");
- port =3D (TrivialService)service.getPort(TrivialService.class);
+ port =3D getService(TrivialService.class, "SampleService", "Trivi=
alServicePort");
}
}
+ =
+ protected T getService(final Class clazz, final String serviceNa=
me, final String portName) throws Exception {
+ ServiceFactory serviceFactory =3D ServiceFactory.newInstance();
+ Service service =3D serviceFactory.createService(new URL(TARGET_ENDP=
OINT_URL + "?wsdl"), new QName(TARGET_NAMESPACE, serviceName));
+ return (T) service.getPort(new QName(TARGET_NAMESPACE, portName), cl=
azz);
+ }
=
public void testProducTrivial() throws Exception
{
Modified: shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/=
jaxrpc/samples/exception/ExceptionTestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc=
/samples/exception/ExceptionTestCase.java 2011-10-19 09:33:41 UTC (rev 1513=
3)
+++ shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc=
/samples/exception/ExceptionTestCase.java 2011-10-19 09:39:14 UTC (rev 1513=
4)
@@ -22,6 +22,7 @@
package org.jboss.test.ws.jaxrpc.samples.exception;
=
import java.io.ByteArrayInputStream;
+import java.net.URL;
import java.rmi.RemoteException;
=
import javax.naming.InitialContext;
@@ -55,6 +56,7 @@
public class ExceptionTestCase extends JBossWSTest
{
private static final String TARGET_NAMESPACE =3D "http://org.jboss.ws/s=
amples/exception";
+ private static final String TARGET_ENDPOINT_URL =3D "http://" + getServ=
erHost() + ":8080/jaxrpc-samples-exception";
=
public static Test suite() throws Exception
{
@@ -63,10 +65,9 @@
=
private ExceptionServiceInterface getPort() throws Exception
{
- InitialContext iniCtx =3D getInitialContext();
- ExceptionService service =3D (ExceptionService)iniCtx.lookup("java:c=
omp/env/service/ExceptionService");
- ExceptionServiceInterface port =3D service.getPort();
- return port;
+ ServiceFactory serviceFactory =3D ServiceFactory.newInstance();
+ Service service =3D serviceFactory.createService(new URL(TARGET_ENDP=
OINT_URL + "?wsdl"), new QName(TARGET_NAMESPACE, "ExceptionService"));
+ return (ExceptionServiceInterface)service.getPort(new QName(TARGET_N=
AMESPACE, "ExceptionServiceInterfacePort"), ExceptionServiceInterface.class=
);
}
=
/** Test creation of a SOAPFault */
Modified: shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/=
jaxrpc/samples/handler/HeaderClientTestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc=
/samples/handler/HeaderClientTestCase.java 2011-10-19 09:33:41 UTC (rev 151=
33)
+++ shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc=
/samples/handler/HeaderClientTestCase.java 2011-10-19 09:39:14 UTC (rev 151=
34)
@@ -21,8 +21,12 @@
*/
package org.jboss.test.ws.jaxrpc.samples.handler;
=
+import java.net.URL;
+
import javax.naming.InitialContext;
+import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
+import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.holders.StringHolder;
=
import junit.framework.Test;
@@ -39,6 +43,7 @@
public class HeaderClientTestCase extends JBossWSTest
{
public final String TARGET_ENDPOINT_ADDRESS =3D "http://" + getServerHo=
st() + ":8080/jaxrpc-samples-handler";
+ private static final String TARGET_NAMESPACE =3D "http://org.jboss.ws/s=
amples/handler";
=
private static HeaderTestService port;
=
@@ -53,11 +58,15 @@
=
if (port =3D=3D null)
{
- InitialContext iniCtx =3D getInitialContext();
- Service service =3D (Service)iniCtx.lookup("java:comp/env/service=
/TestService");
- port =3D (HeaderTestService)service.getPort(HeaderTestService.cla=
ss);
+ port =3D getService(HeaderTestService.class, "TestService", "Head=
erTestServicePort");
}
}
+ =
+ protected T getService(final Class clazz, final String serviceNa=
me, final String portName) throws Exception {
+ ServiceFactory serviceFactory =3D ServiceFactory.newInstance();
+ Service service =3D serviceFactory.createService(new URL(TARGET_ENDP=
OINT_ADDRESS + "?wsdl"), new QName(TARGET_NAMESPACE, serviceName));
+ return (T) service.getPort(new QName(TARGET_NAMESPACE, portName), cl=
azz);
+ }
=
public void testBoundInHeader() throws Exception
{
Modified: shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/=
jaxrpc/samples/holder/HolderTestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc=
/samples/holder/HolderTestCase.java 2011-10-19 09:33:41 UTC (rev 15133)
+++ shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc=
/samples/holder/HolderTestCase.java 2011-10-19 09:39:14 UTC (rev 15134)
@@ -23,11 +23,13 @@
=
import java.math.BigDecimal;
import java.math.BigInteger;
+import java.net.URL;
import java.util.GregorianCalendar;
=
import javax.naming.InitialContext;
import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
+import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.holders.BigDecimalHolder;
import javax.xml.rpc.holders.BigIntegerHolder;
import javax.xml.rpc.holders.BooleanHolder;
@@ -62,6 +64,9 @@
*/
public class HolderTestCase extends JBossWSTest
{
+ private static final String TARGET_ENDPOINT_URL =3D "http://" + getServ=
erHost() + ":8080/jaxrpc-samples-holder";
+ private static final String TARGET_NAMESPACE =3D "http://org.jboss.ws/s=
amples/holder";
+ =
private static HolderTestService port;
=
public static Test suite()
@@ -75,11 +80,15 @@
=
if (port =3D=3D null)
{
- InitialContext iniCtx =3D getInitialContext();
- Service service =3D (Service)iniCtx.lookup("java:comp/env/service=
/TestService");
- port =3D (HolderTestService)service.getPort(HolderTestService.cla=
ss);
+ port =3D getService(HolderTestService.class, "TestService", "Hold=
erTestServicePort");
}
}
+ =
+ protected T getService(final Class clazz, final String serviceNa=
me, final String portName) throws Exception {
+ ServiceFactory serviceFactory =3D ServiceFactory.newInstance();
+ Service service =3D serviceFactory.createService(new URL(TARGET_ENDP=
OINT_URL + "?wsdl"), new QName(TARGET_NAMESPACE, serviceName));
+ return (T) service.getPort(new QName(TARGET_NAMESPACE, portName), cl=
azz);
+ }
=
public void testEchoBigDecimal() throws Exception
{
Modified: shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/=
jaxrpc/samples/message/MessageTestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc=
/samples/message/MessageTestCase.java 2011-10-19 09:33:41 UTC (rev 15133)
+++ shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc=
/samples/message/MessageTestCase.java 2011-10-19 09:39:14 UTC (rev 15134)
@@ -30,6 +30,7 @@
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.rpc.Service;
+import javax.xml.rpc.ServiceFactory;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPConnection;
@@ -61,6 +62,7 @@
public class MessageTestCase extends JBossWSTest
{
private final String TARGET_ENDPOINT =3D "http://" + getServerHost() + =
":8080/jaxrpc-samples-message";
+ private static final String TARGET_NAMESPACE =3D "http://org.jboss.ws/s=
amples/message";
=
/** Deploy the test ear */
public static Test suite() throws Exception
@@ -129,12 +131,11 @@
=
private MessageTestService getPort() throws Exception
{
- InitialContext iniCtx =3D getInitialContext();
- Service service =3D (Service)iniCtx.lookup("java:comp/env/service/Me=
ssageService");
- MessageTestService port =3D (MessageTestService)service.getPort(Mess=
ageTestService.class);
- return port;
+ ServiceFactory serviceFactory =3D ServiceFactory.newInstance();
+ Service service =3D serviceFactory.createService(new URL(TARGET_ENDP=
OINT + "?wsdl"), new QName(TARGET_NAMESPACE, "MessageService"));
+ return (MessageTestService)service.getPort(new QName(TARGET_NAMESPAC=
E, "MessageTestServicePort"), MessageTestService.class);
}
-
+ =
private SOAPElement convertToSOAPElement(Element reqElement) throws Tra=
nsformerException, SOAPException
{
SOAPElement parent =3D SOAPFactory.newInstance().createElement("dumm=
y");
Modified: shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/=
jaxrpc/samples/mtom/MTOMTestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc=
/samples/mtom/MTOMTestCase.java 2011-10-19 09:33:41 UTC (rev 15133)
+++ shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc=
/samples/mtom/MTOMTestCase.java 2011-10-19 09:39:14 UTC (rev 15134)
@@ -24,10 +24,13 @@
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.InputStreamReader;
+import java.net.URL;
=
import javax.activation.DataHandler;
import javax.naming.InitialContext;
+import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
+import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.Stub;
import javax.xml.transform.stream.StreamSource;
=
@@ -45,6 +48,9 @@
*/
public class MTOMTestCase extends JBossWSTest
{
+ private static final String TARGET_NAMESPACE =3D "http://org.jboss.ws/s=
amples/mtom";
+ private static final String TARGET_ENDPOINT_URL =3D "http://" + getServ=
erHost() + ":8080/jaxrpc-samples-mtom";
+ =
private static EmployeeRecords port;
=
/** Deploy the test ear */
@@ -59,11 +65,15 @@
=
if (port =3D=3D null)
{
- InitialContext iniCtx =3D getInitialContext();
- Service service =3D (Service)iniCtx.lookup("java:comp/env/service=
/XOPTestService");
- port =3D (EmployeeRecords)service.getPort(EmployeeRecords.class);
+ port =3D getService(EmployeeRecords.class, "EmployeeService", "Em=
ployeeRecordsPort");
}
}
+ =
+ protected T getService(final Class clazz, final String serviceNa=
me, final String portName) throws Exception {
+ ServiceFactory serviceFactory =3D ServiceFactory.newInstance();
+ Service service =3D serviceFactory.createService(new URL(TARGET_ENDP=
OINT_URL + "?wsdl"), new QName(TARGET_NAMESPACE, serviceName));
+ return (T) service.getPort(new QName(TARGET_NAMESPACE, portName), cl=
azz);
+ }
=
public void testUpdate() throws Exception
{
Modified: shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/=
jaxrpc/samples/oneway/OneWayTestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc=
/samples/oneway/OneWayTestCase.java 2011-10-19 09:33:41 UTC (rev 15133)
+++ shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc=
/samples/oneway/OneWayTestCase.java 2011-10-19 09:39:14 UTC (rev 15134)
@@ -21,8 +21,12 @@
*/
package org.jboss.test.ws.jaxrpc.samples.oneway;
=
+import java.net.URL;
+
import javax.naming.InitialContext;
+import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
+import javax.xml.rpc.ServiceFactory;
=
import junit.framework.Test;
=
@@ -37,6 +41,9 @@
*/
public class OneWayTestCase extends JBossWSTest
{
+ private static final String TARGET_ENDPOINT_URL =3D "http://" + getServ=
erHost() + ":8080/jaxrpc-samples-oneway";
+ private static final String TARGET_NAMESPACE =3D "http://org.jboss.ws/s=
amples/oneway";
+ =
private static OneWayTestService port;
=
public static Test suite()
@@ -50,11 +57,15 @@
=
if (port =3D=3D null)
{
- InitialContext iniCtx =3D getInitialContext();
- Service service =3D (Service)iniCtx.lookup("java:comp/env/service=
/TestService");
- port =3D (OneWayTestService)service.getPort(OneWayTestService.cla=
ss);
+ port =3D getService(OneWayTestService.class, "TestService", "OneW=
ayTestServicePort");
}
}
+ =
+ protected T getService(final Class clazz, final String serviceNa=
me, final String portName) throws Exception {
+ ServiceFactory serviceFactory =3D ServiceFactory.newInstance();
+ Service service =3D serviceFactory.createService(new URL(TARGET_ENDP=
OINT_URL + "?wsdl"), new QName(TARGET_NAMESPACE, serviceName));
+ return (T) service.getPort(new QName(TARGET_NAMESPACE, portName), cl=
azz);
+ }
=
public void testOneWay() throws Exception
{
Modified: shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/=
jaxrpc/samples/rpcstyle/TrivialServiceRpcTestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc=
/samples/rpcstyle/TrivialServiceRpcTestCase.java 2011-10-19 09:33:41 UTC (r=
ev 15133)
+++ shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc=
/samples/rpcstyle/TrivialServiceRpcTestCase.java 2011-10-19 09:39:14 UTC (r=
ev 15134)
@@ -21,8 +21,12 @@
*/
package org.jboss.test.ws.jaxrpc.samples.rpcstyle;
=
+import java.net.URL;
+
import javax.naming.InitialContext;
+import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
+import javax.xml.rpc.ServiceFactory;
=
import junit.framework.Test;
=
@@ -37,6 +41,9 @@
*/
public class TrivialServiceRpcTestCase extends JBossWSTest
{
+ private static final String TARGET_ENDPOINT_URL =3D "http://" + getServ=
erHost() + ":8080/jaxrpc-samples-rpcstyle";
+ private static final String TARGET_NAMESPACE =3D "http://org.jboss.ws/s=
amples/rpcstyle";
+ =
private static TrivialService port;
=
public static Test suite()
@@ -50,11 +57,15 @@
=
if (port =3D=3D null)
{
- InitialContext iniCtx =3D getInitialContext();
- Service service =3D (Service)iniCtx.lookup("java:comp/env/service=
/TrivialService");
- port =3D (TrivialService)service.getPort(TrivialService.class);
+ port =3D getService(TrivialService.class, "SampleService", "Trivi=
alServicePort");
}
}
+ =
+ protected T getService(final Class clazz, final String serviceNa=
me, final String portName) throws Exception {
+ ServiceFactory serviceFactory =3D ServiceFactory.newInstance();
+ Service service =3D serviceFactory.createService(new URL(TARGET_ENDP=
OINT_URL + "?wsdl"), new QName(TARGET_NAMESPACE, serviceName));
+ return (T) service.getPort(new QName(TARGET_NAMESPACE, portName), cl=
azz);
+ }
=
public void testTrivialAccess() throws Exception
{
--===============4720669030873316967==--
From jbossws-commits at lists.jboss.org Wed Oct 19 05:39:53 2011
Content-Type: multipart/mixed; boundary="===============7945802066834569012=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15135 -
stack/cxf/trunk/modules/testsuite.
Date: Wed, 19 Oct 2011 05:39:53 -0400
Message-ID: <201110190939.p9J9dr4j016400@svn01.web.mwc.hst.phx2.redhat.com>
--===============7945802066834569012==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: alessio.soldano(a)jboss.com
Date: 2011-10-19 05:39:53 -0400 (Wed, 19 Oct 2011)
New Revision: 15135
Modified:
stack/cxf/trunk/modules/testsuite/pom.xml
Log:
Enabling some jaxrpc tests
Modified: stack/cxf/trunk/modules/testsuite/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/testsuite/pom.xml 2011-10-19 09:39:14 UTC (rev =
15134)
+++ stack/cxf/trunk/modules/testsuite/pom.xml 2011-10-19 09:39:53 UTC (rev =
15135)
@@ -1161,6 +1161,11 @@
2.0.0-beta-1
+ javassist
+ javassist
+ 3.12.1.GA
+
+
org.jboss
jboss-common-core
@@ -1329,20 +1334,20 @@
org/jboss/test/ws/jaxws/samples/jaxr/**
=
-
- org/jboss/test/ws/jaxrpc/samples/docstyle/**
- org/jboss/test/ws/jaxrpc/samples/exception/**
- org/jboss/test/ws/jaxrpc/samples/handler/**
+
org/jboss/test/ws/jaxrpc/samples/jsr109ejb/**
org/jboss/test/ws/jaxrpc/samples/jsr109pojo/**=
exclude>
- org/jboss/test/ws/jaxrpc/samples/message/**
+ org/jboss/test/ws/jaxrpc/samples/secureejb/**
+ org/jboss/test/ws/jaxrpc/samples/serviceref/Serv=
iceRefClientTestCase*
+ org/jboss/test/ws/jaxrpc/samples/serviceref/Serv=
iceRefEJBTestCase*
+
+
org/jboss/test/ws/jaxrpc/samples/mtom/**
- org/jboss/test/ws/jaxrpc/samples/oneway/**
- org/jboss/test/ws/jaxrpc/samples/rpcstyle/**
- org/jboss/test/ws/jaxrpc/samples/secureejb/**
- org/jboss/test/ws/jaxrpc/samples/serviceref/**=
exclude>
org/jboss/test/ws/jaxrpc/samples/swa/**
=
+
+ org/jboss/test/ws/jaxrpc/samples/handler/**
+
--===============7945802066834569012==--
From jbossws-commits at lists.jboss.org Wed Oct 19 05:59:18 2011
Content-Type: multipart/mixed; boundary="===============8496458762390952753=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15136 - in
spi/trunk/src/main/java/org/jboss/wsf/spi: deployment and 1 other directory.
Date: Wed, 19 Oct 2011 05:59:17 -0400
Message-ID: <201110190959.p9J9xHsc018354@svn01.web.mwc.hst.phx2.redhat.com>
--===============8496458762390952753==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-19 05:59:17 -0400 (Wed, 19 Oct 2011)
New Revision: 15136
Modified:
spi/trunk/src/main/java/org/jboss/wsf/spi/annotation/WebContextImpl.java
spi/trunk/src/main/java/org/jboss/wsf/spi/deployment/Service.java
Log:
[JBAS-8363] clarifying API - endpoint can be deployed to one virtual host o=
nly
Modified: spi/trunk/src/main/java/org/jboss/wsf/spi/annotation/WebContextIm=
pl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- spi/trunk/src/main/java/org/jboss/wsf/spi/annotation/WebContextImpl.jav=
a 2011-10-19 09:39:53 UTC (rev 15135)
+++ spi/trunk/src/main/java/org/jboss/wsf/spi/annotation/WebContextImpl.jav=
a 2011-10-19 09:59:17 UTC (rev 15136)
@@ -36,7 +36,7 @@
{
private String contextRoot =3D "";
private String authmethod =3D "";
- private String[] virtualHosts =3D new String[] {};
+ private String virtualHost =3D "";
private String urlpattern =3D "";
private String transportGuarantee =3D "";
private boolean securedWsdl =3D false;
@@ -59,18 +59,18 @@
}
=
/**
- * The virtual hosts that the web service endpoint is deployed to.
+ * The virtual host that the web service endpoint is deployed to.
*
* Applies to server side port components only.
*/
- public String[] virtualHosts(){
- return virtualHosts;
+ public String virtualHost() {
+ return virtualHost;
};
=
=
- public void setVirtualHosts(String[] virtualHosts)
+ public void setVirtualHost(String virtualHost)
{
- this.virtualHosts =3D virtualHosts;
+ this.virtualHost =3D virtualHost;
}
=
/**
Modified: spi/trunk/src/main/java/org/jboss/wsf/spi/deployment/Service.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- spi/trunk/src/main/java/org/jboss/wsf/spi/deployment/Service.java 2011-=
10-19 09:39:53 UTC (rev 15135)
+++ spi/trunk/src/main/java/org/jboss/wsf/spi/deployment/Service.java 2011-=
10-19 09:59:17 UTC (rev 15136)
@@ -58,10 +58,10 @@
/** Set the context root for this service */
void setContextRoot(String contextRoot);
=
- /** Get the virtual hosts for this service */
- List getVirtualHosts();
+ /** Get the virtual host for this service */
+ String getVirtualHost();
=
- /** Set the virtual hosts for this service */
- void setVirtualHosts(List virtualHosts);
+ /** Set the virtual host for this service */
+ void setVirtualHost(String virtualHost);
=
}
--===============8496458762390952753==--
From jbossws-commits at lists.jboss.org Wed Oct 19 06:04:10 2011
Content-Type: multipart/mixed; boundary="===============3367598083828719038=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15137 -
common/trunk/src/main/java/org/jboss/ws/common/deployment.
Date: Wed, 19 Oct 2011 06:04:10 -0400
Message-ID: <201110191004.p9JA4A7i024825@svn01.web.mwc.hst.phx2.redhat.com>
--===============3367598083828719038==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-19 06:04:10 -0400 (Wed, 19 Oct 2011)
New Revision: 15137
Modified:
common/trunk/src/main/java/org/jboss/ws/common/deployment/DefaultService=
.java
common/trunk/src/main/java/org/jboss/ws/common/deployment/Message.proper=
ties
common/trunk/src/main/java/org/jboss/ws/common/deployment/VirtualHostDep=
loymentAspect.java
Log:
[JBAS-8363] clarifying API - endpoint can be deployed to one virtual host o=
nly
Modified: common/trunk/src/main/java/org/jboss/ws/common/deployment/Default=
Service.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- common/trunk/src/main/java/org/jboss/ws/common/deployment/DefaultServic=
e.java 2011-10-19 09:59:17 UTC (rev 15136)
+++ common/trunk/src/main/java/org/jboss/ws/common/deployment/DefaultServic=
e.java 2011-10-19 10:04:10 UTC (rev 15137)
@@ -45,7 +45,7 @@
private Deployment dep;
private List endpoints =3D new LinkedList();
private String contextRoot;
- private List virtualHosts;
+ private String virtualHost;
=
DefaultService()
{
@@ -110,24 +110,14 @@
this.contextRoot =3D contextRoot;
}
=
- public List getVirtualHosts()
+ public String getVirtualHost()
{
- if ( virtualHosts !=3D null )
- {
- final List retVal =3D new LinkedList();
- for ( String virtualHost : virtualHosts )
- {
- retVal.add( virtualHost );
- }
- return retVal;
- }
- =
- return null;
+ return virtualHost;
}
=
- public void setVirtualHosts(List virtualHosts)
+ public void setVirtualHost(String virtualHost)
{
- this.virtualHosts =3D virtualHosts; =
+ this.virtualHost =3D virtualHost; =
}
=
}
Modified: common/trunk/src/main/java/org/jboss/ws/common/deployment/Message=
.properties
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- common/trunk/src/main/java/org/jboss/ws/common/deployment/Message.prope=
rties 2011-10-19 09:59:17 UTC (rev 15136)
+++ common/trunk/src/main/java/org/jboss/ws/common/deployment/Message.prope=
rties 2011-10-19 10:04:10 UTC (rev 15137)
@@ -13,7 +13,7 @@
INVOCATION_HANDLER_NOT_AVAILABLE=3DInvocation handler not available
CANNOT_STOP_ENDPOINT_IN_STATE=3DCannot stop endpoint in state: {0}
COULD_NOT_FIND_IN_THE_ADDITIONAL_METADATAFILES=3DCould not find {0} in the=
additional metadatafiles!
-VIRTUALHOSTS_MUST_BE_THE_SAME_FOR_ALL_DEPLOYED_ENDPOINTS=3DvirtualHosts mu=
st be the same for all deployed endpoints
+VIRTUALHOST_MUST_BE_THE_SAME_FOR_ALL_DEPLOYED_ENDPOINTS=3DvirtualHost must=
be the same for all deployed endpoints
CANNOT_OBTAIN_SERVLET_MAPPING_FOR=3DCannot obtain servlet mapping for: {0}
LIFECYCLEHANDLER_NOT_INITIALISED=3DLifecycleHandler not initialised
CANNOT_OBTAIN_CONTEXT_ROOT=3DCannot obtain context root
Modified: common/trunk/src/main/java/org/jboss/ws/common/deployment/Virtual=
HostDeploymentAspect.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- common/trunk/src/main/java/org/jboss/ws/common/deployment/VirtualHostDe=
ploymentAspect.java 2011-10-19 09:59:17 UTC (rev 15136)
+++ common/trunk/src/main/java/org/jboss/ws/common/deployment/VirtualHostDe=
ploymentAspect.java 2011-10-19 10:04:10 UTC (rev 15137)
@@ -24,8 +24,6 @@
=
import static org.jboss.ws.common.integration.WSHelper.isJaxwsEjbDeploymen=
t;
=
-import java.util.Arrays;
-import java.util.List;
import java.util.ResourceBundle;
=
import org.jboss.ws.api.annotation.WebContext;
@@ -35,12 +33,12 @@
import org.jboss.wsf.spi.deployment.Endpoint;
=
/**
- * A deployer that assigns the virtual hosts to the service =
+ * A deployment aspect that assigns the virtual host to a WS service. =
*
* @author darran.lofthouse(a)jboss.com
- * @since 10-Jul-2008
+ * @author Richard Opalka
*/
-public class VirtualHostDeploymentAspect extends AbstractDeploymentAspect
+public final class VirtualHostDeploymentAspect extends AbstractDeploymentA=
spect
{
private static final ResourceBundle bundle =3D BundleUtils.getBundle(Vi=
rtualHostDeploymentAspect.class);
=
@@ -49,48 +47,41 @@
{
if (isJaxwsEjbDeployment(dep))
{
- dep.getService().setVirtualHosts(getExplicitVirtualHosts(dep));
+ dep.getService().setVirtualHost(getExplicitVirtualHost(dep));
}
}
=
- protected List getExplicitVirtualHosts(Deployment dep)
+ protected String getExplicitVirtualHost(final Deployment dep)
{
- String[] virtualHosts =3D null;
+ String virtualHost =3D null;
=
- // Use the virtual hosts from @WebContext.virtualHosts
- for (Endpoint ep : dep.getService().getEndpoints())
+ for (final Endpoint ep : dep.getService().getEndpoints())
{
- Class> implClass =3D ep.getTargetBeanClass();
- WebContext anWebContext =3D (WebContext)implClass.getAnnotation(W=
ebContext.class);
- if (anWebContext !=3D null && anWebContext.virtualHosts() !=3D nu=
ll && anWebContext.virtualHosts().length > 0)
- {
- String[] anVirtualHosts =3D anWebContext.virtualHosts();
- // Avoid modifying the annotation values.
- String[] temp =3D new String[anVirtualHosts.length];
- System.arraycopy(anVirtualHosts, 0, temp, 0, anVirtualHosts.le=
ngth);
- Arrays.sort(temp);
+ final Class> implClass =3D ep.getTargetBeanClass();
+ final WebContext webContext =3D implClass.getAnnotation(WebContex=
t.class);
=
- if (virtualHosts =3D=3D null)
+ if (hasVirtualHost(webContext))
+ {
+ final String currentVirtualHost =3D webContext.virtualHost().t=
rim();
+ if (virtualHost =3D=3D null)
{
- virtualHosts =3D temp;
+ virtualHost =3D currentVirtualHost;
}
else
{
- if (Arrays.equals(virtualHosts, temp) =3D=3D false)
+ if (!currentVirtualHost.equals(virtualHost))
{
- throw new IllegalStateException(BundleUtils.getMessage(b=
undle, "VIRTUALHOSTS_MUST_BE_THE_SAME_FOR_ALL_DEPLOYED_ENDPOINTS"));
+ throw new IllegalStateException(BundleUtils.getMessage(b=
undle, "VIRTUALHOST_MUST_BE_THE_SAME_FOR_ALL_DEPLOYED_ENDPOINTS"));
}
}
}
}
=
- if ( virtualHosts !=3D null )
- {
- return Arrays.asList(virtualHosts);
- }
- else
- {
- return null;
- }
+ return virtualHost;
}
+
+ private static boolean hasVirtualHost(final WebContext webContext) {
+ return webContext !=3D null && webContext.virtualHost().trim().leng=
th() > 0;
+ }
+
}
--===============3367598083828719038==--
From jbossws-commits at lists.jboss.org Wed Oct 19 06:12:31 2011
Content-Type: multipart/mixed; boundary="===============2362295520028402334=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15138 -
container/jboss60/branches/jbossws-jboss600/src/main/java/org/jboss/webservices/integration/tomcat.
Date: Wed, 19 Oct 2011 06:12:30 -0400
Message-ID: <201110191012.p9JACUYi025647@svn01.web.mwc.hst.phx2.redhat.com>
--===============2362295520028402334==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-19 06:12:30 -0400 (Wed, 19 Oct 2011)
New Revision: 15138
Modified:
container/jboss60/branches/jbossws-jboss600/src/main/java/org/jboss/webs=
ervices/integration/tomcat/WebMetaDataCreator.java
Log:
sync with SPI
Modified: container/jboss60/branches/jbossws-jboss600/src/main/java/org/jbo=
ss/webservices/integration/tomcat/WebMetaDataCreator.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- container/jboss60/branches/jbossws-jboss600/src/main/java/org/jboss/web=
services/integration/tomcat/WebMetaDataCreator.java 2011-10-19 10:04:10 UTC=
(rev 15137)
+++ container/jboss60/branches/jbossws-jboss600/src/main/java/org/jboss/web=
services/integration/tomcat/WebMetaDataCreator.java 2011-10-19 10:12:30 UTC=
(rev 15138)
@@ -21,6 +21,7 @@
*/
package org.jboss.webservices.integration.tomcat;
=
+import java.util.Arrays;
import java.util.List;
=
import org.jboss.deployers.structure.spi.DeploymentUnit;
@@ -136,9 +137,12 @@
}
=
// Set virtual hosts
- final List virtualHosts =3D dep.getService().getVirtualHosts=
();
- this.log.debug("Setting virtual hosts: " + virtualHosts);
- jbossWebMD.setVirtualHosts(virtualHosts);
+ final String virtualHost =3D dep.getService().getVirtualHost();
+ if (virtualHost !=3D null)
+ {
+ this.log.debug("Setting virtual host: " + virtualHost);
+ jbossWebMD.setVirtualHosts(Arrays.asList(virtualHost));
+ }
}
=
/**
--===============2362295520028402334==--
From jbossws-commits at lists.jboss.org Wed Oct 19 06:14:05 2011
Content-Type: multipart/mixed; boundary="===============7515006310789194769=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15139 -
container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/webservices/integration/tomcat.
Date: Wed, 19 Oct 2011 06:14:05 -0400
Message-ID: <201110191014.p9JAE5NM025659@svn01.web.mwc.hst.phx2.redhat.com>
--===============7515006310789194769==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-19 06:14:04 -0400 (Wed, 19 Oct 2011)
New Revision: 15139
Modified:
container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/webs=
ervices/integration/tomcat/WebMetaDataCreator.java
Log:
sync with SPI
Modified: container/jboss60/branches/jbossws-jboss610/src/main/java/org/jbo=
ss/webservices/integration/tomcat/WebMetaDataCreator.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/tomcat/WebMetaDataCreator.java 2011-10-19 10:12:30 UTC=
(rev 15138)
+++ container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/tomcat/WebMetaDataCreator.java 2011-10-19 10:14:04 UTC=
(rev 15139)
@@ -21,6 +21,7 @@
*/
package org.jboss.webservices.integration.tomcat;
=
+import java.util.Arrays;
import java.util.List;
=
import org.jboss.deployers.structure.spi.DeploymentUnit;
@@ -136,9 +137,12 @@
}
=
// Set virtual hosts
- final List virtualHosts =3D dep.getService().getVirtualHosts=
();
- this.log.debug("Setting virtual hosts: " + virtualHosts);
- jbossWebMD.setVirtualHosts(virtualHosts);
+ final String virtualHost =3D dep.getService().getVirtualHost();
+ if (virtualHost !=3D null)
+ {
+ this.log.debug("Setting virtual host: " + virtualHost);
+ jbossWebMD.setVirtualHosts(Arrays.asList(virtualHost));
+ }
}
=
/**
--===============7515006310789194769==--
From jbossws-commits at lists.jboss.org Wed Oct 19 06:18:20 2011
Content-Type: multipart/mixed; boundary="===============1167897787193622620=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15140 -
container/jboss70/branches/jbossws-jboss700/src/main/java/org/jboss/as/webservices/tomcat.
Date: Wed, 19 Oct 2011 06:18:19 -0400
Message-ID: <201110191018.p9JAIJMi026344@svn01.web.mwc.hst.phx2.redhat.com>
--===============1167897787193622620==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-19 06:18:19 -0400 (Wed, 19 Oct 2011)
New Revision: 15140
Modified:
container/jboss70/branches/jbossws-jboss700/src/main/java/org/jboss/as/w=
ebservices/tomcat/WebMetaDataCreator.java
Log:
[JBAS-8363] clarifying API - endpoint can be deployed to one virtual host o=
nly
Modified: container/jboss70/branches/jbossws-jboss700/src/main/java/org/jbo=
ss/as/webservices/tomcat/WebMetaDataCreator.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- container/jboss70/branches/jbossws-jboss700/src/main/java/org/jboss/as/=
webservices/tomcat/WebMetaDataCreator.java 2011-10-19 10:14:04 UTC (rev 151=
39)
+++ container/jboss70/branches/jbossws-jboss700/src/main/java/org/jboss/as/=
webservices/tomcat/WebMetaDataCreator.java 2011-10-19 10:18:19 UTC (rev 151=
40)
@@ -21,6 +21,7 @@
*/
package org.jboss.as.webservices.tomcat;
=
+import java.util.Arrays;
import java.util.List;
=
import org.jboss.as.server.deployment.DeploymentUnit;
@@ -139,9 +140,12 @@
}
=
// Set virtual hosts
- final List virtualHosts =3D dep.getService().getVirtualHos=
ts();
- log.debug("Setting virtual hosts: " + virtualHosts);
- jbossWebMD.setVirtualHosts(virtualHosts);
+ final String virtualHost =3D dep.getService().getVirtualHost();
+ if (virtualHost !=3D null)
+ {
+ log.debug("Setting virtual host: " + virtualHost);
+ jbossWebMD.setVirtualHosts(Arrays.asList(virtualHost));
+ }
}
=
/**
--===============1167897787193622620==--
From jbossws-commits at lists.jboss.org Wed Oct 19 06:52:16 2011
Content-Type: multipart/mixed; boundary="===============1892804708721993863=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15141 - api/trunk.
Date: Wed, 19 Oct 2011 06:52:16 -0400
Message-ID: <201110191052.p9JAqGWn029598@svn01.web.mwc.hst.phx2.redhat.com>
--===============1892804708721993863==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-19 06:52:15 -0400 (Wed, 19 Oct 2011)
New Revision: 15141
Modified:
api/trunk/pom.xml
Log:
prepare for tagging
Modified: api/trunk/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- api/trunk/pom.xml 2011-10-19 10:18:19 UTC (rev 15140)
+++ api/trunk/pom.xml 2011-10-19 10:52:15 UTC (rev 15141)
@@ -7,20 +7,20 @@
jar
JBossWS API
=
- 1.0.0-SNAPSHOT
+ 1.0.0.Alpha4
=
org.jboss.ws
jbossws-parent
- 1.0.10-SNAPSHOT
+ 1.0.10.Alpha2
=
- scm:svn:http://anonsvn.jboss.org/repos/jbossws/api/trunk=
connection>
- scm:svn:https://svn.jboss.org/repos/jbossws/api/t=
runk
- http://fisheye.jboss.com/viewrep/JBossWS/api/trunk
+ scm:svn:http://anonsvn.jboss.org/repos/jbossws/api/tags/jb=
ossws-api-1.0.0.Alpha4
+ scm:svn:https://svn.jboss.org/repos/jbossws/api/t=
ags/jbossws-api-1.0.0.Alpha4
+ http://fisheye.jboss.com/viewrep/JBossWS/api/tags/jbossws-api-1.0=
.0.Alpha4
=
--===============1892804708721993863==--
From jbossws-commits at lists.jboss.org Wed Oct 19 06:53:57 2011
Content-Type: multipart/mixed; boundary="===============0520162825019624608=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15142 - api/trunk.
Date: Wed, 19 Oct 2011 06:53:56 -0400
Message-ID: <201110191053.p9JAruv3029611@svn01.web.mwc.hst.phx2.redhat.com>
--===============0520162825019624608==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-19 06:53:56 -0400 (Wed, 19 Oct 2011)
New Revision: 15142
Modified:
api/trunk/pom.xml
Log:
prepare for tagging
Modified: api/trunk/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- api/trunk/pom.xml 2011-10-19 10:52:15 UTC (rev 15141)
+++ api/trunk/pom.xml 2011-10-19 10:53:56 UTC (rev 15142)
@@ -7,7 +7,7 @@
jar
JBossWS API
=
- 1.0.0.Alpha4
+ 1.0.0.Beta3
=
@@ -18,9 +18,9 @@
=
- scm:svn:http://anonsvn.jboss.org/repos/jbossws/api/tags/jb=
ossws-api-1.0.0.Alpha4
- scm:svn:https://svn.jboss.org/repos/jbossws/api/t=
ags/jbossws-api-1.0.0.Alpha4
- http://fisheye.jboss.com/viewrep/JBossWS/api/tags/jbossws-api-1.0=
.0.Alpha4
+ scm:svn:http://anonsvn.jboss.org/repos/jbossws/api/tags/jb=
ossws-api-1.0.0.Beta3
+ scm:svn:https://svn.jboss.org/repos/jbossws/api/t=
ags/jbossws-api-1.0.0.Beta3
+ http://fisheye.jboss.com/viewrep/JBossWS/api/tags/jbossws-api-1.0=
.0.Beta3
=
--===============0520162825019624608==--
From jbossws-commits at lists.jboss.org Wed Oct 19 06:54:48 2011
Content-Type: multipart/mixed; boundary="===============1985646651055531949=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15143 - api/tags.
Date: Wed, 19 Oct 2011 06:54:47 -0400
Message-ID: <201110191054.p9JAslbO029629@svn01.web.mwc.hst.phx2.redhat.com>
--===============1985646651055531949==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-19 06:54:47 -0400 (Wed, 19 Oct 2011)
New Revision: 15143
Added:
api/tags/jbossws-api-1.0.0.Beta3/
Log:
tagging JBossWS API 1.0.0.Beta3
--===============1985646651055531949==--
From jbossws-commits at lists.jboss.org Wed Oct 19 06:57:39 2011
Content-Type: multipart/mixed; boundary="===============2354411393110385996=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15144 - api/trunk.
Date: Wed, 19 Oct 2011 06:57:39 -0400
Message-ID: <201110191057.p9JAvd4D029985@svn01.web.mwc.hst.phx2.redhat.com>
--===============2354411393110385996==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-19 06:57:39 -0400 (Wed, 19 Oct 2011)
New Revision: 15144
Modified:
api/trunk/pom.xml
Log:
prepare for next dev. cycle
Modified: api/trunk/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- api/trunk/pom.xml 2011-10-19 10:54:47 UTC (rev 15143)
+++ api/trunk/pom.xml 2011-10-19 10:57:39 UTC (rev 15144)
@@ -7,22 +7,22 @@
jar
JBossWS API
=
- 1.0.0.Beta3
+ 1.0.0-SNAPSHOT
=
org.jboss.ws
jbossws-parent
- 1.0.10.Alpha2
+ 1.0.10-SNAPSHOT
=
- scm:svn:http://anonsvn.jboss.org/repos/jbossws/api/tags/jb=
ossws-api-1.0.0.Beta3
- scm:svn:https://svn.jboss.org/repos/jbossws/api/t=
ags/jbossws-api-1.0.0.Beta3
- http://fisheye.jboss.com/viewrep/JBossWS/api/tags/jbossws-api-1.0=
.0.Beta3
+ scm:svn:http://anonsvn.jboss.org/repos/jbossws/api/trunk=
connection>
+ scm:svn:https://svn.jboss.org/repos/jbossws/api/t=
runk
+ http://fisheye.jboss.com/viewrep/JBossWS/api/trunk
- =
+
2.0.5.GA
3.8.2
@@ -38,7 +38,7 @@
${jboss-logging-spi.version}
provided
- =
+
junit
@@ -46,7 +46,7 @@
${junit.version}
test
- =
+
=
--===============2354411393110385996==--
From jbossws-commits at lists.jboss.org Wed Oct 19 07:02:05 2011
Content-Type: multipart/mixed; boundary="===============4895637227407311472=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15145 - spi/trunk.
Date: Wed, 19 Oct 2011 07:02:05 -0400
Message-ID: <201110191102.p9JB25fI004086@svn01.web.mwc.hst.phx2.redhat.com>
--===============4895637227407311472==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-19 07:02:05 -0400 (Wed, 19 Oct 2011)
New Revision: 15145
Modified:
spi/trunk/pom.xml
Log:
prepare for tagging
Modified: spi/trunk/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- spi/trunk/pom.xml 2011-10-19 10:57:39 UTC (rev 15144)
+++ spi/trunk/pom.xml 2011-10-19 11:02:05 UTC (rev 15145)
@@ -7,25 +7,25 @@
jar
JBossWS SPI
=
- 2.0.0-SNAPSHOT
+ 2.0.0.Beta12
=
org.jboss.ws
jbossws-parent
- 1.0.10-SNAPSHOT
+ 1.0.10.Alpha2
=
- scm:svn:http://anonsvn.jboss.org/repos/jbossws/spi/trunk=
connection>
- scm:svn:https://svn.jboss.org/repos/jbossws/spi/t=
runk
- http://fisheye.jboss.com/viewrep/JBossWS/spi/trunk
+ scm:svn:http://anonsvn.jboss.org/repos/jbossws/spi/tags/jb=
ossws-spi-2.0.0.Beta12
+ scm:svn:https://svn.jboss.org/repos/jbossws/spi/t=
ags/jbossws-spi-2.0.0.Beta12
+ http://fisheye.jboss.com/viewrep/JBossWS/spi/tags/jbossws-spi-2.0=
.0.Beta12
=
- 1.0.0-SNAPSHOT
+ 1.0.0.Beta3
1.0.0.Final
2.0.5.GA
1.0.0.Final
--===============4895637227407311472==--
From jbossws-commits at lists.jboss.org Wed Oct 19 07:04:47 2011
Content-Type: multipart/mixed; boundary="===============3111503639034664688=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15146 - spi/tags.
Date: Wed, 19 Oct 2011 07:04:47 -0400
Message-ID: <201110191104.p9JB4lE8004108@svn01.web.mwc.hst.phx2.redhat.com>
--===============3111503639034664688==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-19 07:04:47 -0400 (Wed, 19 Oct 2011)
New Revision: 15146
Added:
spi/tags/jbossws-spi-2.0.0.Beta12/
Log:
tagging JBossWS SPI 2.0.0.Beta12
--===============3111503639034664688==--
From jbossws-commits at lists.jboss.org Wed Oct 19 07:05:11 2011
Content-Type: multipart/mixed; boundary="===============4718931205113908336=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15147 - spi/trunk.
Date: Wed, 19 Oct 2011 07:05:11 -0400
Message-ID: <201110191105.p9JB5BDv004460@svn01.web.mwc.hst.phx2.redhat.com>
--===============4718931205113908336==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-19 07:05:11 -0400 (Wed, 19 Oct 2011)
New Revision: 15147
Modified:
spi/trunk/pom.xml
Log:
prepare for next dev. cycle
Modified: spi/trunk/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- spi/trunk/pom.xml 2011-10-19 11:04:47 UTC (rev 15146)
+++ spi/trunk/pom.xml 2011-10-19 11:05:11 UTC (rev 15147)
@@ -7,25 +7,25 @@
jar
JBossWS SPI
=
- 2.0.0.Beta12
+ 2.0.0-SNAPSHOT
=
org.jboss.ws
jbossws-parent
- 1.0.10.Alpha2
+ 1.0.10-SNAPSHOT
=
- scm:svn:http://anonsvn.jboss.org/repos/jbossws/spi/tags/jb=
ossws-spi-2.0.0.Beta12
- scm:svn:https://svn.jboss.org/repos/jbossws/spi/t=
ags/jbossws-spi-2.0.0.Beta12
- http://fisheye.jboss.com/viewrep/JBossWS/spi/tags/jbossws-spi-2.0=
.0.Beta12
+ scm:svn:http://anonsvn.jboss.org/repos/jbossws/spi/trunk=
connection>
+ scm:svn:https://svn.jboss.org/repos/jbossws/spi/t=
runk
+ http://fisheye.jboss.com/viewrep/JBossWS/spi/trunk
=
- 1.0.0.Beta3
+ 1.0.0-SNAPSHOT
1.0.0.Final
2.0.5.GA
1.0.0.Final
--===============4718931205113908336==--
From jbossws-commits at lists.jboss.org Wed Oct 19 07:09:33 2011
Content-Type: multipart/mixed; boundary="===============2244594580692831663=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15148 - common/trunk.
Date: Wed, 19 Oct 2011 07:09:33 -0400
Message-ID: <201110191109.p9JB9Xmn004487@svn01.web.mwc.hst.phx2.redhat.com>
--===============2244594580692831663==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-19 07:09:32 -0400 (Wed, 19 Oct 2011)
New Revision: 15148
Modified:
common/trunk/pom.xml
Log:
prepare for tagging
Modified: common/trunk/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- common/trunk/pom.xml 2011-10-19 11:05:11 UTC (rev 15147)
+++ common/trunk/pom.xml 2011-10-19 11:09:32 UTC (rev 15148)
@@ -9,25 +9,25 @@
jar
JBossWS Common
=
- 2.0.0-SNAPSHOT
+ 2.0.0.Beta12
=
org.jboss.ws
jbossws-parent
- 1.0.10-SNAPSHOT
+ 1.0.10.Alpha2
=
- scm:svn:http://anonsvn.jboss.org/repos/jbossws/common/trun=
k
- scm:svn:https://svn.jboss.org/repos/jbossws/commo=
n/trunk
- http://fisheye.jboss.com/viewrep/JBossWS/common/trunk
+ scm:svn:http://anonsvn.jboss.org/repos/jbossws/common/tags=
/jbossws-common-2.0.0.Beta12
+ scm:svn:https://svn.jboss.org/repos/jbossws/commo=
n/tags/jbossws-common-2.0.0.Beta12
+ http://fisheye.jboss.com/viewrep/JBossWS/common/tags/jbossws-comm=
on-2.0.0.Beta12
=
- 2.0.0-SNAPSHOT
+ 2.0.0.Beta12
1.0.2.GA
2.2.14.GA
2.0.5.GA
--===============2244594580692831663==--
From jbossws-commits at lists.jboss.org Wed Oct 19 07:13:52 2011
Content-Type: multipart/mixed; boundary="===============4855415586532362615=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15149 - common/tags.
Date: Wed, 19 Oct 2011 07:13:51 -0400
Message-ID: <201110191113.p9JBDpQ3004957@svn01.web.mwc.hst.phx2.redhat.com>
--===============4855415586532362615==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-19 07:13:51 -0400 (Wed, 19 Oct 2011)
New Revision: 15149
Added:
common/tags/jbossws-common-2.0.0.Beta12/
Log:
tagging JBossWS Common 2.0.0.Beta12
--===============4855415586532362615==--
From jbossws-commits at lists.jboss.org Wed Oct 19 07:14:15 2011
Content-Type: multipart/mixed; boundary="===============4337407041674434221=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15150 - common/trunk.
Date: Wed, 19 Oct 2011 07:14:14 -0400
Message-ID: <201110191114.p9JBEEsG004970@svn01.web.mwc.hst.phx2.redhat.com>
--===============4337407041674434221==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-19 07:14:14 -0400 (Wed, 19 Oct 2011)
New Revision: 15150
Modified:
common/trunk/pom.xml
Log:
prepare for next dev. cycle
Modified: common/trunk/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- common/trunk/pom.xml 2011-10-19 11:13:51 UTC (rev 15149)
+++ common/trunk/pom.xml 2011-10-19 11:14:14 UTC (rev 15150)
@@ -9,25 +9,25 @@
jar
JBossWS Common
=
- 2.0.0.Beta12
+ 2.0.0-SNAPSHOT
=
org.jboss.ws
jbossws-parent
- 1.0.10.Alpha2
+ 1.0.10-SNAPSHOT
=
- scm:svn:http://anonsvn.jboss.org/repos/jbossws/common/tags=
/jbossws-common-2.0.0.Beta12
- scm:svn:https://svn.jboss.org/repos/jbossws/commo=
n/tags/jbossws-common-2.0.0.Beta12
- http://fisheye.jboss.com/viewrep/JBossWS/common/tags/jbossws-comm=
on-2.0.0.Beta12
+ scm:svn:http://anonsvn.jboss.org/repos/jbossws/common/trun=
k
+ scm:svn:https://svn.jboss.org/repos/jbossws/commo=
n/trunk
+ http://fisheye.jboss.com/viewrep/JBossWS/common/trunk
=
- 2.0.0.Beta12
+ 2.0.0-SNAPSHOT
1.0.2.GA
2.2.14.GA
2.0.5.GA
--===============4337407041674434221==--
From jbossws-commits at lists.jboss.org Wed Oct 19 07:40:21 2011
Content-Type: multipart/mixed; boundary="===============5850627215723610127=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15151 -
stack/cxf/trunk/modules/testsuite.
Date: Wed, 19 Oct 2011 07:40:20 -0400
Message-ID: <201110191140.p9JBeKrJ007712@svn01.web.mwc.hst.phx2.redhat.com>
--===============5850627215723610127==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-19 07:40:20 -0400 (Wed, 19 Oct 2011)
New Revision: 15151
Modified:
stack/cxf/trunk/modules/testsuite/pom.xml
Log:
updating excludes
Modified: stack/cxf/trunk/modules/testsuite/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/testsuite/pom.xml 2011-10-19 11:14:14 UTC (rev =
15150)
+++ stack/cxf/trunk/modules/testsuite/pom.xml 2011-10-19 11:40:20 UTC (rev =
15151)
@@ -1305,9 +1305,6 @@
=
-
- org/jboss/test/ws/jaxws/jbws1815/**
-
org/jboss/test/ws/jaxws/jbws1813/**
org/jboss/test/ws/jaxws/jbws1841/**
--===============5850627215723610127==--
From jbossws-commits at lists.jboss.org Wed Oct 19 12:50:30 2011
Content-Type: multipart/mixed; boundary="===============0268026162967237274=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15152 - in
stack/native/trunk/modules/testsuite:
native-tests/src/test/java/org/jboss/test/ws/jaxrpc/samples/docstyle/bare and
8 other directories.
Date: Wed, 19 Oct 2011 12:50:30 -0400
Message-ID: <201110191650.p9JGoUd7001609@svn01.web.mwc.hst.phx2.redhat.com>
--===============0268026162967237274==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: alessio.soldano(a)jboss.com
Date: 2011-10-19 12:50:29 -0400 (Wed, 19 Oct 2011)
New Revision: 15152
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbos=
s/test/ws/jaxrpc/samples/docstyle/bare/TrivialServiceDocBareTestCase.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbos=
s/test/ws/jaxrpc/samples/docstyle/wrapped/TrivialServiceDocWrappedTestCase.=
java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbos=
s/test/ws/jaxrpc/samples/exception/ExceptionTestCase.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbos=
s/test/ws/jaxrpc/samples/handler/HeaderClientTestCase.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbos=
s/test/ws/jaxrpc/samples/holder/HolderTestCase.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbos=
s/test/ws/jaxrpc/samples/message/MessageTestCase.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbos=
s/test/ws/jaxrpc/samples/mtom/MTOMTestCase.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbos=
s/test/ws/jaxrpc/samples/oneway/OneWayTestCase.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbos=
s/test/ws/jaxrpc/samples/rpcstyle/TrivialServiceRpcTestCase.java
stack/native/trunk/modules/testsuite/pom.xml
Log:
Enabling further jaxrpc tests
Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/o=
rg/jboss/test/ws/jaxrpc/samples/docstyle/bare/TrivialServiceDocBareTestCase=
.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbo=
ss/test/ws/jaxrpc/samples/docstyle/bare/TrivialServiceDocBareTestCase.java =
2011-10-19 11:40:20 UTC (rev 15151)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbo=
ss/test/ws/jaxrpc/samples/docstyle/bare/TrivialServiceDocBareTestCase.java =
2011-10-19 16:50:29 UTC (rev 15152)
@@ -21,8 +21,12 @@
*/
package org.jboss.test.ws.jaxrpc.samples.docstyle.bare;
=
+import java.net.URL;
+
import javax.naming.InitialContext;
+import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
+import javax.xml.rpc.ServiceFactory;
=
import junit.framework.Test;
=
@@ -37,6 +41,8 @@
*/
public class TrivialServiceDocBareTestCase extends JBossWSTest
{
+ private static final String TARGET_NAMESPACE =3D "http://org.jboss.ws/s=
amples/docstyle/bare";
+ private static final String TARGET_ENDPOINT_URL =3D "http://" + getServ=
erHost() + ":8080/jaxrpc-samples-docstyle-bare";
private static TrivialService port;
=
public static Test suite()
@@ -50,11 +56,15 @@
=
if (port =3D=3D null)
{
- InitialContext iniCtx =3D getInitialContext();
- Service service =3D (Service)iniCtx.lookup("java:comp/env/service=
/TrivialService");
- port =3D (TrivialService)service.getPort(TrivialService.class);
+ port =3D getService(TrivialService.class, "SampleService", "Trivi=
alServicePort");
}
}
+ =
+ protected T getService(final Class clazz, final String serviceNa=
me, final String portName) throws Exception {
+ ServiceFactory serviceFactory =3D ServiceFactory.newInstance();
+ Service service =3D serviceFactory.createService(new URL(TARGET_ENDP=
OINT_URL + "?wsdl"), new QName(TARGET_NAMESPACE, serviceName));
+ return (T) service.getPort(new QName(TARGET_NAMESPACE, portName), cl=
azz);
+ }
=
public void testProducPurchase() throws Exception
{
Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/o=
rg/jboss/test/ws/jaxrpc/samples/docstyle/wrapped/TrivialServiceDocWrappedTe=
stCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbo=
ss/test/ws/jaxrpc/samples/docstyle/wrapped/TrivialServiceDocWrappedTestCase=
.java 2011-10-19 11:40:20 UTC (rev 15151)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbo=
ss/test/ws/jaxrpc/samples/docstyle/wrapped/TrivialServiceDocWrappedTestCase=
.java 2011-10-19 16:50:29 UTC (rev 15152)
@@ -21,8 +21,12 @@
*/
package org.jboss.test.ws.jaxrpc.samples.docstyle.wrapped;
=
+import java.net.URL;
+
import javax.naming.InitialContext;
+import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
+import javax.xml.rpc.ServiceFactory;
=
import junit.framework.Test;
=
@@ -37,6 +41,8 @@
*/
public class TrivialServiceDocWrappedTestCase extends JBossWSTest
{
+ private static final String TARGET_NAMESPACE =3D "http://org.jboss.ws/s=
amples/docstyle/wrapped";
+ private static final String TARGET_ENDPOINT_URL =3D "http://" + getServ=
erHost() + ":8080/jaxrpc-samples-docstyle-wrapped";
private static TrivialService port;
=
public static Test suite()
@@ -50,11 +56,15 @@
=
if (port =3D=3D null)
{
- InitialContext iniCtx =3D getInitialContext();
- Service service =3D (Service)iniCtx.lookup("java:comp/env/service=
/TrivialService");
- port =3D (TrivialService)service.getPort(TrivialService.class);
+ port =3D getService(TrivialService.class, "SampleService", "Trivi=
alServicePort");
}
}
+ =
+ protected T getService(final Class clazz, final String serviceNa=
me, final String portName) throws Exception {
+ ServiceFactory serviceFactory =3D ServiceFactory.newInstance();
+ Service service =3D serviceFactory.createService(new URL(TARGET_ENDP=
OINT_URL + "?wsdl"), new QName(TARGET_NAMESPACE, serviceName));
+ return (T) service.getPort(new QName(TARGET_NAMESPACE, portName), cl=
azz);
+ }
=
public void testProducTrivial() throws Exception
{
Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/o=
rg/jboss/test/ws/jaxrpc/samples/exception/ExceptionTestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbo=
ss/test/ws/jaxrpc/samples/exception/ExceptionTestCase.java 2011-10-19 11:40=
:20 UTC (rev 15151)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbo=
ss/test/ws/jaxrpc/samples/exception/ExceptionTestCase.java 2011-10-19 16:50=
:29 UTC (rev 15152)
@@ -22,6 +22,7 @@
package org.jboss.test.ws.jaxrpc.samples.exception;
=
import java.io.ByteArrayInputStream;
+import java.net.URL;
import java.rmi.RemoteException;
=
import javax.naming.InitialContext;
@@ -55,6 +56,7 @@
public class ExceptionTestCase extends JBossWSTest
{
private static final String TARGET_NAMESPACE =3D "http://org.jboss.ws/s=
amples/exception";
+ private static final String TARGET_ENDPOINT_URL =3D "http://" + getServ=
erHost() + ":8080/jaxrpc-samples-exception";
=
public static Test suite() throws Exception
{
@@ -63,10 +65,9 @@
=
private ExceptionServiceInterface getPort() throws Exception
{
- InitialContext iniCtx =3D getInitialContext();
- ExceptionService service =3D (ExceptionService)iniCtx.lookup("java:c=
omp/env/service/ExceptionService");
- ExceptionServiceInterface port =3D service.getPort();
- return port;
+ ServiceFactory serviceFactory =3D ServiceFactory.newInstance();
+ Service service =3D serviceFactory.createService(new URL(TARGET_ENDP=
OINT_URL + "?wsdl"), new QName(TARGET_NAMESPACE, "ExceptionService"));
+ return (ExceptionServiceInterface)service.getPort(new QName(TARGET_N=
AMESPACE, "ExceptionServiceInterfacePort"), ExceptionServiceInterface.class=
);
}
=
/** Test creation of a SOAPFault */
Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/o=
rg/jboss/test/ws/jaxrpc/samples/handler/HeaderClientTestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbo=
ss/test/ws/jaxrpc/samples/handler/HeaderClientTestCase.java 2011-10-19 11:4=
0:20 UTC (rev 15151)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbo=
ss/test/ws/jaxrpc/samples/handler/HeaderClientTestCase.java 2011-10-19 16:5=
0:29 UTC (rev 15152)
@@ -21,14 +21,18 @@
*/
package org.jboss.test.ws.jaxrpc.samples.handler;
=
+import java.net.URL;
+
import javax.naming.InitialContext;
import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.Service;
+import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.holders.StringHolder;
=
import junit.framework.Test;
=
+import org.jboss.test.ws.jaxrpc.samples.handler.HeaderTestService;
import org.jboss.ws.common.Constants;
import org.jboss.ws.core.StubExt;
import org.jboss.wsf.test.JBossWSTest;
@@ -43,6 +47,7 @@
public class HeaderClientTestCase extends JBossWSTest
{
public final String TARGET_ENDPOINT_ADDRESS =3D "http://" + getServerHo=
st() + ":8080/jaxrpc-samples-handler";
+ private static final String TARGET_NAMESPACE =3D "http://org.jboss.ws/s=
amples/handler";
=
private static HeaderTestService port;
=
@@ -57,11 +62,15 @@
=
if (port =3D=3D null)
{
- InitialContext iniCtx =3D getInitialContext();
- Service service =3D (Service)iniCtx.lookup("java:comp/env/service=
/TestService");
- port =3D (HeaderTestService)service.getPort(HeaderTestService.cla=
ss);
+ port =3D getService(HeaderTestService.class, "TestService", "Head=
erTestServicePort");
}
}
+ =
+ protected T getService(final Class clazz, final String serviceNa=
me, final String portName) throws Exception {
+ ServiceFactory serviceFactory =3D ServiceFactory.newInstance();
+ Service service =3D serviceFactory.createService(new URL(TARGET_ENDP=
OINT_ADDRESS + "?wsdl"), new QName(TARGET_NAMESPACE, serviceName));
+ return (T) service.getPort(new QName(TARGET_NAMESPACE, portName), cl=
azz);
+ }
=
public void testBoundInHeader() throws Exception
{
Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/o=
rg/jboss/test/ws/jaxrpc/samples/holder/HolderTestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbo=
ss/test/ws/jaxrpc/samples/holder/HolderTestCase.java 2011-10-19 11:40:20 UT=
C (rev 15151)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbo=
ss/test/ws/jaxrpc/samples/holder/HolderTestCase.java 2011-10-19 16:50:29 UT=
C (rev 15152)
@@ -23,11 +23,13 @@
=
import java.math.BigDecimal;
import java.math.BigInteger;
+import java.net.URL;
import java.util.GregorianCalendar;
=
import javax.naming.InitialContext;
import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
+import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.holders.BigDecimalHolder;
import javax.xml.rpc.holders.BigIntegerHolder;
import javax.xml.rpc.holders.BooleanHolder;
@@ -62,6 +64,9 @@
*/
public class HolderTestCase extends JBossWSTest
{
+ private static final String TARGET_ENDPOINT_URL =3D "http://" + getServ=
erHost() + ":8080/jaxrpc-samples-holder";
+ private static final String TARGET_NAMESPACE =3D "http://org.jboss.ws/s=
amples/holder";
+ =
private static HolderTestService port;
=
public static Test suite()
@@ -75,11 +80,15 @@
=
if (port =3D=3D null)
{
- InitialContext iniCtx =3D getInitialContext();
- Service service =3D (Service)iniCtx.lookup("java:comp/env/service=
/TestService");
- port =3D (HolderTestService)service.getPort(HolderTestService.cla=
ss);
+ port =3D getService(HolderTestService.class, "TestService", "Hold=
erTestServicePort");
}
}
+ =
+ protected T getService(final Class clazz, final String serviceNa=
me, final String portName) throws Exception {
+ ServiceFactory serviceFactory =3D ServiceFactory.newInstance();
+ Service service =3D serviceFactory.createService(new URL(TARGET_ENDP=
OINT_URL + "?wsdl"), new QName(TARGET_NAMESPACE, serviceName));
+ return (T) service.getPort(new QName(TARGET_NAMESPACE, portName), cl=
azz);
+ }
=
public void testEchoBigDecimal() throws Exception
{
Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/o=
rg/jboss/test/ws/jaxrpc/samples/message/MessageTestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbo=
ss/test/ws/jaxrpc/samples/message/MessageTestCase.java 2011-10-19 11:40:20 =
UTC (rev 15151)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbo=
ss/test/ws/jaxrpc/samples/message/MessageTestCase.java 2011-10-19 16:50:29 =
UTC (rev 15152)
@@ -30,6 +30,7 @@
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.rpc.Service;
+import javax.xml.rpc.ServiceFactory;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPConnection;
@@ -48,7 +49,7 @@
=
import org.jboss.wsf.test.JBossWSTest;
import org.jboss.wsf.test.JBossWSTestSetup;
-import org.jboss.ws.common.DOMUtils;
+import org.jboss.ws.api.util.DOMUtils;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
=
@@ -61,6 +62,7 @@
public class MessageTestCase extends JBossWSTest
{
private final String TARGET_ENDPOINT =3D "http://" + getServerHost() + =
":8080/jaxrpc-samples-message";
+ private static final String TARGET_NAMESPACE =3D "http://org.jboss.ws/s=
amples/message";
=
/** Deploy the test ear */
public static Test suite() throws Exception
@@ -129,12 +131,11 @@
=
private MessageTestService getPort() throws Exception
{
- InitialContext iniCtx =3D getInitialContext();
- Service service =3D (Service)iniCtx.lookup("java:comp/env/service/Me=
ssageService");
- MessageTestService port =3D (MessageTestService)service.getPort(Mess=
ageTestService.class);
- return port;
+ ServiceFactory serviceFactory =3D ServiceFactory.newInstance();
+ Service service =3D serviceFactory.createService(new URL(TARGET_ENDP=
OINT + "?wsdl"), new QName(TARGET_NAMESPACE, "MessageService"));
+ return (MessageTestService)service.getPort(new QName(TARGET_NAMESPAC=
E, "MessageTestServicePort"), MessageTestService.class);
}
-
+ =
private SOAPElement convertToSOAPElement(Element reqElement) throws Tra=
nsformerException, SOAPException
{
SOAPElement parent =3D SOAPFactory.newInstance().createElement("dumm=
y");
Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/o=
rg/jboss/test/ws/jaxrpc/samples/mtom/MTOMTestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbo=
ss/test/ws/jaxrpc/samples/mtom/MTOMTestCase.java 2011-10-19 11:40:20 UTC (r=
ev 15151)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbo=
ss/test/ws/jaxrpc/samples/mtom/MTOMTestCase.java 2011-10-19 16:50:29 UTC (r=
ev 15152)
@@ -24,16 +24,18 @@
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.InputStreamReader;
+import java.net.URL;
=
import javax.activation.DataHandler;
import javax.naming.InitialContext;
+import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
+import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.Stub;
import javax.xml.transform.stream.StreamSource;
=
import junit.framework.Test;
=
-import org.jboss.ws.core.StubExt;
import org.jboss.wsf.test.JBossWSTest;
import org.jboss.wsf.test.JBossWSTestSetup;
=
@@ -46,6 +48,9 @@
*/
public class MTOMTestCase extends JBossWSTest
{
+ private static final String TARGET_NAMESPACE =3D "http://org.jboss.ws/s=
amples/mtom";
+ private static final String TARGET_ENDPOINT_URL =3D "http://" + getServ=
erHost() + ":8080/jaxrpc-samples-mtom";
+ =
private static EmployeeRecords port;
=
/** Deploy the test ear */
@@ -60,11 +65,15 @@
=
if (port =3D=3D null)
{
- InitialContext iniCtx =3D getInitialContext();
- Service service =3D (Service)iniCtx.lookup("java:comp/env/service=
/XOPTestService");
- port =3D (EmployeeRecords)service.getPort(EmployeeRecords.class);
+ port =3D getService(EmployeeRecords.class, "EmployeeService", "Em=
ployeeRecordsPort");
}
}
+ =
+ protected T getService(final Class clazz, final String serviceNa=
me, final String portName) throws Exception {
+ ServiceFactory serviceFactory =3D ServiceFactory.newInstance();
+ Service service =3D serviceFactory.createService(new URL(TARGET_ENDP=
OINT_URL + "?wsdl"), new QName(TARGET_NAMESPACE, serviceName));
+ return (T) service.getPort(new QName(TARGET_NAMESPACE, portName), cl=
azz);
+ }
=
public void testUpdate() throws Exception
{
@@ -92,7 +101,7 @@
=
StreamSource xmlStream =3D (StreamSource)employee.getLegacyData().ge=
tContent();
String content =3D new BufferedReader(new InputStreamReader(xmlStrea=
m.getInputStream())).readLine();
- assertEquals("", content);
+ assertTrue(content.contains(""));
}
=
private DataHandler getLegacyData()
@@ -102,6 +111,6 @@
=
private void setMTOMEnabled(Boolean b)
{
- ((Stub)port)._setProperty(StubExt.PROPERTY_MTOM_ENABLED, b);
+ ((Stub)port)._setProperty("org.jboss.ws.mtom.enabled", b);
}
}
Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/o=
rg/jboss/test/ws/jaxrpc/samples/oneway/OneWayTestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbo=
ss/test/ws/jaxrpc/samples/oneway/OneWayTestCase.java 2011-10-19 11:40:20 UT=
C (rev 15151)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbo=
ss/test/ws/jaxrpc/samples/oneway/OneWayTestCase.java 2011-10-19 16:50:29 UT=
C (rev 15152)
@@ -21,8 +21,12 @@
*/
package org.jboss.test.ws.jaxrpc.samples.oneway;
=
+import java.net.URL;
+
import javax.naming.InitialContext;
+import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
+import javax.xml.rpc.ServiceFactory;
=
import junit.framework.Test;
=
@@ -37,6 +41,9 @@
*/
public class OneWayTestCase extends JBossWSTest
{
+ private static final String TARGET_ENDPOINT_URL =3D "http://" + getServ=
erHost() + ":8080/jaxrpc-samples-oneway";
+ private static final String TARGET_NAMESPACE =3D "http://org.jboss.ws/s=
amples/oneway";
+ =
private static OneWayTestService port;
=
public static Test suite()
@@ -50,11 +57,15 @@
=
if (port =3D=3D null)
{
- InitialContext iniCtx =3D getInitialContext();
- Service service =3D (Service)iniCtx.lookup("java:comp/env/service=
/TestService");
- port =3D (OneWayTestService)service.getPort(OneWayTestService.cla=
ss);
+ port =3D getService(OneWayTestService.class, "TestService", "OneW=
ayTestServicePort");
}
}
+ =
+ protected T getService(final Class clazz, final String serviceNa=
me, final String portName) throws Exception {
+ ServiceFactory serviceFactory =3D ServiceFactory.newInstance();
+ Service service =3D serviceFactory.createService(new URL(TARGET_ENDP=
OINT_URL + "?wsdl"), new QName(TARGET_NAMESPACE, serviceName));
+ return (T) service.getPort(new QName(TARGET_NAMESPACE, portName), cl=
azz);
+ }
=
public void testOneWay() throws Exception
{
Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/o=
rg/jboss/test/ws/jaxrpc/samples/rpcstyle/TrivialServiceRpcTestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbo=
ss/test/ws/jaxrpc/samples/rpcstyle/TrivialServiceRpcTestCase.java 2011-10-1=
9 11:40:20 UTC (rev 15151)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jbo=
ss/test/ws/jaxrpc/samples/rpcstyle/TrivialServiceRpcTestCase.java 2011-10-1=
9 16:50:29 UTC (rev 15152)
@@ -21,8 +21,12 @@
*/
package org.jboss.test.ws.jaxrpc.samples.rpcstyle;
=
+import java.net.URL;
+
import javax.naming.InitialContext;
+import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
+import javax.xml.rpc.ServiceFactory;
=
import junit.framework.Test;
=
@@ -37,6 +41,9 @@
*/
public class TrivialServiceRpcTestCase extends JBossWSTest
{
+ private static final String TARGET_ENDPOINT_URL =3D "http://" + getServ=
erHost() + ":8080/jaxrpc-samples-rpcstyle";
+ private static final String TARGET_NAMESPACE =3D "http://org.jboss.ws/s=
amples/rpcstyle";
+ =
private static TrivialService port;
=
public static Test suite()
@@ -50,11 +57,15 @@
=
if (port =3D=3D null)
{
- InitialContext iniCtx =3D getInitialContext();
- Service service =3D (Service)iniCtx.lookup("java:comp/env/service=
/TrivialService");
- port =3D (TrivialService)service.getPort(TrivialService.class);
+ port =3D getService(TrivialService.class, "SampleService", "Trivi=
alServicePort");
}
}
+ =
+ protected T getService(final Class clazz, final String serviceNa=
me, final String portName) throws Exception {
+ ServiceFactory serviceFactory =3D ServiceFactory.newInstance();
+ Service service =3D serviceFactory.createService(new URL(TARGET_ENDP=
OINT_URL + "?wsdl"), new QName(TARGET_NAMESPACE, serviceName));
+ return (T) service.getPort(new QName(TARGET_NAMESPACE, portName), cl=
azz);
+ }
=
public void testTrivialAccess() throws Exception
{
Modified: stack/native/trunk/modules/testsuite/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/native/trunk/modules/testsuite/pom.xml 2011-10-19 11:40:20 UTC (r=
ev 15151)
+++ stack/native/trunk/modules/testsuite/pom.xml 2011-10-19 16:50:29 UTC (r=
ev 15152)
@@ -1044,7 +1044,7 @@
org/jboss/test/ws/jaxws/wsaddressing/replyto/**<=
/exclude>
org/jboss/test/ws/jaxws/jbws1581/**
=
-
+
org/jboss/test/ws/benchmark/jaxrpc/BenchmarkDocE=
JBTestCase*
org/jboss/test/ws/benchmark/jaxrpc/BenchmarkDocJ=
SETestCase*
org/jboss/test/ws/benchmark/jaxrpc/BenchmarkRpcE=
JBTestCase*
@@ -1067,7 +1067,6 @@
org/jboss/test/ws/jaxrpc/jbws1190/JBWS1190TestCa=
se*
org/jboss/test/ws/jaxrpc/jbws1205/JBWS1205TestCa=
se*
org/jboss/test/ws/jaxrpc/jbws124/JBWS124TestCase=
*
- org/jboss/test/ws/jaxrpc/jbws128/JBWS128TestCase=
*
org/jboss/test/ws/jaxrpc/jbws1303/JBWS1303TestCa=
se*
org/jboss/test/ws/jaxrpc/jbws1316/JBWS1316CallTe=
stCase*
org/jboss/test/ws/jaxrpc/jbws1427/JBWS1427TestCa=
se*
@@ -1126,26 +1125,17 @@
org/jboss/test/ws/jaxrpc/marshall/MarshallDocLit=
TestCase*
org/jboss/test/ws/jaxrpc/marshall/MarshallRpcLit=
TestCase*
org/jboss/test/ws/jaxrpc/overloaded/OverloadedTe=
stCase*
- org/jboss/test/ws/jaxrpc/samples/docstyle/bare/T=
rivialServiceDocBareTestCase*
- org/jboss/test/ws/jaxrpc/samples/docstyle/wrappe=
d/TrivialServiceDocWrappedTestCase*
org/jboss/test/ws/jaxrpc/samples/dynamichandler/=
DynamicHandlerTestCase*
org/jboss/test/ws/jaxrpc/samples/dynamichandler/=
StaticHandlerTestCase*
- org/jboss/test/ws/jaxrpc/samples/exception/Excep=
tionTestCase*
- org/jboss/test/ws/jaxrpc/samples/handler/HeaderC=
lientTestCase*
- org/jboss/test/ws/jaxrpc/samples/message/Message=
TestCase*
org/jboss/test/ws/jaxrpc/samples/mtom/MTOMTestCa=
se*
- org/jboss/test/ws/jaxrpc/samples/oneway/OneWayTe=
stCase*
- org/jboss/test/ws/jaxrpc/samples/rpcstyle/Trivia=
lServiceRpcTestCase*
org/jboss/test/ws/jaxrpc/samples/secureejb/Secur=
eEJBTestCase*
org/jboss/test/ws/jaxrpc/samples/serviceref/Serv=
iceRefClientTestCase*
org/jboss/test/ws/jaxrpc/samples/serviceref/Serv=
iceRefEJBTestCase*
- org/jboss/test/ws/jaxrpc/samples/serviceref/Serv=
iceRefServletTestCase*
org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/=
AddressingReplyToTestCase*
org/jboss/test/ws/jaxrpc/samples/wssecurity/Simp=
leEncryptTestCase*
org/jboss/test/ws/jaxrpc/samples/wssecurity/Simp=
leSignTestCase*
org/jboss/test/ws/jaxrpc/utf16/UTF16TestCase*
org/jboss/test/ws/jaxrpc/wsdlpublish/WsdlPublish=
TestCase*
- org/jboss/test/ws/jaxrpc/wsse/RoundTripTestCase*=
org/jboss/test/ws/jaxrpc/wsse/UsernameTestCase*<=
/exclude>
org/jboss/test/ws/jaxrpc/xop/doclit/XOPHandlerTe=
stCase*
org/jboss/test/ws/jaxrpc/xop/doclit/XOPTestCase*=
--===============0268026162967237274==--
From jbossws-commits at lists.jboss.org Thu Oct 20 02:40:46 2011
Content-Type: multipart/mixed; boundary="===============1301845162075588546=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15153 -
stack/cxf/trunk/modules/testsuite.
Date: Thu, 20 Oct 2011 02:40:46 -0400
Message-ID: <201110200640.p9K6ekEj032661@svn01.web.mwc.hst.phx2.redhat.com>
--===============1301845162075588546==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-20 02:40:45 -0400 (Thu, 20 Oct 2011)
New Revision: 15153
Modified:
stack/cxf/trunk/modules/testsuite/pom.xml
Log:
updating excludes
Modified: stack/cxf/trunk/modules/testsuite/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/testsuite/pom.xml 2011-10-19 16:50:29 UTC (rev =
15152)
+++ stack/cxf/trunk/modules/testsuite/pom.xml 2011-10-20 06:40:45 UTC (rev =
15153)
@@ -1288,9 +1288,6 @@
org/jboss/test/ws/jaxws/jbws1797/**
=
-
- org/jboss/test/ws/jaxws/jbws981/JBWS981TestCase.=
*
-
org/jboss/test/ws/jaxws/jbws1854/**
org/jboss/test/ws/jaxws/jbws2630/**
--===============1301845162075588546==--
From jbossws-commits at lists.jboss.org Thu Oct 20 02:45:26 2011
Content-Type: multipart/mixed; boundary="===============7160191127511132051=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15154 -
stack/native/trunk/modules/testsuite.
Date: Thu, 20 Oct 2011 02:45:26 -0400
Message-ID: <201110200645.p9K6jQOO000610@svn01.web.mwc.hst.phx2.redhat.com>
--===============7160191127511132051==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-20 02:45:26 -0400 (Thu, 20 Oct 2011)
New Revision: 15154
Modified:
stack/native/trunk/modules/testsuite/pom.xml
Log:
updating excludes
Modified: stack/native/trunk/modules/testsuite/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/native/trunk/modules/testsuite/pom.xml 2011-10-20 06:40:45 UTC (r=
ev 15153)
+++ stack/native/trunk/modules/testsuite/pom.xml 2011-10-20 06:45:26 UTC (r=
ev 15154)
@@ -998,9 +998,6 @@
org/jboss/test/ws/jaxws/samples/serviceref/Servi=
ceRefEJBTestCase.*
=
-
- org/jboss/test/ws/jaxws/jbws981/JBWS981TestCase.=
*
-
org/jboss/test/ws/common/soap/SOAPConnectionTest=
Case.*
=
--===============7160191127511132051==--
From jbossws-commits at lists.jboss.org Fri Oct 21 04:51:17 2011
Content-Type: multipart/mixed; boundary="===============7852053827265054071=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15155 -
stack/native/trunk/modules/testsuite/native-tests/scripts.
Date: Fri, 21 Oct 2011 04:51:17 -0400
Message-ID: <201110210851.p9L8pHV4011081@svn01.web.mwc.hst.phx2.redhat.com>
--===============7852053827265054071==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-21 04:51:17 -0400 (Fri, 21 Oct 2011)
New Revision: 15155
Modified:
stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-int=
erop.xml
Log:
proper excludes
Modified: stack/native/trunk/modules/testsuite/native-tests/scripts/build-j=
ars-interop.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-in=
terop.xml 2011-10-20 06:45:26 UTC (rev 15154)
+++ stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-in=
terop.xml 2011-10-21 08:51:17 UTC (rev 15155)
@@ -181,6 +181,9 @@
webxml=3D"${tests.output.dir}/test-resources/interop/nov2007/wsse/en=
crypt/WEB-INF/web.xml">
+
+
+
=
@@ -213,6 +216,9 @@
webxml=3D"${tests.output.dir}/test-resources/interop/nov2007/wsse/en=
crypt3DES/WEB-INF/web.xml">
+
+
+
=
@@ -245,6 +251,9 @@
webxml=3D"${tests.output.dir}/test-resources/interop/nov2007/wsse/us=
ernameTokenHTTPS/WEB-INF/web.xml">
+
+
+
--===============7852053827265054071==--
From jbossws-commits at lists.jboss.org Fri Oct 21 05:21:38 2011
Content-Type: multipart/mixed; boundary="===============2836674416201300811=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15156 -
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/publish.
Date: Fri, 21 Oct 2011 05:21:37 -0400
Message-ID: <201110210921.p9L9Lbgr019874@svn01.web.mwc.hst.phx2.redhat.com>
--===============2836674416201300811==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-21 05:21:37 -0400 (Fri, 21 Oct 2011)
New Revision: 15156
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/publish=
/EndpointImpl2.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/publish=
/EndpointPublishServlet.java
Log:
each endpoint should use unique serviceName
Modified: shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/=
publish/EndpointImpl2.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/publis=
h/EndpointImpl2.java 2011-10-21 08:51:17 UTC (rev 15155)
+++ shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/publis=
h/EndpointImpl2.java 2011-10-21 09:21:37 UTC (rev 15156)
@@ -25,7 +25,7 @@
=
import org.jboss.logging.Logger;
=
-(a)WebService(serviceName=3D"EndpointService", portName=3D"EndpointPort", =
endpointInterface =3D "org.jboss.test.ws.publish.Endpoint")
+(a)WebService(serviceName=3D"EndpointService2", portName=3D"EndpointPort",=
endpointInterface =3D "org.jboss.test.ws.publish.Endpoint")
public class EndpointImpl2
{
// Provide logging
Modified: shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/=
publish/EndpointPublishServlet.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/publis=
h/EndpointPublishServlet.java 2011-10-21 08:51:17 UTC (rev 15155)
+++ shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/publis=
h/EndpointPublishServlet.java 2011-10-21 09:21:37 UTC (rev 15156)
@@ -82,8 +82,8 @@
}
=
//call endpoint
- invoke(new URL("http://localhost:8080/ep-publish-test/pattern?wsd=
l"));
- invoke(new URL("http://localhost:8080/ep-publish-test/pattern2?ws=
dl"));
+ invoke(new URL("http://localhost:8080/ep-publish-test/pattern?wsd=
l"), new QName("http://publish.ws.test.jboss.org/", "EndpointService"));
+ invoke(new URL("http://localhost:8080/ep-publish-test/pattern2?ws=
dl"), new QName("http://publish.ws.test.jboss.org/", "EndpointService2"));
=
res.getWriter().print("1");
}
@@ -110,8 +110,7 @@
}
}
=
- private static void invoke(URL wsdlURL) throws Exception {
- QName serviceName =3D new QName("http://publish.ws.test.jboss.org/",=
"EndpointService");
+ private static void invoke(URL wsdlURL, QName serviceName) throws Excep=
tion {
Service service =3D Service.create(wsdlURL, serviceName);
org.jboss.test.ws.publish.Endpoint port =3D service.getPort(org.jbos=
s.test.ws.publish.Endpoint.class);
String result =3D port.echo("Foo");
--===============2836674416201300811==--
From jbossws-commits at lists.jboss.org Fri Oct 21 05:50:16 2011
Content-Type: multipart/mixed; boundary="===============7411688584853745145=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15157 -
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/endpoint.
Date: Fri, 21 Oct 2011 05:50:16 -0400
Message-ID: <201110210950.p9L9oG5g022560@svn01.web.mwc.hst.phx2.redhat.com>
--===============7411688584853745145==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-21 05:50:16 -0400 (Fri, 21 Oct 2011)
New Revision: 15157
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test=
/ws/jaxws/cxf/endpoint/HelloWorldImpl.java
Log:
provide default constructor as required by JAXWS spec
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jbo=
ss/test/ws/jaxws/cxf/endpoint/HelloWorldImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/tes=
t/ws/jaxws/cxf/endpoint/HelloWorldImpl.java 2011-10-21 09:21:37 UTC (rev 15=
156)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/tes=
t/ws/jaxws/cxf/endpoint/HelloWorldImpl.java 2011-10-21 09:50:16 UTC (rev 15=
157)
@@ -27,6 +27,8 @@
public class HelloWorldImpl implements HelloWorld
{
private ClassLoader _deploymentClassLoader;
+ =
+ public HelloWorldImpl() {}
=
public HelloWorldImpl(ClassLoader classloader)
{
--===============7411688584853745145==--
From jbossws-commits at lists.jboss.org Tue Oct 25 05:57:18 2011
Content-Type: multipart/mixed; boundary="===============5304508511069427267=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15158 - in stack/cxf/trunk:
modules/client and 3 other directories.
Date: Tue, 25 Oct 2011 05:57:18 -0400
Message-ID: <201110250957.p9P9vI5b025440@svn01.web.mwc.hst.phx2.redhat.com>
--===============5304508511069427267==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: alessio.soldano(a)jboss.com
Date: 2011-10-25 05:57:17 -0400 (Tue, 25 Oct 2011)
New Revision: 15158
Modified:
stack/cxf/trunk/modules/client/pom.xml
stack/cxf/trunk/modules/endorsed/src/main/resources/META-INF/services/co=
m.sun.tools.xjc.Plugin
stack/cxf/trunk/modules/resources/src/main/resources/bin/wsconsume.bat
stack/cxf/trunk/modules/resources/src/main/resources/bin/wsconsume.sh
stack/cxf/trunk/modules/resources/src/main/resources/bin/wsprovide.bat
stack/cxf/trunk/modules/resources/src/main/resources/bin/wsprovide.sh
stack/cxf/trunk/modules/server/pom.xml
stack/cxf/trunk/pom.xml
Log:
[JBWX-3374] Move to cxf-xjc utils 2.4.0 and remove dependency on cxf-xjc-bu=
g671
Modified: stack/cxf/trunk/modules/client/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/client/pom.xml 2011-10-21 09:50:16 UTC (rev 151=
57)
+++ stack/cxf/trunk/modules/client/pom.xml 2011-10-25 09:57:17 UTC (rev 151=
58)
@@ -103,10 +103,6 @@
org.apache.cxf.xjcplugins
- cxf-xjc-bug671
-
-
- org.apache.cxf.xjcplugins
cxf-xjc-dv
Modified: stack/cxf/trunk/modules/endorsed/src/main/resources/META-INF/serv=
ices/com.sun.tools.xjc.Plugin
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/endorsed/src/main/resources/META-INF/services/c=
om.sun.tools.xjc.Plugin 2011-10-21 09:50:16 UTC (rev 15157)
+++ stack/cxf/trunk/modules/endorsed/src/main/resources/META-INF/services/c=
om.sun.tools.xjc.Plugin 2011-10-25 09:57:17 UTC (rev 15158)
@@ -1,4 +1,3 @@
com.sun.tools.xjc.addon.apache_cxf.ts.ToStringPlugin
-com.sun.tools.xjc.addon.apache_cxf.bug671.Bug671Plugin
com.sun.tools.xjc.addon.apache_cxf.bg.BooleanGetterPlugin
com.sun.tools.xjc.addon.apache_cxf.dv.DefaultValuePlugin
Modified: stack/cxf/trunk/modules/resources/src/main/resources/bin/wsconsum=
e.bat
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/resources/src/main/resources/bin/wsconsume.bat =
2011-10-21 09:50:16 UTC (rev 15157)
+++ stack/cxf/trunk/modules/resources/src/main/resources/bin/wsconsume.bat =
2011-10-25 09:57:17 UTC (rev 15158)
@@ -37,7 +37,6 @@
=
rem CXF XJC patched plugins
set WSCONSUME_CLASSPATH=3D%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/cxf-xj=
c-boolean.jar
-set WSCONSUME_CLASSPATH=3D%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/cxf-xj=
c-bug671.jar
=
rem shared jaxws libs
set WSCONSUME_CLASSPATH=3D%WSCONSUME_CLASSPATH%;%JBOSS_HOME%/client/stax-a=
pi.jar
Modified: stack/cxf/trunk/modules/resources/src/main/resources/bin/wsconsum=
e.sh
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/resources/src/main/resources/bin/wsconsume.sh 2=
011-10-21 09:50:16 UTC (rev 15157)
+++ stack/cxf/trunk/modules/resources/src/main/resources/bin/wsconsume.sh 2=
011-10-25 09:57:17 UTC (rev 15158)
@@ -88,7 +88,6 @@
=
# CXF XJC patched plugins
WSCONSUME_CLASSPATH=3D"$WSCONSUME_CLASSPATH:$LIBDIR/cxf-xjc-boolean.jar"
-WSCONSUME_CLASSPATH=3D"$WSCONSUME_CLASSPATH:$LIBDIR/cxf-xjc-bug671.jar"
=
# shared jaxws libs
WSCONSUME_CLASSPATH=3D"$WSCONSUME_CLASSPATH:$LIBDIR/stax-api.jar"
Modified: stack/cxf/trunk/modules/resources/src/main/resources/bin/wsprovid=
e.bat
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/resources/src/main/resources/bin/wsprovide.bat =
2011-10-21 09:50:16 UTC (rev 15157)
+++ stack/cxf/trunk/modules/resources/src/main/resources/bin/wsprovide.bat =
2011-10-25 09:57:17 UTC (rev 15158)
@@ -35,7 +35,6 @@
=
rem CXF XJC patched plugins
set WSPROVIDE_CLASSPATH=3D%WSPROVIDE_CLASSPATH%;%JBOSS_HOME%/client/cxf-xj=
c-boolean.jar
-set WSPROVIDE_CLASSPATH=3D%WSPROVIDE_CLASSPATH%;%JBOSS_HOME%/client/cxf-xj=
c-bug671.jar
=
rem shared jaxws libs
set WSPROVIDE_CLASSPATH=3D%WSPROVIDE_CLASSPATH%;%JBOSS_HOME%/client/jaxb-a=
pi.jar
Modified: stack/cxf/trunk/modules/resources/src/main/resources/bin/wsprovid=
e.sh
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/resources/src/main/resources/bin/wsprovide.sh 2=
011-10-21 09:50:16 UTC (rev 15157)
+++ stack/cxf/trunk/modules/resources/src/main/resources/bin/wsprovide.sh 2=
011-10-25 09:57:17 UTC (rev 15158)
@@ -89,7 +89,6 @@
=
# CXF XJC patched plugins
WSPROVIDE_CLASSPATH=3D"$WSPROVIDE_CLASSPATH:$LIBDIR/cxf-xjc-boolean.jar"
-WSPROVIDE_CLASSPATH=3D"$WSPROVIDE_CLASSPATH:$LIBDIR/cxf-xjc-bug671.jar"
=
# shared jaxws libs
WSPROVIDE_CLASSPATH=3D"$WSPROVIDE_CLASSPATH:$LIBDIR/jaxb-api.jar"
Modified: stack/cxf/trunk/modules/server/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/server/pom.xml 2011-10-21 09:50:16 UTC (rev 151=
57)
+++ stack/cxf/trunk/modules/server/pom.xml 2011-10-25 09:57:17 UTC (rev 151=
58)
@@ -115,10 +115,6 @@
org.apache.cxf.xjcplugins
- cxf-xjc-bug671
-
-
- org.apache.cxf.xjcplugins
cxf-xjc-dv
Modified: stack/cxf/trunk/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/pom.xml 2011-10-21 09:50:16 UTC (rev 15157)
+++ stack/cxf/trunk/pom.xml 2011-10-25 09:57:17 UTC (rev 15158)
@@ -57,7 +57,7 @@
1.0.1.Final
2.4.4-SNAPSHOT
3.3
- 2.3.2
+ 2.4.0
1.2.7
2.2.16.GA
3.0.0.Beta5
@@ -803,45 +803,6 @@
org.apache.cxf.xjcplugins
- cxf-xjc-bug671
- ${cxf.xjcplugins.version}
-
-
- org.springframework
- spring-aop
-
-
- org.springframework
- spring-asm
- =
-
- org.springframework
- spring-beans
- =
-
- org.springframework
- spring-context
- =
-
- org.springframework
- spring-core
-
-
- org.springframework
- spring-expression
- =
-
- org.springframework
- spring-tx
-
-
- org.springframework
- spring-jms
-
-
-
-
- org.apache.cxf.xjcplugins
cxf-xjc-dv
${cxf.xjcplugins.version}
--===============5304508511069427267==--
From jbossws-commits at lists.jboss.org Tue Oct 25 09:38:13 2011
Content-Type: multipart/mixed; boundary="===============5472991666968673129=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15159 - in
shared-testsuite/trunk/testsuite/src/test: java/org/jboss/test/ws/jaxws and 4
other directories.
Date: Tue, 25 Oct 2011 09:38:13 -0400
Message-ID: <201110251338.p9PDcDrQ005090@svn01.web.mwc.hst.phx2.redhat.com>
--===============5472991666968673129==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-25 09:38:13 -0400 (Tue, 25 Oct 2011)
New Revision: 15159
Added:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/j=
bws3276/
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/j=
bws3276/AnonymousPOJO.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/j=
bws3276/POJOIface.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/j=
bws3276/POJOImpl.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/j=
bws3276/Usecase1TestCase.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/j=
bws3276/Usecase2TestCase.java
shared-testsuite/trunk/testsuite/src/test/resources/jaxws/jbws3276/
shared-testsuite/trunk/testsuite/src/test/resources/jaxws/jbws3276/WEB-I=
NF/
shared-testsuite/trunk/testsuite/src/test/resources/jaxws/jbws3276/WEB-I=
NF/web.xml
Modified:
shared-testsuite/trunk/testsuite/src/test/ant-import/build-jars-jaxws.xml
Log:
[JBWS-3276] providing anonymous POJO test cases
Modified: shared-testsuite/trunk/testsuite/src/test/ant-import/build-jars-j=
axws.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/ant-import/build-jars-jaxws.x=
ml 2011-10-25 09:57:17 UTC (rev 15158)
+++ shared-testsuite/trunk/testsuite/src/test/ant-import/build-jars-jaxws.x=
ml 2011-10-25 13:38:13 UTC (rev 15159)
@@ -1106,6 +1106,22 @@
=
+
+
+
+
+
+
+
+
+ =
+
+
+
+
+
+
+ =
Added: shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jax=
ws/jbws3276/AnonymousPOJO.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/=
jbws3276/AnonymousPOJO.java (rev 0)
+++ shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/=
jbws3276/AnonymousPOJO.java 2011-10-25 13:38:13 UTC (rev 15159)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat, Inc., 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.jbws3276;
+
+import javax.jws.WebService;
+
+/**
+ * @author Richard Opalka
+ */
+(a)WebService
+(
+ endpointInterface =3D "org.jboss.test.ws.jaxws.jbws3276.POJOIface",
+ targetNamespace =3D "org.jboss.test.ws.jaxws.jbws3276",
+ serviceName =3D "AnonymousPOJOService"
+)
+public class AnonymousPOJO
+{
+
+ public String echo(final String s)
+ {
+ return s + " from anonymous POJO";
+ }
+
+}
Added: shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jax=
ws/jbws3276/POJOIface.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/=
jbws3276/POJOIface.java (rev 0)
+++ shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/=
jbws3276/POJOIface.java 2011-10-25 13:38:13 UTC (rev 15159)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat, Inc., 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.jbws3276;
+
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * @author Richard Opalka
+ */
+(a)WebService
+(a)SOAPBinding
+public interface POJOIface
+{
+
+ String echo(String s);
+
+}
Added: shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jax=
ws/jbws3276/POJOImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/=
jbws3276/POJOImpl.java (rev 0)
+++ shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/=
jbws3276/POJOImpl.java 2011-10-25 13:38:13 UTC (rev 15159)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat, Inc., 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.jbws3276;
+
+import javax.jws.WebService;
+
+/**
+ * @author Richard Opalka
+ */
+(a)WebService
+(
+ endpointInterface =3D "org.jboss.test.ws.jaxws.jbws3276.POJOIface",
+ targetNamespace =3D "org.jboss.test.ws.jaxws.jbws3276",
+ serviceName =3D "POJOImplService"
+)
+public class POJOImpl
+{
+
+ public String echo(final String s)
+ {
+ return s + " from POJO";
+ }
+
+}
Added: shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jax=
ws/jbws3276/Usecase1TestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/=
jbws3276/Usecase1TestCase.java (rev 0)
+++ shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/=
jbws3276/Usecase1TestCase.java 2011-10-25 13:38:13 UTC (rev 15159)
@@ -0,0 +1,68 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat, Inc., 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.jbws3276;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * [JBWS-3276] Tests anonymous POJO in web archive that contains web.xml w=
ith other endpoint.
+ *
+ * @author Richard Opalka
+ */
+public class Usecase1TestCase extends JBossWSTest
+{
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(Usecase1TestCase.class, "jaxws-jbws3276-=
usecase1.war");
+ }
+
+ public void testAnonymousEndpoint() throws Exception
+ {
+ final QName serviceName =3D new QName("org.jboss.test.ws.jaxws.jbws3=
276", "AnonymousPOJOService");
+ final URL wsdlURL =3D new URL("http://localhost:8080/jaxws-jbws3276-=
usecase1/AnonymousPOJOService?wsdl");
+ final Service service =3D Service.create(wsdlURL, serviceName);
+ final POJOIface port =3D service.getPort(POJOIface.class);
+ final String result =3D port.echo("hello");
+ assertEquals("hello from anonymous POJO", result);
+ }
+
+ public void testDeclaredEndpoint() throws Exception
+ {
+ final QName serviceName =3D new QName("org.jboss.test.ws.jaxws.jbws3=
276", "POJOImplService");
+ final URL wsdlURL =3D new URL("http://localhost:8080/jaxws-jbws3276-=
usecase1/POJOService?wsdl");
+ final Service service =3D Service.create(wsdlURL, serviceName);
+ final POJOIface port =3D service.getPort(POJOIface.class);
+ final String result =3D port.echo("hello");
+ assertEquals("hello from POJO", result);
+ }
+
+}
Added: shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jax=
ws/jbws3276/Usecase2TestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/=
jbws3276/Usecase2TestCase.java (rev 0)
+++ shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/=
jbws3276/Usecase2TestCase.java 2011-10-25 13:38:13 UTC (rev 15159)
@@ -0,0 +1,58 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat, Inc., 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.jbws3276;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * [JBWS-3276] Tests anonymous POJO in web archive that is missing web.xml.
+ *
+ * @author Richard Opalka
+ */
+public class Usecase2TestCase extends JBossWSTest
+{
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(Usecase2TestCase.class, "jaxws-jbws3276-=
usecase2.war");
+ }
+
+ public void testAnonymousEndpoint() throws Exception
+ {
+ final QName serviceName =3D new QName("org.jboss.test.ws.jaxws.jbws3=
276", "AnonymousPOJOService");
+ final URL wsdlURL =3D new URL("http://localhost:8080/jaxws-jbws3276-=
usecase2/AnonymousPOJOService?wsdl");
+ final Service service =3D Service.create(wsdlURL, serviceName);
+ final POJOIface port =3D service.getPort(POJOIface.class);
+ final String result =3D port.echo("hello");
+ assertEquals("hello from anonymous POJO", result);
+ }
+
+}
Added: shared-testsuite/trunk/testsuite/src/test/resources/jaxws/jbws3276/W=
EB-INF/web.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- shared-testsuite/trunk/testsuite/src/test/resources/jaxws/jbws3276/WEB-=
INF/web.xml (rev 0)
+++ shared-testsuite/trunk/testsuite/src/test/resources/jaxws/jbws3276/WEB-=
INF/web.xml 2011-10-25 13:38:13 UTC (rev 15159)
@@ -0,0 +1,15 @@
+
+
+
+ POJOImpl
+ org.jboss.test.ws.jaxws.jbws3276.POJOImpl
+
+
+ POJOImpl
+ /POJOService
+
+
--===============5472991666968673129==--
From jbossws-commits at lists.jboss.org Tue Oct 25 09:44:13 2011
Content-Type: multipart/mixed; boundary="===============1764687765119752254=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15160 -
stack/native/trunk/modules/testsuite.
Date: Tue, 25 Oct 2011 09:44:13 -0400
Message-ID: <201110251344.p9PDiDAi005562@svn01.web.mwc.hst.phx2.redhat.com>
--===============1764687765119752254==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-25 09:44:12 -0400 (Tue, 25 Oct 2011)
New Revision: 15160
Modified:
stack/native/trunk/modules/testsuite/pom.xml
Log:
update excludes
Modified: stack/native/trunk/modules/testsuite/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/native/trunk/modules/testsuite/pom.xml 2011-10-25 13:38:13 UTC (r=
ev 15159)
+++ stack/native/trunk/modules/testsuite/pom.xml 2011-10-25 13:44:12 UTC (r=
ev 15160)
@@ -569,6 +569,9 @@
=
org/jboss/test/ws/jaxws/jbws3367/**
+
+
+ org/jboss/test/ws/jaxws/jbws3276/**
@@ -719,6 +722,9 @@
=
org/jboss/test/ws/jaxws/jbws3367/**
+
+
+ org/jboss/test/ws/jaxws/jbws3276/**
@@ -839,6 +845,9 @@
org/jboss/test/ws/jaxws/jbws3367/**
=
+
+ org/jboss/test/ws/jaxws/jbws3276/**
+
org/jboss/test/ws/jaxws/jbws2634/**
org/jboss/test/ws/jaxws/jbws2074/**
@@ -1014,6 +1023,9 @@
=
+
+ org/jboss/test/ws/jaxws/jbws3276/**
+
org/jboss/test/ws/jaxws/jbws2116/**
org/jboss/test/ws/jaxws/jbws3182/**
--===============1764687765119752254==--
From jbossws-commits at lists.jboss.org Tue Oct 25 09:46:50 2011
Content-Type: multipart/mixed; boundary="===============6910450709495050419=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15161 -
stack/cxf/trunk/modules/testsuite.
Date: Tue, 25 Oct 2011 09:46:49 -0400
Message-ID: <201110251346.p9PDknau005932@svn01.web.mwc.hst.phx2.redhat.com>
--===============6910450709495050419==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-25 09:46:49 -0400 (Tue, 25 Oct 2011)
New Revision: 15161
Modified:
stack/cxf/trunk/modules/testsuite/pom.xml
Log:
updating excludes
Modified: stack/cxf/trunk/modules/testsuite/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/testsuite/pom.xml 2011-10-25 13:44:12 UTC (rev =
15160)
+++ stack/cxf/trunk/modules/testsuite/pom.xml 2011-10-25 13:46:49 UTC (rev =
15161)
@@ -747,6 +747,9 @@
=
org/jboss/test/ws/jaxws/jbws3367/**
+
+
+ org/jboss/test/ws/jaxws/jbws3276/**
@@ -926,6 +929,9 @@
=
org/jboss/test/ws/jaxws/jbws3367/**
+
+
+ org/jboss/test/ws/jaxws/jbws3276/**
@@ -1050,6 +1056,9 @@
org/jboss/test/ws/jaxws/jbws3367/**
=
+
+ org/jboss/test/ws/jaxws/jbws3276/**
+
org/jboss/test/ws/jaxws/jbws2074/**
org/jboss/test/ws/jaxws/jbws2634/**
@@ -1302,6 +1311,9 @@
=
+
+ org/jboss/test/ws/jaxws/jbws3276/**
+
org/jboss/test/ws/jaxws/jbws1813/**
org/jboss/test/ws/jaxws/jbws1841/**
--===============6910450709495050419==--
From jbossws-commits at lists.jboss.org Wed Oct 26 07:01:53 2011
Content-Type: multipart/mixed; boundary="===============3134109377392356988=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15162 -
stack/cxf/trunk/modules/testsuite.
Date: Wed, 26 Oct 2011 07:01:53 -0400
Message-ID: <201110261101.p9QB1rH3029266@svn01.web.mwc.hst.phx2.redhat.com>
--===============3134109377392356988==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: alessio.soldano(a)jboss.com
Date: 2011-10-26 07:01:52 -0400 (Wed, 26 Oct 2011)
New Revision: 15162
Modified:
stack/cxf/trunk/modules/testsuite/pom.xml
Log:
[JBPAPP-7430] Adding option for specifying jbossws-native-core filename on =
target AS distro through sys prop
Modified: stack/cxf/trunk/modules/testsuite/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/testsuite/pom.xml 2011-10-25 13:46:49 UTC (rev =
15161)
+++ stack/cxf/trunk/modules/testsuite/pom.xml 2011-10-26 11:01:52 UTC (rev =
15162)
@@ -1273,6 +1273,8 @@
${jboss.home}/modules/org/jbos=
s/ws/native/jbossws-native-core/main/jbossws-native-core-4.0.0.Beta3.jar
${jboss.home}/modules/org/jbos=
s/ws/native/jbossws-native-core/main/jbossws-native-core.jar
+
+ ${jboss.home}/modules/org/jbos=
s/ws/native/jbossws-native-core/main/${jbossws-native-core.filename}
--===============3134109377392356988==--
From jbossws-commits at lists.jboss.org Wed Oct 26 09:35:38 2011
Content-Type: multipart/mixed; boundary="===============2581688281269254519=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15163 -
stack/cxf/trunk/modules/testsuite.
Date: Wed, 26 Oct 2011 09:35:38 -0400
Message-ID: <201110261335.p9QDZcvf023286@svn01.web.mwc.hst.phx2.redhat.com>
--===============2581688281269254519==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-26 09:35:38 -0400 (Wed, 26 Oct 2011)
New Revision: 15163
Modified:
stack/cxf/trunk/modules/testsuite/pom.xml
Log:
updating excludes
Modified: stack/cxf/trunk/modules/testsuite/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/testsuite/pom.xml 2011-10-26 11:01:52 UTC (rev =
15162)
+++ stack/cxf/trunk/modules/testsuite/pom.xml 2011-10-26 13:35:38 UTC (rev =
15163)
@@ -1313,9 +1313,6 @@
=
-
- org/jboss/test/ws/jaxws/jbws3276/**
-
org/jboss/test/ws/jaxws/jbws1813/**
org/jboss/test/ws/jaxws/jbws1841/**
--===============2581688281269254519==--
From jbossws-commits at lists.jboss.org Wed Oct 26 09:35:41 2011
Content-Type: multipart/mixed; boundary="===============3492474169552823999=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15164 - in
thirdparty/cxf/branches/cxf-2.2.12:
tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal
and 3 other directories.
Date: Wed, 26 Oct 2011 09:35:41 -0400
Message-ID: <201110261335.p9QDZfJQ023296@svn01.web.mwc.hst.phx2.redhat.com>
--===============3492474169552823999==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: jim.ma
Date: 2011-10-26 09:35:40 -0400 (Wed, 26 Oct 2011)
New Revision: 15164
Added:
thirdparty/cxf/branches/cxf-2.2.12/tools/wsdlto/test/src/test/resources/=
wsdl2java_wsdl/cxf2193/
thirdparty/cxf/branches/cxf-2.2.12/tools/wsdlto/test/src/test/resources/=
wsdl2java_wsdl/cxf2193/hello_world_extension_wrapped.wsdl
Modified:
thirdparty/cxf/branches/cxf-2.2.12/rt/core/src/main/java/org/apache/cxf/=
wsdl11/WSDLServiceBuilder.java
thirdparty/cxf/branches/cxf-2.2.12/tools/wsdlto/frontend/jaxws/src/main/=
java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/Processo=
rUtil.java
thirdparty/cxf/branches/cxf-2.2.12/tools/wsdlto/test/src/test/java/org/a=
pache/cxf/tools/wsdlto/jaxws/CodeGenTest.java
Log:
[JBPAPP-7441]:Allow for WRAPPED style code generation for wrapper elements =
with xsd:extension
Modified: thirdparty/cxf/branches/cxf-2.2.12/rt/core/src/main/java/org/apac=
he/cxf/wsdl11/WSDLServiceBuilder.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- thirdparty/cxf/branches/cxf-2.2.12/rt/core/src/main/java/org/apache/cxf=
/wsdl11/WSDLServiceBuilder.java 2011-10-26 13:35:38 UTC (rev 15163)
+++ thirdparty/cxf/branches/cxf-2.2.12/rt/core/src/main/java/org/apache/cxf=
/wsdl11/WSDLServiceBuilder.java 2011-10-26 13:35:40 UTC (rev 15164)
@@ -83,6 +83,7 @@
import org.apache.ws.commons.schema.XmlSchemaObject;
import org.apache.ws.commons.schema.XmlSchemaObjectCollection;
import org.apache.ws.commons.schema.XmlSchemaSequence;
+import org.apache.ws.commons.schema.XmlSchemaType;
=
import static org.apache.cxf.helpers.CastUtils.cast;
=
@@ -740,56 +741,76 @@
MessageInfo wrapper, boolea=
n allowRefs) {
if (type.getParticle() instanceof XmlSchemaSequence) {
XmlSchemaSequence seq =3D (XmlSchemaSequence)type.getParticle(=
);
- XmlSchemaObjectCollection items =3D seq.getItems();
- boolean ret =3D true;
- for (int x =3D 0; x < items.getCount(); x++) {
- XmlSchemaObject o =3D items.getItem(x);
- if (!(o instanceof XmlSchemaElement)) {
+ return buildMessageParts(seq, namespaceURI, wrapper, allowRefs=
);
+ } else if (type.getParticle() =3D=3D null) {
+ if (type.getContentModel() =3D=3D null) {
+ return true;
+ }
+ if (type.getContentModel().getContent() instanceof XmlSchemaCo=
mplexContentExtension) {
+ XmlSchemaComplexContentExtension extension =3D (XmlSchemaC=
omplexContentExtension)type
+ .getContentModel().getContent();
+ QName baseTypeName =3D extension.getBaseTypeName();
+ ServiceInfo serviceInfo =3D wrapper.getOperation().getInte=
rface().getService();
+ XmlSchemaType schemaType =3D serviceInfo.getXmlSchemaColle=
ction().getTypeByQName(baseTypeName);
+ if (!(schemaType instanceof XmlSchemaComplexType)
+ || !isWrappableSequence((XmlSchemaComplexType)schemaTy=
pe, namespaceURI, wrapper,
+ allowRefs)) {
return false;
}
- XmlSchemaElement el =3D (XmlSchemaElement)o;
=
- if (el.getSchemaTypeName() !=3D null) {
- MessagePartInfo mpi =3D wrapper.addMessagePart(new QNa=
me(namespaceURI, el.getName()));
- mpi.setTypeQName(el.getSchemaTypeName());
- mpi.setConcreteName(el.getQName());
- mpi.setElement(true);
- mpi.setElementQName(el.getQName());
- mpi.setXmlSchema(el);
- } else if (el.getRefName() !=3D null) {
- MessagePartInfo mpi =3D wrapper.addMessagePart(el.getR=
efName());
- mpi.setTypeQName(el.getRefName());
- mpi.setElementQName(el.getRefName());
- mpi.setElement(true);
- mpi.setXmlSchema(el);
- mpi.setProperty("isRefElement", true);
- // element reference is not permitted for wrapper elem=
ent
- if (!allowRefs) {
- ret =3D false;
- }
- } else {
- // anonymous type
- MessagePartInfo mpi =3D wrapper.addMessagePart(new QNa=
me(namespaceURI, el.getName()));
- mpi.setConcreteName(el.getQName());
- mpi.setElementQName(mpi.getName());
- mpi.setElement(true);
- mpi.setXmlSchema(el);
+ if (extension.getParticle() instanceof XmlSchemaSequence) {
+ XmlSchemaSequence seq =3D (XmlSchemaSequence)extension=
.getParticle();
+ return buildMessageParts(seq, namespaceURI, wrapper, a=
llowRefs);
}
- }
=
- return ret;
- } else if (type.getParticle() =3D=3D null) {
- if (type.getContentModel() =3D=3D null) {
- return true;
}
- if (type.getContentModel().getContent() instanceof XmlSchemaCo=
mplexContentExtension) {
- return false;
- }
return true;
}
return false;
}
=
+ private static boolean buildMessageParts(XmlSchemaSequence seq, String=
namespaceURI, MessageInfo wrapper,
+ boolean allowRefs) {
+ XmlSchemaObjectCollection items =3D seq.getItems();
+ boolean ret =3D true;
+
+ for (int i =3D 0; i < items.getCount(); i++) {
+ XmlSchemaObject seqItem =3D items.getItem(i);
+ if (!(seqItem instanceof XmlSchemaElement)) {
+ return false;
+ }
+ XmlSchemaElement el =3D (XmlSchemaElement)seqItem;
+
+ if (el.getSchemaTypeName() !=3D null) {
+ MessagePartInfo mpi =3D wrapper.addMessagePart(new QName(n=
amespaceURI, el.getName()));
+ mpi.setTypeQName(el.getSchemaTypeName());
+ mpi.setElement(true);
+ mpi.setElementQName(el.getQName());
+ mpi.setConcreteName(el.getQName());
+ mpi.setXmlSchema(el);
+ } else if (el.getRefName() !=3D null) {
+ MessagePartInfo mpi =3D wrapper.addMessagePart(el.getRefNa=
me());
+ mpi.setTypeQName(el.getRefName());
+ mpi.setElementQName(el.getRefName());
+ mpi.setElement(true);
+ mpi.setXmlSchema(el);
+ mpi.setProperty("isRefElement", true);
+ // element reference is not permitted for wrapper element
+ if (!allowRefs) {
+ ret =3D false;
+ }
+ } else {
+ // anonymous type
+ MessagePartInfo mpi =3D wrapper.addMessagePart(new QName(n=
amespaceURI, el.getName()));
+ mpi.setElementQName(mpi.getName());
+ mpi.setConcreteName(el.getQName());
+ mpi.setElement(true);
+ mpi.setXmlSchema(el);
+ }
+ }
+ return ret;
+ }
+ =
private void buildMessage(AbstractMessageContainer minfo, Message msg)=
{
SchemaCollection schemas =3D minfo.getOperation().getInterface().g=
etService()
.getXmlSchemaCollection();
Modified: thirdparty/cxf/branches/cxf-2.2.12/tools/wsdlto/frontend/jaxws/sr=
c/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/P=
rocessorUtil.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- thirdparty/cxf/branches/cxf-2.2.12/tools/wsdlto/frontend/jaxws/src/main=
/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/Process=
orUtil.java 2011-10-26 13:35:38 UTC (rev 15163)
+++ thirdparty/cxf/branches/cxf-2.2.12/tools/wsdlto/frontend/jaxws/src/main=
/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/Process=
orUtil.java 2011-10-26 13:35:40 UTC (rev 15164)
@@ -49,11 +49,14 @@
import org.apache.cxf.tools.util.URIParserUtil;
import org.apache.cxf.tools.wsdlto.core.DataBindingProfile;
import org.apache.ws.commons.schema.XmlSchema;
+import org.apache.ws.commons.schema.XmlSchemaComplexContentExtension;
import org.apache.ws.commons.schema.XmlSchemaComplexType;
+import org.apache.ws.commons.schema.XmlSchemaContent;
import org.apache.ws.commons.schema.XmlSchemaElement;
import org.apache.ws.commons.schema.XmlSchemaForm;
import org.apache.ws.commons.schema.XmlSchemaObjectCollection;
import org.apache.ws.commons.schema.XmlSchemaSequence;
+import org.apache.ws.commons.schema.XmlSchemaType;
=
public final class ProcessorUtil {
private static final String KEYWORDS_PREFIX =3D "_";
@@ -373,25 +376,53 @@
=
public static List getWrappedElement(ToolContext conte=
xt, QName partElement) {
List qnames =3D new ArrayList();
- =
+
ServiceInfo serviceInfo =3D (ServiceInfo)context.get(ServiceInfo.c=
lass);
SchemaCollection schema =3D serviceInfo.getXmlSchemaCollection();
- =
+
XmlSchemaElement elementByName =3D schema.getElementByQName(partEl=
ement);
- =
+
XmlSchemaComplexType type =3D (XmlSchemaComplexType)elementByName.=
getSchemaType();
=
XmlSchemaSequence seq =3D (XmlSchemaSequence)type.getParticle();
- =
+
+ qnames.addAll(createWrappedElements(seq));
+
+ // If it's extension
+ if (seq =3D=3D null && type.getContentModel() !=3D null) {
+
+ XmlSchemaContent xmlSchemaConent =3D type.getContentModel().ge=
tContent();
+ if (xmlSchemaConent instanceof XmlSchemaComplexContentExtensio=
n) {
+ XmlSchemaComplexContentExtension extension =3D (XmlSchemaC=
omplexContentExtension)type
+ .getContentModel().getContent();
+ QName baseTypeName =3D extension.getBaseTypeName();
+ XmlSchemaType schemaType =3D schema.getTypeByQName(baseTyp=
eName);
+ if (schemaType instanceof XmlSchemaComplexType) {
+ XmlSchemaComplexType complexType =3D (XmlSchemaComplex=
Type)schemaType;
+ if (complexType.getParticle() instanceof XmlSchemaSequ=
ence) {
+ seq =3D (XmlSchemaSequence)complexType.getParticle=
();
+ qnames.addAll(createWrappedElements(seq));
+ }
+ }
+
+ if (extension.getParticle() instanceof XmlSchemaSequence) {
+ XmlSchemaSequence xmlSchemaSeq =3D (XmlSchemaSequence)=
extension.getParticle();
+ qnames.addAll(createWrappedElements(xmlSchemaSeq));
+ }
+ }
+
+ }
+ return qnames;
+ }
+ =
+ private static List createWrappedElements(XmlSchemaSeq=
uence seq) {
+
+ List qnames =3D new ArrayList();
if (seq !=3D null) {
-
XmlSchemaObjectCollection items =3D seq.getItems();
-
Iterator ite =3D items.getIterator();
-
while (ite.hasNext()) {
XmlSchemaElement subElement =3D (XmlSchemaElement)ite.next=
();
-
if (subElement.getQName() !=3D null) {
qnames.add(new WrapperElement(subElement.getQName(), s=
ubElement.getSchemaTypeName()));
} else {
Modified: thirdparty/cxf/branches/cxf-2.2.12/tools/wsdlto/test/src/test/jav=
a/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- thirdparty/cxf/branches/cxf-2.2.12/tools/wsdlto/test/src/test/java/org/=
apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java 2011-10-26 13:35:38 UTC (rev=
15163)
+++ thirdparty/cxf/branches/cxf-2.2.12/tools/wsdlto/test/src/test/java/org/=
apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java 2011-10-26 13:35:40 UTC (rev=
15164)
@@ -1350,5 +1350,26 @@
fault =3D classLoader.loadClass("org.apache.cxf.w2j.hello_world_so=
ap_http.BadRecordLitFault");
assertEquals(fault.getName().hashCode(), ObjectStreamClass.lookup(=
fault).getSerialVersionUID());
}
+ =
+ =
+ @Test
+ public void testExtensionWrapper() throws Exception {
+ env.put(ToolConstants.CFG_WSDLURL,
+ getLocation("/wsdl2java_wsdl/cxf2193/hello_world_extension=
_wrapped.wsdl"));
+ processor.setContext(env);
+ processor.execute();
=
+ File infFile =3D new File(output, "org/apache/cxf/w2j/extension_wr=
apped/Greeter.java");
+ assertTrue(infFile.exists());
+
+ Class> interfaceClass =3D classLoader.loadClass("org.apache.cxf.=
w2j.extension_wrapped.Greeter");
+
+ Method method =3D interfaceClass.getMethod("greetMe", new Class[] {
+ Holder.class, Holder.class, Holder.class, Holder.class, Holder=
.class
+ });
+ assertTrue("greetMe operation is NOT generated correctly as except=
ed", method !=3D null);
+ RequestWrapper reqWrapper =3D method.getAnnotation(RequestWrapper.=
class);
+ assertNotNull("@RequestWrapper is expected", reqWrapper);
+ }
+
}
Added: thirdparty/cxf/branches/cxf-2.2.12/tools/wsdlto/test/src/test/resour=
ces/wsdl2java_wsdl/cxf2193/hello_world_extension_wrapped.wsdl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- thirdparty/cxf/branches/cxf-2.2.12/tools/wsdlto/test/src/test/resources=
/wsdl2java_wsdl/cxf2193/hello_world_extension_wrapped.wsdl =
(rev 0)
+++ thirdparty/cxf/branches/cxf-2.2.12/tools/wsdlto/test/src/test/resources=
/wsdl2java_wsdl/cxf2193/hello_world_extension_wrapped.wsdl 2011-10-26 13:35=
:40 UTC (rev 15164)
@@ -0,0 +1,92 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
--===============3492474169552823999==--
From jbossws-commits at lists.jboss.org Wed Oct 26 09:36:31 2011
Content-Type: multipart/mixed; boundary="===============1815823466642146274=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15165 -
stack/native/trunk/modules/testsuite.
Date: Wed, 26 Oct 2011 09:36:31 -0400
Message-ID: <201110261336.p9QDaVuZ023307@svn01.web.mwc.hst.phx2.redhat.com>
--===============1815823466642146274==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-26 09:36:31 -0400 (Wed, 26 Oct 2011)
New Revision: 15165
Modified:
stack/native/trunk/modules/testsuite/pom.xml
Log:
updating excludes
Modified: stack/native/trunk/modules/testsuite/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/native/trunk/modules/testsuite/pom.xml 2011-10-26 13:35:40 UTC (r=
ev 15164)
+++ stack/native/trunk/modules/testsuite/pom.xml 2011-10-26 13:36:31 UTC (r=
ev 15165)
@@ -1023,9 +1023,6 @@
=
-
- org/jboss/test/ws/jaxws/jbws3276/**
-
org/jboss/test/ws/jaxws/jbws2116/**
org/jboss/test/ws/jaxws/jbws3182/**
--===============1815823466642146274==--
From jbossws-commits at lists.jboss.org Wed Oct 26 09:59:41 2011
Content-Type: multipart/mixed; boundary="===============0845621833347335237=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15166 - thirdparty/cxf/branches.
Date: Wed, 26 Oct 2011 09:59:41 -0400
Message-ID: <201110261359.p9QDxfLH024986@svn01.web.mwc.hst.phx2.redhat.com>
--===============0845621833347335237==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: jim.ma
Date: 2011-10-26 09:59:40 -0400 (Wed, 26 Oct 2011)
New Revision: 15166
Added:
thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/
Log:
Create branch for JBPAPP-7441
--===============0845621833347335237==--
From jbossws-commits at lists.jboss.org Wed Oct 26 12:52:50 2011
Content-Type: multipart/mixed; boundary="===============0252907387744050902=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15167 - in stack/cxf/trunk/modules:
client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration and 2 other
directories.
Date: Wed, 26 Oct 2011 12:52:50 -0400
Message-ID: <201110261652.p9QGqorh027017@svn01.web.mwc.hst.phx2.redhat.com>
--===============0252907387744050902==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: alessio.soldano(a)jboss.com
Date: 2011-10-26 12:52:49 -0400 (Wed, 26 Oct 2011)
New Revision: 15167
Modified:
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/cli=
ent/Constants.java
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/cli=
ent/configuration/SecurityActions.java
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/con=
figuration/NonSpringBusHolder.java
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/dep=
loyment/aspect/BusDeploymentAspect.java
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/dep=
loyment/aspect/DescriptorDeploymentAspect.java
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/dep=
loyment/aspect/SecurityActions.java
Log:
[JBWS-3280] Deploy using Spring bus only when Spring is available AND there=
's a jbossws-cxf.xml descriptor in the deployment
Modified: stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/=
cxf/client/Constants.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/cl=
ient/Constants.java 2011-10-26 13:59:40 UTC (rev 15166)
+++ stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/cl=
ient/Constants.java 2011-10-26 16:52:49 UTC (rev 15167)
@@ -31,4 +31,5 @@
public class Constants
{
public static final String DEPLOYMENT_BUS =3D "deployment-bus";
+ public static final String JBOSSWS_CXF_SPRING_DD =3D "jbossws-cxf.xml";
}
Modified: stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/=
cxf/client/configuration/SecurityActions.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/cl=
ient/configuration/SecurityActions.java 2011-10-26 13:59:40 UTC (rev 15166)
+++ stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/cl=
ient/configuration/SecurityActions.java 2011-10-26 16:52:49 UTC (rev 15167)
@@ -78,5 +78,24 @@
});
}
}
+ =
+ /**
+ * Return the current value of the specified system property
+ * =
+ * @param name
+ * @param defaultValue
+ * @return
+ */
+ static String getSystemProperty(final String name, final String default=
Value)
+ {
+ PrivilegedAction action =3D new PrivilegedAction()
+ {
+ public String run()
+ {
+ return System.getProperty(name, defaultValue);
+ }
+ };
+ return AccessController.doPrivileged(action);
+ }
=
}
Modified: stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/=
cxf/configuration/NonSpringBusHolder.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/co=
nfiguration/NonSpringBusHolder.java 2011-10-26 13:59:40 UTC (rev 15166)
+++ stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/co=
nfiguration/NonSpringBusHolder.java 2011-10-26 16:52:49 UTC (rev 15167)
@@ -94,7 +94,8 @@
for (DDEndpoint dde : metadata.getEndpoints())
{
EndpointImpl endpoint =3D new EndpointImpl(bus, newInstance(dde.g=
etImplementor()));
- endpoint.setInvoker((Invoker) newInstance(dde.getInvoker()));
+ if (dde.getInvoker() !=3D null)
+ endpoint.setInvoker((Invoker) newInstance(dde.getInvoker()));
endpoint.setAddress(dde.getAddress());
endpoint.setEndpointName(dde.getPortName());
endpoint.setServiceName(dde.getServiceName());
Modified: stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/=
cxf/deployment/aspect/BusDeploymentAspect.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/de=
ployment/aspect/BusDeploymentAspect.java 2011-10-26 13:59:40 UTC (rev 15166)
+++ stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/de=
ployment/aspect/BusDeploymentAspect.java 2011-10-26 16:52:49 UTC (rev 15167)
@@ -76,7 +76,7 @@
//parent to make sure user provided libs in the deployment do no =
mess up the WS endpoint's deploy if they duplicates
//libraries already available on the application server modules.
SecurityActions.setContextClassLoader(new DelegateClassLoader(dep=
.getRuntimeClassLoader(), origClassLoader));
- if (jbosswsCxfXml !=3D null) // Spring available
+ if (jbosswsCxfXml !=3D null) // Spring available and jbossws-cxf.=
xml provided
{
URL cxfServletURL =3D null;
try
@@ -100,7 +100,7 @@
}
}
else
- //Spring not available
+ //Spring not available or jbossws-cxf.xml not provided
{
DDBeans metadata =3D dep.getAttachment(DDBeans.class);
holder =3D new NonSpringBusHolder(metadata);
Modified: stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/=
cxf/deployment/aspect/DescriptorDeploymentAspect.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/de=
ployment/aspect/DescriptorDeploymentAspect.java 2011-10-26 13:59:40 UTC (re=
v 15166)
+++ stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/de=
ployment/aspect/DescriptorDeploymentAspect.java 2011-10-26 16:52:49 UTC (re=
v 15167)
@@ -38,6 +38,7 @@
import org.jboss.ws.common.integration.WSConstants;
import org.jboss.wsf.spi.deployment.ArchiveDeployment;
import org.jboss.wsf.spi.deployment.Deployment;
+import org.jboss.wsf.stack.cxf.client.Constants;
import org.jboss.wsf.stack.cxf.client.util.SpringUtils;
import org.jboss.wsf.stack.cxf.configuration.BusHolder;
import org.jboss.wsf.stack.cxf.metadata.MetadataBuilder;
@@ -51,6 +52,8 @@
*/
public class DescriptorDeploymentAspect extends AbstractDeploymentAspect
{
+ private static final boolean PREFER_SPRING_DESCRIPTOR_GENERATION =3D Bo=
olean.getBoolean("org.jboss.ws.cxf.prefer_spring_descriptor_generation");
+ =
private static final ResourceBundle bundle =3D BundleUtils.getBundle(De=
scriptorDeploymentAspect.class);
// provide logging
private static final Logger log =3D Logger.getLogger(DescriptorDeployme=
ntAspect.class);
@@ -58,21 +61,29 @@
@Override
public void start(Deployment dep)
{
+ URL cxfURL =3D null;
if (SpringUtils.isSpringAvailable())
{
- URL cxfURL =3D getCXFConfigFromDeployment(dep);
- if (cxfURL =3D=3D null)
+ //only try reading jbossws-cxf.xml if Spring available...
+ cxfURL =3D getCXFConfigFromDeployment(dep);
+ //... but do not generate it if it's not provided
+ //or unless it's explicitly required to be generated
+ if (cxfURL =3D=3D null && PREFER_SPRING_DESCRIPTOR_GENERATION)
{
- cxfURL =3D generateCXFConfigFromDeployment(dep);
+ DDBeans dd =3D generateMetadataFromDeployment(dep);
+ cxfURL =3D dd.createFileURL();
+ log.info("JBossWS-CXF configuration generated: " + cxfURL);
}
- putCXFConfigToDeployment(dep, cxfURL);
-
}
- else
+ if (cxfURL =3D=3D null)
{
- log.debug("Spring not available, skipping check for user provided=
jbossws-cxf.xml / cxf.xml configuration files.");
generateMetadataFromDeployment(dep);
}
+ else
+ {
+ log.info("Actual configuration from file: " + cxfURL);
+ putCXFConfigToDeployment(dep, cxfURL);
+ }
}
=
@Override
@@ -118,7 +129,7 @@
{
// get resource URL
ArchiveDeployment archDep =3D (ArchiveDeployment)dep;
- cxfURL =3D archDep.getResourceResolver().resolve(metadir + "/jbos=
sws-cxf.xml");
+ cxfURL =3D archDep.getResourceResolver().resolve(metadir + "/" + =
Constants.JBOSSWS_CXF_SPRING_DD);
log.info("JBossWS-CXF configuration found: " + cxfURL);
}
catch (IOException ignore)
@@ -130,22 +141,8 @@
}
=
/**
- * Generated CXF descriptor from deployment
- * @param dep deployment
- * @return CXF descriptor URL
- */
- private URL generateCXFConfigFromDeployment(Deployment dep)
- {
- // Generate the jbossws-cxf.xml descriptor
- DDBeans dd =3D generateMetadataFromDeployment(dep);
- URL cxfURL =3D dd.createFileURL();
- log.info("JBossWS-CXF configuration generated: " + cxfURL);
-
- return cxfURL;
- }
- =
- /**
* Generates the jbossws-cxf metadata from the deployment
+ * and attaches it the deployment
* @param dep
* @return
*/
Modified: stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/=
cxf/deployment/aspect/SecurityActions.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/de=
ployment/aspect/SecurityActions.java 2011-10-26 13:59:40 UTC (rev 15166)
+++ stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/de=
ployment/aspect/SecurityActions.java 2011-10-26 16:52:49 UTC (rev 15167)
@@ -79,4 +79,22 @@
}
}
=
+ /**
+ * Return the current value of the specified system property
+ * =
+ * @param name
+ * @param defaultValue
+ * @return
+ */
+ static String getSystemProperty(final String name, final String default=
Value)
+ {
+ PrivilegedAction action =3D new PrivilegedAction()
+ {
+ public String run()
+ {
+ return System.getProperty(name, defaultValue);
+ }
+ };
+ return AccessController.doPrivileged(action);
+ }
}
--===============0252907387744050902==--
From jbossws-commits at lists.jboss.org Wed Oct 26 12:54:41 2011
Content-Type: multipart/mixed; boundary="===============4367442642971326028=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15168 -
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/deployment/aspect.
Date: Wed, 26 Oct 2011 12:54:40 -0400
Message-ID: <201110261654.p9QGseku027032@svn01.web.mwc.hst.phx2.redhat.com>
--===============4367442642971326028==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: alessio.soldano(a)jboss.com
Date: 2011-10-26 12:54:40 -0400 (Wed, 26 Oct 2011)
New Revision: 15168
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/dep=
loyment/aspect/DescriptorDeploymentAspect.java
Log:
[JBWS-3280] Move logs to debug level
Modified: stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/=
cxf/deployment/aspect/DescriptorDeploymentAspect.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/de=
ployment/aspect/DescriptorDeploymentAspect.java 2011-10-26 16:52:49 UTC (re=
v 15167)
+++ stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/de=
ployment/aspect/DescriptorDeploymentAspect.java 2011-10-26 16:54:40 UTC (re=
v 15168)
@@ -72,7 +72,7 @@
{
DDBeans dd =3D generateMetadataFromDeployment(dep);
cxfURL =3D dd.createFileURL();
- log.info("JBossWS-CXF configuration generated: " + cxfURL);
+ log.debug("JBossWS-CXF configuration generated: " + cxfURL);
}
}
if (cxfURL =3D=3D null)
@@ -81,7 +81,7 @@
}
else
{
- log.info("Actual configuration from file: " + cxfURL);
+ log.debug("Actual configuration from file: " + cxfURL);
putCXFConfigToDeployment(dep, cxfURL);
}
}
@@ -130,7 +130,7 @@
// get resource URL
ArchiveDeployment archDep =3D (ArchiveDeployment)dep;
cxfURL =3D archDep.getResourceResolver().resolve(metadir + "/" + =
Constants.JBOSSWS_CXF_SPRING_DD);
- log.info("JBossWS-CXF configuration found: " + cxfURL);
+ log.debug("JBossWS-CXF configuration found: " + cxfURL);
}
catch (IOException ignore)
{
--===============4367442642971326028==--
From jbossws-commits at lists.jboss.org Thu Oct 27 02:17:58 2011
Content-Type: multipart/mixed; boundary="===============2417864740689225460=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15169 -
thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization.
Date: Thu, 27 Oct 2011 02:17:57 -0400
Message-ID: <201110270617.p9R6HvWa023239@svn01.web.mwc.hst.phx2.redhat.com>
--===============2417864740689225460==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: jim.ma
Date: 2011-10-27 02:17:57 -0400 (Thu, 27 Oct 2011)
New Revision: 15169
Modified:
thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/tools/wsdlto/fro=
ntend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/custom=
ization/CustomizationParser.java
Log:
Port the CXF-3296 fix to resolve the build failure
Modified: thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/tools/wsd=
lto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws=
/customization/CustomizationParser.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/tools/wsdlto/fr=
ontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/custo=
mization/CustomizationParser.java 2011-10-26 16:54:40 UTC (rev 15168)
+++ thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/tools/wsdlto/fr=
ontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/custo=
mization/CustomizationParser.java 2011-10-27 06:17:57 UTC (rev 15169)
@@ -90,11 +90,13 @@
try {
wsdlURL =3D URIParserUtil.getAbsoluteURI((String)env.get(ToolC=
onstants.CFG_WSDLURL));
=
- wsdlNode =3D getTargetNode(this.wsdlURL);
-
- if (wsdlNode =3D=3D null && env.get(ToolConstants.CFG_CATALOG)=
!=3D null) {
+ if (env.get(ToolConstants.CFG_CATALOG) !=3D null) {
wsdlNode =3D resolveNodeByCatalog(wsdlURL);
}
+
+ if (wsdlNode =3D=3D null) {
+ wsdlNode =3D getTargetNode(this.wsdlURL);
+ }
=
if (wsdlNode =3D=3D null) {
throw new ToolException(new Message("MISSING_WSDL", LOG, w=
sdlURL));
@@ -132,6 +134,9 @@
}
=
public Element getTargetNode(String uri) {
+ if (uri =3D=3D null) {
+ return null;
+ }
if (uri.equals(wsdlURL) && wsdlNode !=3D null) {
return wsdlNode;
}
--===============2417864740689225460==--
From jbossws-commits at lists.jboss.org Thu Oct 27 03:29:55 2011
Content-Type: multipart/mixed; boundary="===============4533836519195315778=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15170 - in
thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441:
tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal
and 3 other directories.
Date: Thu, 27 Oct 2011 03:29:54 -0400
Message-ID: <201110270729.p9R7Ts55003533@svn01.web.mwc.hst.phx2.redhat.com>
--===============4533836519195315778==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: jim.ma
Date: 2011-10-27 03:29:53 -0400 (Thu, 27 Oct 2011)
New Revision: 15170
Added:
thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/tools/wsdlto/tes=
t/src/test/resources/wsdl2java_wsdl/cxf2193/
thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/tools/wsdlto/tes=
t/src/test/resources/wsdl2java_wsdl/cxf2193/hello_world_extension_wrapped.w=
sdl
Modified:
thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/rt/core/src/main=
/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/tools/wsdlto/fro=
ntend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/proces=
sor/internal/ProcessorUtil.java
thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/tools/wsdlto/tes=
t/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java
Log:
[JBPAPP-7441]:Allow for WRAPPED style code generation for elements with xsd=
:extension
Modified: thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/rt/core/s=
rc/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/rt/core/src/mai=
n/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java 2011-10-27 06:17:57 UT=
C (rev 15169)
+++ thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/rt/core/src/mai=
n/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java 2011-10-27 07:29:53 UT=
C (rev 15170)
@@ -83,6 +83,7 @@
import org.apache.ws.commons.schema.XmlSchemaObject;
import org.apache.ws.commons.schema.XmlSchemaObjectCollection;
import org.apache.ws.commons.schema.XmlSchemaSequence;
+import org.apache.ws.commons.schema.XmlSchemaType;
=
import static org.apache.cxf.helpers.CastUtils.cast;
=
@@ -740,56 +741,76 @@
MessageInfo wrapper, boolea=
n allowRefs) {
if (type.getParticle() instanceof XmlSchemaSequence) {
XmlSchemaSequence seq =3D (XmlSchemaSequence)type.getParticle(=
);
- XmlSchemaObjectCollection items =3D seq.getItems();
- boolean ret =3D true;
- for (int x =3D 0; x < items.getCount(); x++) {
- XmlSchemaObject o =3D items.getItem(x);
- if (!(o instanceof XmlSchemaElement)) {
+ return buildMessageParts(seq, namespaceURI, wrapper, allowRefs=
);
+ } else if (type.getParticle() =3D=3D null) {
+ if (type.getContentModel() =3D=3D null) {
+ return true;
+ }
+ if (type.getContentModel().getContent() instanceof XmlSchemaCo=
mplexContentExtension) {
+ XmlSchemaComplexContentExtension extension =3D (XmlSchemaC=
omplexContentExtension)type
+ .getContentModel().getContent();
+ QName baseTypeName =3D extension.getBaseTypeName();
+ ServiceInfo serviceInfo =3D wrapper.getOperation().getInte=
rface().getService();
+ XmlSchemaType schemaType =3D serviceInfo.getXmlSchemaColle=
ction().getTypeByQName(baseTypeName);
+ if (!(schemaType instanceof XmlSchemaComplexType)
+ || !isWrappableSequence((XmlSchemaComplexType)schemaTy=
pe, namespaceURI, wrapper,
+ allowRefs)) {
return false;
}
- XmlSchemaElement el =3D (XmlSchemaElement)o;
=
- if (el.getSchemaTypeName() !=3D null) {
- MessagePartInfo mpi =3D wrapper.addMessagePart(new QNa=
me(namespaceURI, el.getName()));
- mpi.setTypeQName(el.getSchemaTypeName());
- mpi.setConcreteName(el.getQName());
- mpi.setElement(true);
- mpi.setElementQName(el.getQName());
- mpi.setXmlSchema(el);
- } else if (el.getRefName() !=3D null) {
- MessagePartInfo mpi =3D wrapper.addMessagePart(el.getR=
efName());
- mpi.setTypeQName(el.getRefName());
- mpi.setElementQName(el.getRefName());
- mpi.setElement(true);
- mpi.setXmlSchema(el);
- mpi.setProperty("isRefElement", true);
- // element reference is not permitted for wrapper elem=
ent
- if (!allowRefs) {
- ret =3D false;
- }
- } else {
- // anonymous type
- MessagePartInfo mpi =3D wrapper.addMessagePart(new QNa=
me(namespaceURI, el.getName()));
- mpi.setConcreteName(el.getQName());
- mpi.setElementQName(mpi.getName());
- mpi.setElement(true);
- mpi.setXmlSchema(el);
+ if (extension.getParticle() instanceof XmlSchemaSequence) {
+ XmlSchemaSequence seq =3D (XmlSchemaSequence)extension=
.getParticle();
+ return buildMessageParts(seq, namespaceURI, wrapper, a=
llowRefs);
}
- }
=
- return ret;
- } else if (type.getParticle() =3D=3D null) {
- if (type.getContentModel() =3D=3D null) {
- return true;
}
- if (type.getContentModel().getContent() instanceof XmlSchemaCo=
mplexContentExtension) {
- return false;
- }
return true;
}
return false;
}
=
+ private static boolean buildMessageParts(XmlSchemaSequence seq, String=
namespaceURI, MessageInfo wrapper,
+ boolean allowRefs) {
+ XmlSchemaObjectCollection items =3D seq.getItems();
+ boolean ret =3D true;
+
+ for (int i =3D 0; i < items.getCount(); i++) {
+ XmlSchemaObject seqItem =3D items.getItem(i);
+ if (!(seqItem instanceof XmlSchemaElement)) {
+ return false;
+ }
+ XmlSchemaElement el =3D (XmlSchemaElement)seqItem;
+
+ if (el.getSchemaTypeName() !=3D null) {
+ MessagePartInfo mpi =3D wrapper.addMessagePart(new QName(n=
amespaceURI, el.getName()));
+ mpi.setTypeQName(el.getSchemaTypeName());
+ mpi.setElement(true);
+ mpi.setElementQName(el.getQName());
+ mpi.setConcreteName(el.getQName());
+ mpi.setXmlSchema(el);
+ } else if (el.getRefName() !=3D null) {
+ MessagePartInfo mpi =3D wrapper.addMessagePart(el.getRefNa=
me());
+ mpi.setTypeQName(el.getRefName());
+ mpi.setElementQName(el.getRefName());
+ mpi.setElement(true);
+ mpi.setXmlSchema(el);
+ mpi.setProperty("isRefElement", true);
+ // element reference is not permitted for wrapper element
+ if (!allowRefs) {
+ ret =3D false;
+ }
+ } else {
+ // anonymous type
+ MessagePartInfo mpi =3D wrapper.addMessagePart(new QName(n=
amespaceURI, el.getName()));
+ mpi.setElementQName(mpi.getName());
+ mpi.setConcreteName(el.getQName());
+ mpi.setElement(true);
+ mpi.setXmlSchema(el);
+ }
+ }
+ return ret;
+ }
+ =
private void buildMessage(AbstractMessageContainer minfo, Message msg)=
{
SchemaCollection schemas =3D minfo.getOperation().getInterface().g=
etService()
.getXmlSchemaCollection();
Modified: thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/tools/wsd=
lto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws=
/processor/internal/ProcessorUtil.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/tools/wsdlto/fr=
ontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/proce=
ssor/internal/ProcessorUtil.java 2011-10-27 06:17:57 UTC (rev 15169)
+++ thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/tools/wsdlto/fr=
ontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/proce=
ssor/internal/ProcessorUtil.java 2011-10-27 07:29:53 UTC (rev 15170)
@@ -49,11 +49,14 @@
import org.apache.cxf.tools.util.URIParserUtil;
import org.apache.cxf.tools.wsdlto.core.DataBindingProfile;
import org.apache.ws.commons.schema.XmlSchema;
+import org.apache.ws.commons.schema.XmlSchemaComplexContentExtension;
import org.apache.ws.commons.schema.XmlSchemaComplexType;
+import org.apache.ws.commons.schema.XmlSchemaContent;
import org.apache.ws.commons.schema.XmlSchemaElement;
import org.apache.ws.commons.schema.XmlSchemaForm;
import org.apache.ws.commons.schema.XmlSchemaObjectCollection;
import org.apache.ws.commons.schema.XmlSchemaSequence;
+import org.apache.ws.commons.schema.XmlSchemaType;
=
public final class ProcessorUtil {
private static final String KEYWORDS_PREFIX =3D "_";
@@ -373,25 +376,53 @@
=
public static List getWrappedElement(ToolContext conte=
xt, QName partElement) {
List qnames =3D new ArrayList();
- =
+
ServiceInfo serviceInfo =3D (ServiceInfo)context.get(ServiceInfo.c=
lass);
SchemaCollection schema =3D serviceInfo.getXmlSchemaCollection();
- =
+
XmlSchemaElement elementByName =3D schema.getElementByQName(partEl=
ement);
- =
+
XmlSchemaComplexType type =3D (XmlSchemaComplexType)elementByName.=
getSchemaType();
=
XmlSchemaSequence seq =3D (XmlSchemaSequence)type.getParticle();
- =
+
+ qnames.addAll(createWrappedElements(seq));
+
+ // If it's extension
+ if (seq =3D=3D null && type.getContentModel() !=3D null) {
+
+ XmlSchemaContent xmlSchemaConent =3D type.getContentModel().ge=
tContent();
+ if (xmlSchemaConent instanceof XmlSchemaComplexContentExtensio=
n) {
+ XmlSchemaComplexContentExtension extension =3D (XmlSchemaC=
omplexContentExtension)type
+ .getContentModel().getContent();
+ QName baseTypeName =3D extension.getBaseTypeName();
+ XmlSchemaType schemaType =3D schema.getTypeByQName(baseTyp=
eName);
+ if (schemaType instanceof XmlSchemaComplexType) {
+ XmlSchemaComplexType complexType =3D (XmlSchemaComplex=
Type)schemaType;
+ if (complexType.getParticle() instanceof XmlSchemaSequ=
ence) {
+ seq =3D (XmlSchemaSequence)complexType.getParticle=
();
+ qnames.addAll(createWrappedElements(seq));
+ }
+ }
+
+ if (extension.getParticle() instanceof XmlSchemaSequence) {
+ XmlSchemaSequence xmlSchemaSeq =3D (XmlSchemaSequence)=
extension.getParticle();
+ qnames.addAll(createWrappedElements(xmlSchemaSeq));
+ }
+ }
+
+ }
+ return qnames;
+ }
+ =
+ private static List createWrappedElements(XmlSchemaSeq=
uence seq) {
+
+ List qnames =3D new ArrayList();
if (seq !=3D null) {
-
XmlSchemaObjectCollection items =3D seq.getItems();
-
Iterator ite =3D items.getIterator();
-
while (ite.hasNext()) {
XmlSchemaElement subElement =3D (XmlSchemaElement)ite.next=
();
-
if (subElement.getQName() !=3D null) {
qnames.add(new WrapperElement(subElement.getQName(), s=
ubElement.getSchemaTypeName()));
} else {
Modified: thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/tools/wsd=
lto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/tools/wsdlto/te=
st/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java 2011-10=
-27 06:17:57 UTC (rev 15169)
+++ thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/tools/wsdlto/te=
st/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java 2011-10=
-27 07:29:53 UTC (rev 15170)
@@ -1350,5 +1350,26 @@
fault =3D classLoader.loadClass("org.apache.cxf.w2j.hello_world_so=
ap_http.BadRecordLitFault");
assertEquals(fault.getName().hashCode(), ObjectStreamClass.lookup(=
fault).getSerialVersionUID());
}
+ =
+ =
+ @Test
+ public void testExtensionWrapper() throws Exception {
+ env.put(ToolConstants.CFG_WSDLURL,
+ getLocation("/wsdl2java_wsdl/cxf2193/hello_world_extension=
_wrapped.wsdl"));
+ processor.setContext(env);
+ processor.execute();
=
+ File infFile =3D new File(output, "org/apache/cxf/w2j/extension_wr=
apped/Greeter.java");
+ assertTrue(infFile.exists());
+
+ Class> interfaceClass =3D classLoader.loadClass("org.apache.cxf.=
w2j.extension_wrapped.Greeter");
+
+ Method method =3D interfaceClass.getMethod("greetMe", new Class[] {
+ Holder.class, Holder.class, Holder.class, Holder.class, Holder=
.class
+ });
+ assertTrue("greetMe operation is NOT generated correctly as except=
ed", method !=3D null);
+ RequestWrapper reqWrapper =3D method.getAnnotation(RequestWrapper.=
class);
+ assertNotNull("@RequestWrapper is expected", reqWrapper);
+ }
+
}
Added: thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/tools/wsdlto=
/test/src/test/resources/wsdl2java_wsdl/cxf2193/hello_world_extension_wrapp=
ed.wsdl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/tools/wsdlto/te=
st/src/test/resources/wsdl2java_wsdl/cxf2193/hello_world_extension_wrapped.=
wsdl (rev 0)
+++ thirdparty/cxf/branches/cxf-2.2.12-patch-01_JBPAPP-7441/tools/wsdlto/te=
st/src/test/resources/wsdl2java_wsdl/cxf2193/hello_world_extension_wrapped.=
wsdl 2011-10-27 07:29:53 UTC (rev 15170)
@@ -0,0 +1,184 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
--===============4533836519195315778==--
From jbossws-commits at lists.jboss.org Thu Oct 27 05:18:40 2011
Content-Type: multipart/mixed; boundary="===============6737047057298442558=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15171 - in stack/cxf/trunk/modules:
server/src/main/java/org/jboss/wsf/stack/cxf/configuration and 1 other
directory.
Date: Thu, 27 Oct 2011 05:18:40 -0400
Message-ID: <201110270918.p9R9IenK027062@svn01.web.mwc.hst.phx2.redhat.com>
--===============6737047057298442558==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: alessio.soldano(a)jboss.com
Date: 2011-10-27 05:18:37 -0400 (Thu, 27 Oct 2011)
New Revision: 15171
Modified:
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/cli=
ent/configuration/JBossWSSpringBusFactory.java
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/con=
figuration/SpringBusHolder.java
Log:
[JBWS-3280] Porting to JBossWSSpringBusFactory the Apache CXF SpringBusFact=
ory logic for avoiding creating a Spring Bus when no spring descriptor is f=
ound (basically for client side usage)
Modified: stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/=
cxf/client/configuration/JBossWSSpringBusFactory.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/cl=
ient/configuration/JBossWSSpringBusFactory.java 2011-10-27 07:29:53 UTC (re=
v 15170)
+++ stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/cl=
ient/configuration/JBossWSSpringBusFactory.java 2011-10-27 09:18:37 UTC (re=
v 15171)
@@ -1,6 +1,6 @@
/*
* JBoss, Home of Professional Open Source.
- * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * Copyright 2011, 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.
*
@@ -34,6 +34,7 @@
import org.apache.cxf.configuration.Configurer;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
+import org.springframework.core.io.Resource;
=
/**
* A JBossWS version of @see{org.apache.cxf.bus.spring.SpringBusFactory} t=
hat
@@ -46,6 +47,8 @@
public class JBossWSSpringBusFactory extends SpringBusFactory
{
private static final Logger LOG =3D LogUtils.getL7dLogger(JBossWSSpring=
BusFactory.class);
+ =
+ private boolean customContextProvided =3D false;
=
public JBossWSSpringBusFactory()
{
@@ -55,18 +58,27 @@
public JBossWSSpringBusFactory(ApplicationContext context)
{
super(context);
+ this.customContextProvided =3D (context !=3D null);
}
=
/**
- * We override the Apache CXF method to skip the checks on cxf.xml conf=
file as that would prevent
- * creating a Spring version of the bus when the jbossws-cxf.xml is ava=
ilable; generally speaking
- * the JBossWS-CXF integration requires a Spring bus to be created by S=
pring bus factories.
+ * This overrides the Apache CXF method to delegate to
+ * @see{org.jboss.wsf.stack.cxf.client.configuration.JBossWSNonSpringBu=
sFactory}
+ * when there's no need for a Spring bus.
*/
@Override
public Bus createBus(String cfgFiles[], boolean includeDefaults)
{
try
{
+ String userCfgFile =3D System.getProperty(Configurer.USER_CFG_FIL=
E_PROPERTY_NAME);
+ String sysCfgFileUrl =3D System.getProperty(Configurer.USER_CFG_F=
ILE_PROPERTY_URL);
+ Resource r =3D BusApplicationContext.findResource(Configurer.DEFA=
ULT_USER_CFG_FILE);
+ if (!customContextProvided && userCfgFile =3D=3D null && cfgFiles=
=3D=3D null && sysCfgFileUrl =3D=3D null
+ && (r =3D=3D null || !r.exists()) && includeDefaults)
+ {
+ return new JBossWSNonSpringBusFactory().createBus();
+ }
return finishCreatingBus(createApplicationContext(cfgFiles, inclu=
deDefaults));
}
catch (BeansException ex)
Modified: stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/=
cxf/configuration/SpringBusHolder.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/co=
nfiguration/SpringBusHolder.java 2011-10-27 07:29:53 UTC (rev 15170)
+++ stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/co=
nfiguration/SpringBusHolder.java 2011-10-27 09:18:37 UTC (rev 15171)
@@ -86,7 +86,10 @@
*/
protected void createBus(URL location)
{
- bus =3D new JBossWSSpringBusFactory().createBus();
+ //use createBus(URL[] urls) method instead of createBus() to bypass
+ //the cxf/jbossws-cxf check on actual need for spring bus (we know
+ //it's required here as we have the jbossws-cxf.xml descriptor)
+ bus =3D new JBossWSSpringBusFactory().createBus((URL[])null);
ctx =3D bus.getExtension(BusApplicationContext.class);
//Load additional configurations from cxf-servlet.xml
if (location !=3D null)
--===============6737047057298442558==--
From jbossws-commits at lists.jboss.org Fri Oct 28 07:10:45 2011
Content-Type: multipart/mixed; boundary="===============7642639792268273567=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15172 - in
stack/cxf/trunk/modules/testsuite: cxf-tests/scripts and 3 other directories.
Date: Fri, 28 Oct 2011 07:10:45 -0400
Message-ID: <201110281110.p9SBAjnf003224@svn01.web.mwc.hst.phx2.redhat.com>
--===============7642639792268273567==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: alessio.soldano(a)jboss.com
Date: 2011-10-28 07:10:44 -0400 (Fri, 28 Oct 2011)
New Revision: 15172
Removed:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/sam=
ples/wsse/policy/jaas/ejb/META-INF/jboss.xml
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-jars-jaxws.xml
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test=
/ws/jaxws/samples/wsse/policy/jaas/EJBServiceImpl.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test=
/ws/jaxws/samples/wsse/policy/jaas/UsernameAuthorizationEJBTestCase.java
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/sam=
ples/wsse/policy/jaas/ejb/META-INF/wsdl/SecurityService.wsdl
stack/cxf/trunk/modules/testsuite/pom.xml
Log:
Use @SecurityDomain instead of security domain declaration in jboss.xml to =
make the test pass against AS 7.1 too (EJB3 DD support still to be implemen=
ted)
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-jars-jaxw=
s.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-jars-jaxws.xml =
2011-10-27 09:18:37 UTC (rev 15171)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/scripts/cxf-jars-jaxws.xml =
2011-10-28 11:10:44 UTC (rev 15172)
@@ -386,7 +386,6 @@
-
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jbo=
ss/test/ws/jaxws/samples/wsse/policy/jaas/EJBServiceImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/tes=
t/ws/jaxws/samples/wsse/policy/jaas/EJBServiceImpl.java 2011-10-27 09:18:37=
UTC (rev 15171)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/tes=
t/ws/jaxws/samples/wsse/policy/jaas/EJBServiceImpl.java 2011-10-28 11:10:44=
UTC (rev 15172)
@@ -28,6 +28,7 @@
=
import org.apache.cxf.interceptor.InInterceptors;
import org.jboss.logging.Logger;
+import org.jboss.ejb3.annotation.SecurityDomain;
import org.jboss.ws.api.annotation.EndpointConfig;
=
=
@@ -40,6 +41,7 @@
targetNamespace =3D "http://www.jboss.org/jbossws/ws-extensions/wssecur=
itypolicy",
endpointInterface =3D "org.jboss.test.ws.jaxws.samples.wsse.policy.jaas=
.ServiceIface"
)
+(a)SecurityDomain("JBossWS")
@EndpointConfig(configFile =3D "META-INF/jaxws-endpoint-config.xml", confi=
gName =3D "Custom WS-Security Endpoint")
//be sure to have dependency on org.apache.cxf module when on AS7, otherwi=
se Apache CXF annotations are ignored =
@InInterceptors(interceptors =3D {"org.jboss.wsf.stack.cxf.security.authen=
tication.SubjectCreatingPolicyInterceptor"})
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jbo=
ss/test/ws/jaxws/samples/wsse/policy/jaas/UsernameAuthorizationEJBTestCase.=
java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/tes=
t/ws/jaxws/samples/wsse/policy/jaas/UsernameAuthorizationEJBTestCase.java 2=
011-10-27 09:18:37 UTC (rev 15171)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/tes=
t/ws/jaxws/samples/wsse/policy/jaas/UsernameAuthorizationEJBTestCase.java 2=
011-10-28 11:10:44 UTC (rev 15172)
@@ -91,7 +91,8 @@
catch (Exception e)
{
assertNotNull(e.getMessage());
- assertTrue(e.getMessage().toLowerCase().contains("unauthorized"));
+ String msg =3D e.getMessage().toLowerCase();
+ assertTrue(msg.contains("unauthorized") || msg.contains("not allo=
wed"));
}
}
=
Deleted: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jax=
ws/samples/wsse/policy/jaas/ejb/META-INF/jboss.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/sa=
mples/wsse/policy/jaas/ejb/META-INF/jboss.xml 2011-10-27 09:18:37 UTC (rev =
15171)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/sa=
mples/wsse/policy/jaas/ejb/META-INF/jboss.xml 2011-10-28 11:10:44 UTC (rev =
15172)
@@ -1,7 +0,0 @@
-
-
-
-
-
- java:/jaas/JBossWS
-
Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/ja=
xws/samples/wsse/policy/jaas/ejb/META-INF/wsdl/SecurityService.wsdl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/sa=
mples/wsse/policy/jaas/ejb/META-INF/wsdl/SecurityService.wsdl 2011-10-27 09=
:18:37 UTC (rev 15171)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/resources/jaxws/sa=
mples/wsse/policy/jaas/ejb/META-INF/wsdl/SecurityService.wsdl 2011-10-28 11=
:10:44 UTC (rev 15172)
@@ -58,7 +58,7 @@
-
+
=
Modified: stack/cxf/trunk/modules/testsuite/pom.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- stack/cxf/trunk/modules/testsuite/pom.xml 2011-10-27 09:18:37 UTC (rev =
15171)
+++ stack/cxf/trunk/modules/testsuite/pom.xml 2011-10-28 11:10:44 UTC (rev =
15172)
@@ -1330,9 +1330,6 @@
org/jboss/test/ws/jaxws/jbws1581/**
org/jboss/test/ws/jaxws/cxf/bus/*EJB3*
=
-
- org/jboss/test/ws/jaxws/samples/wsse/policy/jaas=
/UsernameAuthorizationEJBTestCase*
-
org/jboss/test/ws/jaxws/samples/wsse/UsernameAut=
horizationCustomFileTestCase*
=
--===============7642639792268273567==--
From jbossws-commits at lists.jboss.org Fri Oct 28 15:49:55 2011
Content-Type: multipart/mixed; boundary="===============0803258366659602152=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15173 - in
thirdparty/cxf/branches/cxf-2.2.12:
rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws and 1 other directories.
Date: Fri, 28 Oct 2011 15:49:55 -0400
Message-ID: <201110281949.p9SJntBu001429@svn01.web.mwc.hst.phx2.redhat.com>
--===============0803258366659602152==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: klape
Date: 2011-10-28 15:49:55 -0400 (Fri, 28 Oct 2011)
New Revision: 15173
Added:
thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/apac=
he/cxf/systest/handlers/AbstractSpringConfiguredAutoRewriteSoapAddressTest.=
java
thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/apac=
he/cxf/systest/handlers/SpringConfiguredAutoRewriteSoapAddressTest.java
thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/apac=
he/cxf/systest/handlers/SpringConfiguredNoAutoRewriteSoapAddressTest.java
thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/apac=
he/cxf/systest/handlers/beans_autoRewriteSoapAddress.xml
thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/apac=
he/cxf/systest/handlers/beans_no_autoRewriteSoapAddress.xml
Modified:
thirdparty/cxf/branches/cxf-2.2.12/rt/core/src/main/java/org/apache/cxf/=
transport/http/WSDLQueryHandler.java
thirdparty/cxf/branches/cxf-2.2.12/rt/frontend/jaxws/src/main/java/org/a=
pache/cxf/jaxws/EndpointImpl.java
Log:
[JBPAPP-7452] soap:address rewrite from Spring configuration
Modified: thirdparty/cxf/branches/cxf-2.2.12/rt/core/src/main/java/org/apac=
he/cxf/transport/http/WSDLQueryHandler.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- thirdparty/cxf/branches/cxf-2.2.12/rt/core/src/main/java/org/apache/cxf=
/transport/http/WSDLQueryHandler.java 2011-10-28 11:10:44 UTC (rev 15172)
+++ thirdparty/cxf/branches/cxf-2.2.12/rt/core/src/main/java/org/apache/cxf=
/transport/http/WSDLQueryHandler.java 2011-10-28 19:49:55 UTC (rev 15173)
@@ -57,6 +57,7 @@
import org.apache.cxf.helpers.CastUtils;
import org.apache.cxf.helpers.DOMUtils;
import org.apache.cxf.helpers.XMLUtils;
+import org.apache.cxf.message.MessageUtils;
import org.apache.cxf.service.model.EndpointInfo;
import org.apache.cxf.staxutils.StaxUtils;
import org.apache.cxf.transports.http.StemMatchingQueryHandler;
@@ -294,10 +295,10 @@
LOG,
base), e);
}
- =
- Boolean rewriteSoapAddress =3D ei.getProperty("autoRewriteSoapAddr=
ess", Boolean.class);
- =
- if (rewriteSoapAddress !=3D null && rewriteSoapAddress.booleanValu=
e()) {
+
+ Object rewriteSoapAddress =3D ei.getProperty("autoRewriteSoapAddre=
ss");
+
+ if (rewriteSoapAddress !=3D null && MessageUtils.isTrue(rewriteSoa=
pAddress)) {
List serviceList =3D DOMUtils.findAllElementsByTagNam=
eNS(doc.getDocumentElement(),
"http://sche=
mas.xmlsoap.org/wsdl/",
"service");
Modified: thirdparty/cxf/branches/cxf-2.2.12/rt/frontend/jaxws/src/main/jav=
a/org/apache/cxf/jaxws/EndpointImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- thirdparty/cxf/branches/cxf-2.2.12/rt/frontend/jaxws/src/main/java/org/=
apache/cxf/jaxws/EndpointImpl.java 2011-10-28 11:10:44 UTC (rev 15172)
+++ thirdparty/cxf/branches/cxf-2.2.12/rt/frontend/jaxws/src/main/java/org/=
apache/cxf/jaxws/EndpointImpl.java 2011-10-28 19:49:55 UTC (rev 15173)
@@ -27,6 +27,7 @@
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
+import java.util.Map.Entry;
import java.util.concurrent.Executor;
import java.util.logging.Logger;
=
@@ -317,6 +318,14 @@
// TODO is there a good place to put this key-string a=
s a constant?
endpointInfo.setProperty("publishedEndpointUrl", publi=
shedEndpointUrl);
}
+
+ if (null !=3D properties) {
+ for (Entry entry : properties.entrySet=
()) {
+ endpointInfo.setProperty(entry.getKey(), entry.get=
Value());
+ }
+ System.err.println("\n\n");
+ }
+
this.address =3D endpointInfo.getAddress();
}
serv.start();
Added: thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/=
apache/cxf/systest/handlers/AbstractSpringConfiguredAutoRewriteSoapAddressT=
est.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/apa=
che/cxf/systest/handlers/AbstractSpringConfiguredAutoRewriteSoapAddressTest=
.java (rev 0)
+++ thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/apa=
che/cxf/systest/handlers/AbstractSpringConfiguredAutoRewriteSoapAddressTest=
.java 2011-10-28 19:49:55 UTC (rev 15173)
@@ -0,0 +1,64 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.handlers;
+
+import java.net.URL;
+import java.net.URLConnection;
+import java.util.LinkedList;
+import java.util.List;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.apache.cxf.helpers.DOMUtils;
+import org.apache.cxf.test.AbstractCXFSpringTest;
+
+/**
+ *
+ */
+public abstract class AbstractSpringConfiguredAutoRewriteSoapAddressTest e=
xtends AbstractCXFSpringTest {
+
+ private Document retrieveWsdlDocument(String hostname, String port) th=
rows Exception {
+ URL wsdlUrlLocalhost =3D new URL("http://" + hostname + ":" + port=
+ "/SpringEndpoint?wsdl");
+ URLConnection urlConnection =3D wsdlUrlLocalhost.openConnection();
+ return DOMUtils.readXml(urlConnection.getInputStream());
+ }
+
+ protected List findAllServiceUrlsFromWsdl(String hostname, Str=
ing port) throws Exception {
+ Document wsdlDocument =3D retrieveWsdlDocument(hostname, port);
+ List serviceUrls =3D new LinkedList();
+ List serviceList =3D DOMUtils.findAllElementsByTagNameNS(=
wsdlDocument.getDocumentElement(),
+ "http://schemas.=
xmlsoap.org/wsdl/",
+ "service");
+ for (Element serviceEl : serviceList) {
+ List portList =3D DOMUtils.findAllElementsByTagNameNS=
(serviceEl,
+ "http://schemas.=
xmlsoap.org/wsdl/",
+ "port");
+ for (Element portEl : portList) {
+ List addressList =3D DOMUtils.findAllElementsByTa=
gNameNS(portEl,
+ "http://schemas.=
xmlsoap.org/wsdl/soap/",
+ "address");
+ for (Element addressEl : addressList) {
+ serviceUrls.add(addressEl.getAttribute("location"));
+ }
+ }
+ }
+ return serviceUrls;
+ }
+
+}
Added: thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/=
apache/cxf/systest/handlers/SpringConfiguredAutoRewriteSoapAddressTest.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/apa=
che/cxf/systest/handlers/SpringConfiguredAutoRewriteSoapAddressTest.java =
(rev 0)
+++ thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/apa=
che/cxf/systest/handlers/SpringConfiguredAutoRewriteSoapAddressTest.java 20=
11-10-28 19:49:55 UTC (rev 15173)
@@ -0,0 +1,62 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.handlers;
+
+import java.util.List;
+
+import org.apache.cxf.testutil.common.TestUtil;
+import org.apache.handlers.AddNumbers;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class SpringConfiguredAutoRewriteSoapAddressTest
+ extends AbstractSpringConfiguredAutoRewriteSoapAddressTest {
+ static String port =3D TestUtil.getPortNumber("springportAutoRewriteSo=
apAddressTest");
+
+ @Override
+ protected String[] getConfigLocations() {
+ return new String[] {"classpath:/org/apache/cxf/systest/handlers/b=
eans_autoRewriteSoapAddress.xml" };
+ }
+
+ @Test
+ public void testWsdlAddress() throws Exception {
+ System.err.println("portNumber: " + port);
+ System.err.println(getApplicationContext().getBean("cxfHandlerTest=
Endpoint").
+ getClas=
s().toString());
+
+ AddNumbers addNumbers =3D (AddNumbers)getApplicationContext().getB=
ean("cxfHandlerTestClientEndpoint",
+ AddNumb=
ers.class);
+
+ int r =3D addNumbers.addNumbers(10, 15);
+ assertEquals(1015, r);
+
+
+ List serviceUrls =3D findAllServiceUrlsFromWsdl("localhost=
", port);
+ assertEquals(1, serviceUrls.size());
+ assertEquals("http://localhost:" + port + "/SpringEndpoint", servi=
ceUrls.get(0));
+
+ serviceUrls =3D findAllServiceUrlsFromWsdl("127.0.0.1", port);
+ assertEquals(1, serviceUrls.size());
+ assertEquals("http://127.0.0.1:" + port + "/SpringEndpoint", servi=
ceUrls.get(0));
+
+ }
+}
Added: thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/=
apache/cxf/systest/handlers/SpringConfiguredNoAutoRewriteSoapAddressTest.ja=
va
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/apa=
che/cxf/systest/handlers/SpringConfiguredNoAutoRewriteSoapAddressTest.java =
(rev 0)
+++ thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/apa=
che/cxf/systest/handlers/SpringConfiguredNoAutoRewriteSoapAddressTest.java =
2011-10-28 19:49:55 UTC (rev 15173)
@@ -0,0 +1,64 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.handlers;
+
+import java.util.List;
+
+import org.apache.cxf.testutil.common.TestUtil;
+import org.apache.handlers.AddNumbers;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class SpringConfiguredNoAutoRewriteSoapAddressTest
+ extends AbstractSpringConfiguredAutoRewriteSoapAddressTest {
+ static String port =3D TestUtil.getPortNumber("springportNoAutoRewrite=
SoapAddressTest");
+
+ @Override
+ protected String[] getConfigLocations() {
+ return new String[]
+ {"classpath:/org/apache/cxf/systest/handlers/beans_no_autoRewriteS=
oapAddress.xml" };
+ }
+
+ @Test
+ public void testWsdlAddress() throws Exception {
+ System.err.println("portNumber: " + port);
+ System.err.println(getApplicationContext().getBean("cxfHandlerTest=
Endpoint").
+ getClas=
s().toString());
+
+ AddNumbers addNumbers =3D (AddNumbers)getApplicationContext().getB=
ean("cxfHandlerTestClientEndpoint",
+ AddNumb=
ers.class);
+
+ int r =3D addNumbers.addNumbers(10, 15);
+ assertEquals(1015, r);
+
+
+ List serviceUrls =3D findAllServiceUrlsFromWsdl("localhost=
", port);
+ assertEquals(1, serviceUrls.size());
+ assertEquals("http://localhost:" + port + "/SpringEndpoint", servi=
ceUrls.get(0));
+
+ serviceUrls =3D findAllServiceUrlsFromWsdl("127.0.0.1", port);
+ assertEquals(1, serviceUrls.size());
+ assertEquals("http://localhost:" + port + "/SpringEndpoint", servi=
ceUrls.get(0));
+
+ }
+
+}
Added: thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/=
apache/cxf/systest/handlers/beans_autoRewriteSoapAddress.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/apa=
che/cxf/systest/handlers/beans_autoRewriteSoapAddress.xml =
(rev 0)
+++ thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/apa=
che/cxf/systest/handlers/beans_autoRewriteSoapAddress.xml 2011-10-28 19:49:=
55 UTC (rev 15173)
@@ -0,0 +1,77 @@
+ =
+
+ =
+ =
+ =
+ =
+ =
+
+ =
+
+ =
+
+
+
+
+
+
+
+
+
+
+
+
+ =
+
+
+
+
+
+
+
+
+
+ =
+
+ =
+
+
+
+
+ =
+ =
+ =
Added: thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/=
apache/cxf/systest/handlers/beans_no_autoRewriteSoapAddress.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/apa=
che/cxf/systest/handlers/beans_no_autoRewriteSoapAddress.xml =
(rev 0)
+++ thirdparty/cxf/branches/cxf-2.2.12/systests/jaxws/src/test/java/org/apa=
che/cxf/systest/handlers/beans_no_autoRewriteSoapAddress.xml 2011-10-28 19:=
49:55 UTC (rev 15173)
@@ -0,0 +1,74 @@
+ =
+
+ =
+ =
+ =
+ =
+ =
+
+ =
+
+ =
+
+
+
+
+
+
+
+
+
+ =
+
+
+
+
+
+
+
+
+
+ =
+
+ =
+
+
+
+
+ =
+ =
+ =
--===============0803258366659602152==--
From jbossws-commits at lists.jboss.org Mon Oct 31 11:26:09 2011
Content-Type: multipart/mixed; boundary="===============7075100414943636641=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15174 - in
spi/trunk/src/main/java/org/jboss/wsf/spi/metadata: webservices and 1 other
directory.
Date: Mon, 31 Oct 2011 11:26:09 -0400
Message-ID: <201110311526.p9VFQ948003229@svn01.web.mwc.hst.phx2.redhat.com>
--===============7075100414943636641==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-31 11:26:08 -0400 (Mon, 31 Oct 2011)
New Revision: 15174
Added:
spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/JBossWebs=
ervicesDescriptorParser.java
spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/JBossWebs=
ervicesFactory.java
spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/JBossWebs=
ervicesMetaData.java
Modified:
spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/ParserConstants.java
spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/PortCompo=
nentMetaData.java
spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/Webservic=
eDescriptionMetaData.java
spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/Webservic=
esFactory.java
Log:
[JBWS-3376] implemented jboss-webservices.xml parser
Modified: spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/ParserConstant=
s.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/ParserConstants.java=
2011-10-28 19:49:55 UTC (rev 15173)
+++ spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/ParserConstants.java=
2011-10-31 15:26:08 UTC (rev 15174)
@@ -30,10 +30,15 @@
*/
public abstract class ParserConstants
{
+ =
public static final String JAVAEE_NS =3D "http://java.sun.com/xml/ns/ja=
vaee";
=
+ public static final String JBOSSEE_NS =3D "http://www.jboss.com/xml/ns/=
javaee";
+ =
public static final String J2EE_NS =3D "http://java.sun.com/xml/ns/j2ee=
";
=
+ public static final String AUTH_METHOD =3D "auth-method";
+
public static final String CHAIN_PORT_PATTERN =3D "port-name-pattern";
=
public static final String CHAIN_PROTOCOL_BINDING =3D "protocol-binding=
s";
@@ -70,10 +75,14 @@
=
public static final String WSDL_FILE =3D "wsdl-file";
=
+ public static final String WSDL_PUBLISH_LOCATION =3D "wsdl-publish-loca=
tion";
+
public static final String PORT_COMPONENT =3D "port-component";
=
public static final String PORT_COMPONENT_NAME =3D "port-component-name=
";
=
+ public static final String PORT_COMPONENT_URI =3D "port-component-uri";
+
public static final String WSDL_SERVICE =3D "wsdl-service";
=
public static final String WSDL_PORT =3D "wsdl-port";
@@ -112,19 +121,28 @@
=
public static final String CONFIG_NAME =3D "config-name";
=
+ public static final String CONFIG_FILE =3D "config-file";
+ =
+ public static final String CONTEXT_ROOT =3D "context-root";
+ =
public static final String PRE_HANDLER_CHAINS =3D "pre-handler-chains";
=
public static final String POST_HANDLER_CHAINS =3D "post-handler-chains=
";
=
public static final String FEATURE =3D "feature";
=
+ public static final String FEATURE_DATA =3D "feature-data";
+
+ public static final String FEATURE_NAME =3D "feature-name";
+ =
public static final String PROPERTY =3D "property";
=
public static final String PROPERTY_NAME =3D "property-name";
=
public static final String PROPERTY_VALUE =3D "property-value";
+ =
+ public static final String SECURE_WSDL_ACCESS =3D "secure-wsdl-access";
=
- public static final String FEATURE_NAME =3D "feature-name";
+ public static final String TRANSPORT_GUARANTEE =3D "transport-guarantee=
";
=
- public static final String FEATURE_DATA =3D "feature-data";
}
Added: spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/JBoss=
WebservicesDescriptorParser.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/JBossWeb=
servicesDescriptorParser.java (rev 0)
+++ spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/JBossWeb=
servicesDescriptorParser.java 2011-10-31 15:26:08 UTC (rev 15174)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.wsf.spi.metadata.webservices;
+
+import org.jboss.wsf.spi.metadata.DescriptorParser;
+
+/**
+ * Parser for WS UMDM.
+ * =
+ * @author Richard Opalka
+ */
+public interface JBossWebservicesDescriptorParser extends DescriptorParser=
+{
+}
Added: spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/JBoss=
WebservicesFactory.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/JBossWeb=
servicesFactory.java (rev 0)
+++ spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/JBossWeb=
servicesFactory.java 2011-10-31 15:26:08 UTC (rev 15174)
@@ -0,0 +1,228 @@
+/*
+ * 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.wsf.spi.metadata.webservices;
+
+import static javax.xml.stream.XMLStreamConstants.END_ELEMENT;
+import static javax.xml.stream.XMLStreamConstants.START_ELEMENT;
+import static org.jboss.wsf.spi.metadata.ParserConstants.CONFIG_FILE;
+import static org.jboss.wsf.spi.metadata.ParserConstants.CONFIG_NAME;
+import static org.jboss.wsf.spi.metadata.ParserConstants.CONTEXT_ROOT;
+import static org.jboss.wsf.spi.metadata.ParserConstants.JBOSSEE_NS;
+import static org.jboss.wsf.spi.metadata.ParserConstants.WEBSERVICES;
+import static org.jboss.wsf.spi.metadata.ParserConstants.WEBSERVICE_DESCRI=
PTION;
+import static org.jboss.wsf.spi.util.StAXUtils.elementAsString;
+import static org.jboss.wsf.spi.util.StAXUtils.match;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.URL;
+import java.util.ResourceBundle;
+
+import javax.xml.stream.XMLStreamConstants;
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamReader;
+import javax.xml.ws.WebServiceException;
+
+import org.jboss.ws.api.util.BundleUtils;
+import org.jboss.wsf.spi.deployment.UnifiedVirtualFile;
+import org.jboss.wsf.spi.util.StAXUtils;
+
+/**
+ * A JBossXB factory for {@link JBossWebservicesMetaData}
+ *
+ * @author Richard Opalka
+ */
+public class JBossWebservicesFactory extends WebservicesFactory
+{
+ private static final ResourceBundle bundle =3D BundleUtils.getBundle(JB=
ossWebservicesFactory.class);
+ =
+ public JBossWebservicesFactory(URL descriptorURL)
+ {
+ super(descriptorURL);
+ }
+
+ /**
+ * Load jboss-webservices.xml from META-INF/jboss-webservices.xml=
+ * or WEB-INF/jboss-webservices.xml
.
+ *
+ * @param root virtual file root
+ * @return JBossWebservicesMetaData or null
if it cannot b=
e found
+ */
+ public static WebservicesMetaData loadFromVFSRoot(UnifiedVirtualFile ro=
ot)
+ {
+ WebservicesMetaData webservices =3D null;
+
+ UnifiedVirtualFile wsdd =3D null;
+ try
+ {
+ wsdd =3D root.findChild("META-INF/jboss-webservices.xml");
+ }
+ catch (IOException e)
+ {
+ //
+ }
+
+ // Maybe a web application deployment?
+ if (null =3D=3D wsdd)
+ {
+ try
+ {
+ wsdd =3D root.findChild("WEB-INF/jboss-webservices.xml");
+ }
+ catch (IOException e)
+ {
+ //
+ }
+ }
+
+ // the descriptor is optional
+ if (wsdd !=3D null)
+ {
+ return load(wsdd.toURL());
+ }
+
+ return webservices;
+ }
+ =
+ public static JBossWebservicesMetaData load(URL wsddUrl)
+ {
+ InputStream is =3D null;
+ try
+ {
+ is =3D wsddUrl.openStream();
+ XMLStreamReader xmlr =3D StAXUtils.createXMLStreamReader(is);
+ return parse(xmlr, wsddUrl);
+ }
+ catch (Exception e)
+ {
+ throw new WebServiceException(BundleUtils.getMessage(bundle, "FAI=
LED_TO_UNMARSHALL", wsddUrl), e);
+ }
+ finally
+ {
+ try
+ {
+ if (is !=3D null) is.close();
+ }
+ catch (IOException e) {} //ignore
+ }
+ }
+ =
+ public static JBossWebservicesMetaData parse(InputStream is)
+ {
+ return parse(is, null);
+ }
+ =
+ public static JBossWebservicesMetaData parse(InputStream is, URL descri=
ptorURL)
+ {
+ try
+ {
+ XMLStreamReader xmlr =3D StAXUtils.createXMLStreamReader(is);
+ return parse(xmlr, descriptorURL);
+ }
+ catch (Exception e)
+ {
+ throw new WebServiceException(e);
+ }
+ }
+ =
+ public static JBossWebservicesMetaData parse(XMLStreamReader reader) th=
rows XMLStreamException
+ {
+ return parse(reader, null);
+ }
+ =
+ private static JBossWebservicesMetaData parse(XMLStreamReader reader, U=
RL descriptorURL) throws XMLStreamException
+ {
+ int iterate;
+ try
+ {
+ iterate =3D reader.nextTag();
+ }
+ catch (XMLStreamException e)
+ {
+ // skip non-tag elements
+ iterate =3D reader.nextTag();
+ }
+ JBossWebservicesMetaData metadata =3D null;
+ switch (iterate)
+ {
+ case END_ELEMENT : {
+ // we're done
+ break;
+ }
+ case START_ELEMENT : {
+
+ if (match(reader, JBOSSEE_NS, WEBSERVICES))
+ {
+ String nsUri =3D reader.getNamespaceURI();
+ JBossWebservicesFactory factory =3D new JBossWebservicesFac=
tory(descriptorURL);
+ metadata =3D factory.parseWebservices(reader, nsUri, descri=
ptorURL);
+ }
+ else
+ {
+ throw new IllegalStateException(BundleUtils.getMessage(bund=
le, "UNEXPECTED_ELEMENT", reader.getLocalName()));
+ }
+ }
+ }
+ return metadata;
+ }
+ =
+ private JBossWebservicesMetaData parseWebservices(XMLStreamReader reade=
r, String nsUri, URL descriptorURL) throws XMLStreamException
+ {
+ JBossWebservicesMetaData metadata =3D new JBossWebservicesMetaData(d=
escriptorURL);
+ while (reader.hasNext())
+ {
+ switch (reader.nextTag())
+ {
+ case XMLStreamConstants.END_ELEMENT : {
+ if (match(reader, nsUri, WEBSERVICES))
+ {
+ return metadata;
+ }
+ else
+ {
+ throw new IllegalStateException(BundleUtils.getMessage(b=
undle, "UNEXPECTED_END_TAG", reader.getLocalName()));
+ }
+ }
+ case XMLStreamConstants.START_ELEMENT : {
+ if (match(reader, nsUri, CONTEXT_ROOT)) {
+ metadata.setContextRoot(elementAsString(reader));
+ }
+ else if (match(reader, nsUri, CONFIG_NAME)) {
+ metadata.setConfigName(elementAsString(reader));
+ }
+ else if (match(reader, nsUri, CONFIG_FILE)) {
+ metadata.setConfigFile(elementAsString(reader));
+ }
+ else if (match(reader, nsUri, WEBSERVICE_DESCRIPTION)) {
+ metadata.addWebserviceDescription(super.parseWebserviceD=
escription(reader, nsUri, metadata));
+ }
+ else
+ {
+ throw new IllegalStateException(BundleUtils.getMessage(b=
undle, "UNEXPECTED_ELEMENT", reader.getLocalName()));
+ }
+ }
+ }
+ }
+ throw new IllegalStateException(BundleUtils.getMessage(bundle, "REAC=
HED_END_OF_XML_DOCUMENT_UNEXPECTEDLY"));
+ }
+ =
+}
Added: spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/JBoss=
WebservicesMetaData.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/JBossWeb=
servicesMetaData.java (rev 0)
+++ spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/JBossWeb=
servicesMetaData.java 2011-10-31 15:26:08 UTC (rev 15174)
@@ -0,0 +1,81 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2011, Red Hat, Inc., 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.wsf.spi.metadata.webservices;
+
+import java.net.URL;
+
+/**
+ * XML Binding root element for jboss-webservices.xml
+ *
+ * @author Richard Opalka
+ */
+public class JBossWebservicesMetaData extends WebservicesMetaData
+{
+
+ private String contextRoot;
+
+ private String configName;
+
+ private String configFile;
+
+ public JBossWebservicesMetaData()
+ {
+ super();
+ }
+
+ public JBossWebservicesMetaData(final URL descriptorURL)
+ {
+ super(descriptorURL);
+ }
+
+ public String getContextRoot()
+ {
+ return contextRoot;
+ }
+
+ public void setContextRoot(String contextRoot)
+ {
+ this.contextRoot =3D contextRoot;
+ }
+
+ public String getConfigName()
+ {
+ return configName;
+ }
+
+ public void setConfigName(String configName)
+ {
+ this.configName =3D configName;
+ }
+
+ public String getConfigFile()
+ {
+ return configFile;
+ }
+
+ public void setConfigFile(String configFile)
+ {
+ this.configFile =3D configFile;
+ }
+
+}
Modified: spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/Po=
rtComponentMetaData.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/PortComp=
onentMetaData.java 2011-10-28 19:49:55 UTC (rev 15173)
+++ spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/PortComp=
onentMetaData.java 2011-10-31 15:26:08 UTC (rev 15174)
@@ -62,6 +62,12 @@
* This name must be unique amongst all port component names in a modul=
e.
*/
private String portComponentName;
+ // The optional
+ private String portComponentURI;
+ // The optional
+ private String authMethod;
+ // The optional
+ private String transportGuarantee;
// The required element
private QName wsdlPort;
// The required element
@@ -117,6 +123,36 @@
this.portComponentName =3D portComponentName;
}
=
+ public String getPortComponentURI()
+ {
+ return portComponentURI;
+ }
+
+ public void setPortComponentURI(String portComponentURI)
+ {
+ this.portComponentURI =3D portComponentURI;
+ }
+
+ public String getAuthMethod()
+ {
+ return authMethod;
+ }
+
+ public void setAuthMethod(String authMethod)
+ {
+ this.authMethod =3D authMethod;
+ }
+
+ public String getTransportGuarantee()
+ {
+ return transportGuarantee;
+ }
+
+ public void setTransportGuarantee(String transportGuarantee)
+ {
+ this.transportGuarantee =3D transportGuarantee;
+ }
+
public QName getWsdlPort()
{
return wsdlPort;
Modified: spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/We=
bserviceDescriptionMetaData.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/Webservi=
ceDescriptionMetaData.java 2011-10-28 19:49:55 UTC (rev 15173)
+++ spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/Webservi=
ceDescriptionMetaData.java 2011-10-31 15:26:08 UTC (rev 15174)
@@ -55,7 +55,19 @@
private String jaxrpcMappingFile;
// The required elements
private ArrayList portComponents =3D new ArrayLi=
st();
+ // The optional element
+ private String wsdlPublishLocation;
=
+ public String getWsdlPublishLocation()
+ {
+ return wsdlPublishLocation;
+ }
+
+ public void setWsdlPublishLocation(String wsdlPublishLocation)
+ {
+ this.wsdlPublishLocation =3D wsdlPublishLocation;
+ }
+
public WebserviceDescriptionMetaData(WebservicesMetaData webservices)
{
this.webservices =3D webservices;
@@ -120,6 +132,16 @@
return null;
}
=
+ public PortComponentMetaData getPortComponentByEjbLinkName(String ejbNa=
me)
+ {
+ for (PortComponentMetaData pc : portComponents)
+ {
+ if (ejbName.equals(pc.getEjbLink())) return pc;
+ }
+
+ return null;
+ }
+
public String getWebserviceDescriptionName()
{
return webserviceDescriptionName;
Modified: spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/We=
bservicesFactory.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/Webservi=
cesFactory.java 2011-10-28 19:49:55 UTC (rev 15173)
+++ spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/Webservi=
cesFactory.java 2011-10-31 15:26:08 UTC (rev 15174)
@@ -25,6 +25,7 @@
import static javax.xml.stream.XMLStreamConstants.START_ELEMENT;
import static org.jboss.wsf.spi.metadata.ParserConstants.ADDRESSING;
import static org.jboss.wsf.spi.metadata.ParserConstants.ADDRESSING_RESPON=
SES;
+import static org.jboss.wsf.spi.metadata.ParserConstants.AUTH_METHOD;
import static org.jboss.wsf.spi.metadata.ParserConstants.EJB_LINK;
import static org.jboss.wsf.spi.metadata.ParserConstants.ENABLED;
import static org.jboss.wsf.spi.metadata.ParserConstants.ENABLE_MTOM;
@@ -36,16 +37,20 @@
import static org.jboss.wsf.spi.metadata.ParserConstants.MTOM_THRESHOLD;
import static org.jboss.wsf.spi.metadata.ParserConstants.PORT_COMPONENT;
import static org.jboss.wsf.spi.metadata.ParserConstants.PORT_COMPONENT_NA=
ME;
+import static org.jboss.wsf.spi.metadata.ParserConstants.PORT_COMPONENT_UR=
I;
import static org.jboss.wsf.spi.metadata.ParserConstants.PROTOCOL_BINDING;
import static org.jboss.wsf.spi.metadata.ParserConstants.REQUIRED;
import static org.jboss.wsf.spi.metadata.ParserConstants.RESPECT_BINDING;
+import static org.jboss.wsf.spi.metadata.ParserConstants.SECURE_WSDL_ACCES=
S;
import static org.jboss.wsf.spi.metadata.ParserConstants.SERVICE_ENDPOINT_=
INTERFACE;
import static org.jboss.wsf.spi.metadata.ParserConstants.SERVICE_IMPL_BEAN;
import static org.jboss.wsf.spi.metadata.ParserConstants.SERVLET_LINK;
+import static org.jboss.wsf.spi.metadata.ParserConstants.TRANSPORT_GUARANT=
EE;
import static org.jboss.wsf.spi.metadata.ParserConstants.WEBSERVICES;
import static org.jboss.wsf.spi.metadata.ParserConstants.WEBSERVICE_DESCRI=
PTION;
import static org.jboss.wsf.spi.metadata.ParserConstants.WEBSERVICE_DESCRI=
PTION_NAME;
import static org.jboss.wsf.spi.metadata.ParserConstants.WSDL_FILE;
+import static org.jboss.wsf.spi.metadata.ParserConstants.WSDL_PUBLISH_LOCA=
TION;
import static org.jboss.wsf.spi.metadata.ParserConstants.WSDL_PORT;
import static org.jboss.wsf.spi.metadata.ParserConstants.WSDL_SERVICE;
import static org.jboss.wsf.spi.util.StAXUtils.elementAsBoolean;
@@ -242,7 +247,7 @@
throw new IllegalStateException(BundleUtils.getMessage(bundle, "REAC=
HED_END_OF_XML_DOCUMENT_UNEXPECTEDLY"));
}
=
- private WebserviceDescriptionMetaData parseWebserviceDescription(XMLStr=
eamReader reader, String nsUri, WebservicesMetaData wsMetaData) throws XMLS=
treamException
+ WebserviceDescriptionMetaData parseWebserviceDescription(XMLStreamReade=
r reader, String nsUri, WebservicesMetaData wsMetaData) throws XMLStreamExc=
eption
{
WebserviceDescriptionMetaData description =3D new WebserviceDescript=
ionMetaData(wsMetaData);
while (reader.hasNext())
@@ -266,9 +271,12 @@
else if (match(reader, nsUri, WSDL_FILE)) {
description.setWsdlFile(elementAsString(reader));
}
+ else if (match(reader, nsUri, WSDL_PUBLISH_LOCATION)) {
+ description.setWsdlPublishLocation(elementAsString(reade=
r));
+ }
else if (match(reader, nsUri, JAXRPC_MAPPING_FILE)) {
- description.setJaxrpcMappingFile(elementAsString(reader)=
);
- }
+ description.setJaxrpcMappingFile(elementAsString(reader=
));
+ }
else if (match(reader, nsUri, PORT_COMPONENT)) {
description.addPortComponent(parsePortComponent(reader, =
nsUri, description));
}
@@ -303,12 +311,24 @@
if (match(reader, nsUri, PORT_COMPONENT_NAME)) {
pc.setPortComponentName(elementAsString(reader));
}
+ else if (match(reader, nsUri, PORT_COMPONENT_URI)) {
+ pc.setPortComponentURI(elementAsString(reader));
+ }
+ else if (match(reader, nsUri, AUTH_METHOD)) {
+ pc.setAuthMethod(elementAsString(reader));
+ }
+ else if (match(reader, nsUri, TRANSPORT_GUARANTEE)) {
+ pc.setTransportGuarantee(elementAsString(reader));
+ }
else if (match(reader, nsUri, WSDL_SERVICE)) {
pc.setWsdlService(elementAsQName(reader));
}
else if (match(reader, nsUri, WSDL_PORT)) {
pc.setWsdlPort(elementAsQName(reader));
}
+ else if (match(reader, nsUri, SECURE_WSDL_ACCESS)) {
+ pc.setSecureWSDLAccess(elementAsBoolean(reader));
+ }
else if (match(reader, nsUri, ENABLE_MTOM)) {
pc.setMtomEnabled(elementAsBoolean(reader));
}
--===============7075100414943636641==--
From jbossws-commits at lists.jboss.org Mon Oct 31 11:26:50 2011
Content-Type: multipart/mixed; boundary="===============6817585251919857801=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15175 -
common/trunk/src/main/java/org/jboss/ws/common/deployment.
Date: Mon, 31 Oct 2011 11:26:50 -0400
Message-ID: <201110311526.p9VFQoAc003240@svn01.web.mwc.hst.phx2.redhat.com>
--===============6817585251919857801==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-31 11:26:50 -0400 (Mon, 31 Oct 2011)
New Revision: 15175
Added:
common/trunk/src/main/java/org/jboss/ws/common/deployment/JBossWebservic=
esDescriptorParserImpl.java
Log:
[JBWS-3376] implemented jboss-webservices.xml parser
Added: common/trunk/src/main/java/org/jboss/ws/common/deployment/JBossWebse=
rvicesDescriptorParserImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- common/trunk/src/main/java/org/jboss/ws/common/deployment/JBossWebservi=
cesDescriptorParserImpl.java (rev 0)
+++ common/trunk/src/main/java/org/jboss/ws/common/deployment/JBossWebservi=
cesDescriptorParserImpl.java 2011-10-31 15:26:50 UTC (rev 15175)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.ws.common.deployment;
+
+import java.net.URL;
+
+import org.jboss.wsf.spi.metadata.webservices.JBossWebservicesDescriptorPa=
rser;
+import org.jboss.wsf.spi.metadata.webservices.JBossWebservicesFactory;
+import org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData;
+
+/**
+ * JBoss Webservices descriptor parser implementation.
+ * =
+ * @author Richard Opalka
+ */
+public final class JBossWebservicesDescriptorParserImpl implements JBossWe=
bservicesDescriptorParser
+{
+ private String descriptorName;
+ =
+ @Override
+ public String getDescriptorName()
+ {
+ return this.descriptorName;
+ }
+
+ /**
+ * Invoked via MC.
+ * @param descriptorName
+ */
+ public void setDescriptorName(final String descriptorName)
+ {
+ this.descriptorName =3D descriptorName;
+ }
+
+ @Override
+ public JBossWebservicesMetaData parse(URL url)
+ {
+ return JBossWebservicesFactory.load(url);
+ }
+
+}
--===============6817585251919857801==--
From jbossws-commits at lists.jboss.org Mon Oct 31 11:27:34 2011
Content-Type: multipart/mixed; boundary="===============2866364841493495493=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r15176 - in
container/jboss60/branches/jbossws-jboss610/src/main:
java/org/jboss/webservices/integration/deployers/deployment and 2 other
directories.
Date: Mon, 31 Oct 2011 11:27:33 -0400
Message-ID: <201110311527.p9VFRXdW003270@svn01.web.mwc.hst.phx2.redhat.com>
--===============2866364841493495493==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: richard.opalka(a)jboss.com
Date: 2011-10-31 11:27:32 -0400 (Mon, 31 Oct 2011)
New Revision: 15176
Added:
container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/webs=
ervices/integration/deployers/JBossWebservicesDescriptorDeployer.java
container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/webs=
ervices/integration/deployers/WebservicesDescriptorDeployer.java
Removed:
container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/webs=
ervices/integration/deployers/WSDescriptorDeployer.java
Modified:
container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/webs=
ervices/integration/deployers/WSDeploymentDeployer.java
container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/webs=
ervices/integration/deployers/deployment/DeploymentModelBuilderJAXRPC_EJB21=
.java
container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/webs=
ervices/integration/deployers/deployment/DeploymentModelBuilderJAXRPC_JSE.j=
ava
container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/webs=
ervices/integration/deployers/deployment/DeploymentModelBuilderJAXWS_EJB3.j=
ava
container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/webs=
ervices/integration/deployers/deployment/DeploymentModelBuilderJAXWS_JSE.ja=
va
container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/webs=
ervices/integration/metadata/AbstractMetaDataBuilderEJB.java
container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/webs=
ervices/integration/metadata/MetaDataBuilderEJB21.java
container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/webs=
ervices/integration/metadata/MetaDataBuilderEJB3.java
container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/webs=
ervices/integration/metadata/MetaDataBuilderJSE.java
container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/webs=
ervices/integration/metadata/PublishLocationAdapterImpl.java
container/jboss60/branches/jbossws-jboss610/src/main/resources/jbossws-j=
boss.deployer/META-INF/stack-agnostic-jboss-beans.xml
Log:
[JBWS-3376] implemented jboss-webservices.xml parser and updated ASIL proce=
ssing accordingly
Added: container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/=
webservices/integration/deployers/JBossWebservicesDescriptorDeployer.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/deployers/JBossWebservicesDescriptorDeployer.java =
(rev 0)
+++ container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/deployers/JBossWebservicesDescriptorDeployer.java 2011=
-10-31 15:27:32 UTC (rev 15176)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, 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.webservices.integration.deployers;
+
+import org.jboss.wsf.spi.metadata.webservices.JBossWebservicesDescriptorPa=
rser;
+import org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData;
+
+/**
+ * jboss-webservices.xml deployer.
+ *
+ * @author Richard Opalka
+ */
+public final class JBossWebservicesDescriptorDeployer extends AbstractDesc=
riptorDeployer
+{
+
+ /**
+ * Constructor.
+ */
+ public JBossWebservicesDescriptorDeployer()
+ {
+ super(JBossWebservicesMetaData.class);
+ }
+
+ /**
+ * MC incallback method. It will be invoked each time WebservicesDescri=
ptorParser bean will be installed.
+ * @param parser the parser
+ */
+ @Override
+ public void setParser(final JBossWebservicesDescriptorParser parser)
+ {
+ super.setParser(parser);
+ }
+
+}
Modified: container/jboss60/branches/jbossws-jboss610/src/main/java/org/jbo=
ss/webservices/integration/deployers/WSDeploymentDeployer.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/deployers/WSDeploymentDeployer.java 2011-10-31 15:26:5=
0 UTC (rev 15175)
+++ container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/deployers/WSDeploymentDeployer.java 2011-10-31 15:27:3=
2 UTC (rev 15176)
@@ -28,6 +28,7 @@
import org.jboss.webservices.integration.WebServiceDeployment;
import org.jboss.webservices.integration.deployers.deployment.WSDeployment=
Builder;
import org.jboss.wsf.spi.deployment.Deployment;
+import org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData;
import org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData;
=
/**
@@ -47,6 +48,7 @@
// inputs
this.addInput(JBossWebMetaData.class);
this.addInput(WebservicesMetaData.class);
+ this.addInput(JBossWebservicesMetaData.class);
this.addInput(WebServiceDeployment.class);
=
// outputs
Deleted: container/jboss60/branches/jbossws-jboss610/src/main/java/org/jbos=
s/webservices/integration/deployers/WSDescriptorDeployer.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/deployers/WSDescriptorDeployer.java 2011-10-31 15:26:5=
0 UTC (rev 15175)
+++ container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/deployers/WSDescriptorDeployer.java 2011-10-31 15:27:3=
2 UTC (rev 15176)
@@ -1,53 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, 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.webservices.integration.deployers;
-
-import org.jboss.wsf.spi.metadata.webservices.WebservicesDescriptorParser;
-import org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData;
-
-/**
- * webservices.xml deployer.
- *
- * @author Richard Opalka
- */
-public final class WSDescriptorDeployer extends AbstractDescriptorDeployer=
-{
-
- /**
- * Constructor.
- */
- public WSDescriptorDeployer()
- {
- super(WebservicesMetaData.class);
- }
-
- /**
- * MC incallback method. It will be invoked each time WebservicesDescri=
ptorParser bean will be installed.
- * @param parser the parser
- */
- @Override
- public void setParser(final WebservicesDescriptorParser parser)
- {
- super.setParser(parser);
- }
-
-}
Added: container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/=
webservices/integration/deployers/WebservicesDescriptorDeployer.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/deployers/WebservicesDescriptorDeployer.java =
(rev 0)
+++ container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/deployers/WebservicesDescriptorDeployer.java 2011-10-3=
1 15:27:32 UTC (rev 15176)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, 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.webservices.integration.deployers;
+
+import org.jboss.wsf.spi.metadata.webservices.WebservicesDescriptorParser;
+import org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData;
+
+/**
+ * webservices.xml deployer.
+ *
+ * @author Richard Opalka
+ */
+public final class WebservicesDescriptorDeployer extends AbstractDescripto=
rDeployer
+{
+
+ /**
+ * Constructor.
+ */
+ public WebservicesDescriptorDeployer()
+ {
+ super(WebservicesMetaData.class);
+ }
+
+ /**
+ * MC incallback method. It will be invoked each time WebservicesDescri=
ptorParser bean will be installed.
+ * @param parser the parser
+ */
+ @Override
+ public void setParser(final WebservicesDescriptorParser parser)
+ {
+ super.setParser(parser);
+ }
+
+}
Modified: container/jboss60/branches/jbossws-jboss610/src/main/java/org/jbo=
ss/webservices/integration/deployers/deployment/DeploymentModelBuilderJAXRP=
C_EJB21.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/deployers/deployment/DeploymentModelBuilderJAXRPC_EJB2=
1.java 2011-10-31 15:26:50 UTC (rev 15175)
+++ container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/deployers/deployment/DeploymentModelBuilderJAXRPC_EJB2=
1.java 2011-10-31 15:27:32 UTC (rev 15176)
@@ -29,6 +29,7 @@
import org.jboss.metadata.ejb.jboss.JBossMetaData;
import org.jboss.wsf.spi.deployment.Deployment;
import org.jboss.webservices.integration.WebServiceDeployment;
+import org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData;
import org.jboss.wsf.spi.metadata.webservices.PortComponentMetaData;
import org.jboss.wsf.spi.metadata.webservices.WebserviceDescriptionMetaDat=
a;
import org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData;
@@ -60,6 +61,10 @@
final JBossMetaData jbmd =3D this.getAndPropagateAttachment(JBossMet=
aData.class, unit, dep);
final WebservicesMetaData wsMetaData =3D this.getAndPropagateAttachm=
ent(WebservicesMetaData.class, unit, dep);
this.getAndPropagateAttachment(WebServiceDeployment.class, unit, dep=
);
+ if (unit.isAttachmentPresent(JBossWebservicesMetaData.class))
+ {
+ this.getAndPropagateAttachment(JBossWebservicesMetaData.class, un=
it, dep);
+ }
=
this.log.debug("Creating JAXRPC EJB21 endpoints meta data model");
for (final WebserviceDescriptionMetaData webserviceDescriptionMD : w=
sMetaData.getWebserviceDescriptions())
Modified: container/jboss60/branches/jbossws-jboss610/src/main/java/org/jbo=
ss/webservices/integration/deployers/deployment/DeploymentModelBuilderJAXRP=
C_JSE.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/deployers/deployment/DeploymentModelBuilderJAXRPC_JSE.=
java 2011-10-31 15:26:50 UTC (rev 15175)
+++ container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/deployers/deployment/DeploymentModelBuilderJAXRPC_JSE.=
java 2011-10-31 15:27:32 UTC (rev 15176)
@@ -29,6 +29,7 @@
import org.jboss.metadata.web.spec.ServletMetaData;
import org.jboss.webservices.integration.util.ASHelper;
import org.jboss.wsf.spi.deployment.Deployment;
+import org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData;
import org.jboss.wsf.spi.metadata.webservices.PortComponentMetaData;
import org.jboss.wsf.spi.metadata.webservices.WebserviceDescriptionMetaDat=
a;
import org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData;
@@ -59,6 +60,10 @@
{
final JBossWebMetaData webMetaData =3D this.getAndPropagateAttachmen=
t(JBossWebMetaData.class, unit, dep);
final WebservicesMetaData wsMetaData =3D this.getAndPropagateAttachm=
ent(WebservicesMetaData.class, unit, dep);
+ if (unit.isAttachmentPresent(JBossWebservicesMetaData.class))
+ {
+ this.getAndPropagateAttachment(JBossWebservicesMetaData.class, un=
it, dep);
+ }
=
this.log.debug("Creating JAXRPC JSE endpoints meta data model");
for (WebserviceDescriptionMetaData wsd : wsMetaData.getWebserviceDes=
criptions())
Modified: container/jboss60/branches/jbossws-jboss610/src/main/java/org/jbo=
ss/webservices/integration/deployers/deployment/DeploymentModelBuilderJAXWS=
_EJB3.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/deployers/deployment/DeploymentModelBuilderJAXWS_EJB3.=
java 2011-10-31 15:26:50 UTC (rev 15175)
+++ container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/deployers/deployment/DeploymentModelBuilderJAXWS_EJB3.=
java 2011-10-31 15:27:32 UTC (rev 15176)
@@ -29,6 +29,7 @@
import org.jboss.webservices.integration.util.ASHelper;
import org.jboss.wsf.spi.deployment.Deployment;
import org.jboss.wsf.spi.deployment.Endpoint;
+import org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData;
import org.jboss.webservices.integration.WebServiceDeclaration;
import org.jboss.webservices.integration.WebServiceDeployment;
=
@@ -58,6 +59,10 @@
{
this.getAndPropagateAttachment(WebServiceDeployment.class, unit, dep=
);
this.getAndPropagateAttachment(JBossMetaData.class, unit, dep);
+ if (unit.isAttachmentPresent(JBossWebservicesMetaData.class))
+ {
+ this.getAndPropagateAttachment(JBossWebservicesMetaData.class, un=
it, dep);
+ }
=
this.log.debug("Creating JAXWS EJB3 endpoints meta data model");
for (final WebServiceDeclaration container : ASHelper.getJaxwsEjbs(u=
nit))
Modified: container/jboss60/branches/jbossws-jboss610/src/main/java/org/jbo=
ss/webservices/integration/deployers/deployment/DeploymentModelBuilderJAXWS=
_JSE.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/deployers/deployment/DeploymentModelBuilderJAXWS_JSE.j=
ava 2011-10-31 15:26:50 UTC (rev 15175)
+++ container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/deployers/deployment/DeploymentModelBuilderJAXWS_JSE.j=
ava 2011-10-31 15:27:32 UTC (rev 15176)
@@ -31,6 +31,7 @@
import org.jboss.metadata.web.spec.ServletMetaData;
import org.jboss.webservices.integration.util.ASHelper;
import org.jboss.wsf.spi.deployment.Deployment;
+import org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData;
=
/**
* Creates new JAXWS JSE deployment.
@@ -57,6 +58,10 @@
protected void build(final Deployment dep, final DeploymentUnit unit)
{
this.getAndPropagateAttachment(JBossWebMetaData.class, unit, dep);
+ if (unit.isAttachmentPresent(JBossWebservicesMetaData.class))
+ {
+ this.getAndPropagateAttachment(JBossWebservicesMetaData.class, un=
it, dep);
+ }
=
this.log.debug("Creating JAXWS JSE endpoints meta data model");
final List servlets =3D ASHelper.getJaxwsServlets(u=
nit);
Modified: container/jboss60/branches/jbossws-jboss610/src/main/java/org/jbo=
ss/webservices/integration/metadata/AbstractMetaDataBuilderEJB.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/metadata/AbstractMetaDataBuilderEJB.java 2011-10-31 15=
:26:50 UTC (rev 15175)
+++ container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/metadata/AbstractMetaDataBuilderEJB.java 2011-10-31 15=
:27:32 UTC (rev 15176)
@@ -21,19 +21,14 @@
*/
package org.jboss.webservices.integration.metadata;
=
-import java.util.Iterator;
-
import org.jboss.logging.Logger;
-import org.jboss.metadata.common.jboss.WebserviceDescriptionMetaData;
-import org.jboss.metadata.common.jboss.WebserviceDescriptionsMetaData;
-import org.jboss.metadata.ejb.jboss.JBossMetaData;
-import org.jboss.metadata.ejb.jboss.WebservicesMetaData;
-import org.jboss.webservices.integration.util.ASHelper;
import org.jboss.ws.common.integration.WSHelper;
import org.jboss.wsf.spi.deployment.Deployment;
import org.jboss.wsf.spi.metadata.j2ee.EJBArchiveMetaData;
-import org.jboss.wsf.spi.metadata.j2ee.EJBMetaData;
import org.jboss.wsf.spi.metadata.j2ee.PublishLocationAdapter;
+import org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData;
+import org.jboss.wsf.spi.metadata.webservices.PortComponentMetaData;
+import org.jboss.wsf.spi.metadata.webservices.WebserviceDescriptionMetaDat=
a;
=
/**
* Common class for EJB meta data builders.
@@ -86,67 +81,41 @@
*/
private void buildWebservicesMetaData(final Deployment dep, final EJBAr=
chiveMetaData ejbArchiveMD)
{
- final JBossMetaData jbossMD =3D WSHelper.getRequiredAttachment(dep, =
JBossMetaData.class);
- final WebservicesMetaData webservicesMD =3D jbossMD.getWebservices();
+ final JBossWebservicesMetaData webservicesMD =3D WSHelper.getOptiona=
lAttachment(dep, JBossWebservicesMetaData.class);
=
- if (webservicesMD =3D=3D null)
- {
- return;
- }
+ if (webservicesMD =3D=3D null) return;
=
// set context root
- String contextRoot =3D webservicesMD.getContextRoot();
- final WebserviceDescriptionsMetaData wsDescriptionsMD =3D webservice=
sMD.getWebserviceDescriptions();
-
- if (wsDescriptionsMD !=3D null)
- {
- // set wsdl location resolver
- final PublishLocationAdapter resolver =3D new PublishLocationAdap=
terImpl(wsDescriptionsMD);
- ejbArchiveMD.setPublishLocationAdapter(resolver);
-
- final WebserviceDescriptionMetaData wsDescriptionMD =3D ASHelper
- .getWebserviceDescriptionMetaData(wsDescriptionsMD);
- if (wsDescriptionMD !=3D null)
- {
- if (contextRoot =3D=3D null && !hasContextRoot(ejbArchiveMD))
- {
- contextRoot =3D wsDescriptionMD.getWebserviceDescriptionNam=
e(); // TCK6 fallback
- }
-
- final String configName =3D wsDescriptionMD.getConfigName();
- final String configFile =3D wsDescriptionMD.getConfigFile();
-
- // set config name
- this.log.debug("Setting config name: " + configName);
- ejbArchiveMD.setConfigName(wsDescriptionMD.getConfigName());
-
- // set config file
- this.log.debug("Setting config file: " + configFile);
- ejbArchiveMD.setConfigFile(wsDescriptionMD.getConfigFile());
- }
- }
-
+ final String contextRoot =3D webservicesMD.getContextRoot();
ejbArchiveMD.setWebServiceContextRoot(contextRoot);
this.log.debug("Setting context root: " + contextRoot);
+
+ // set config name
+ final String configName =3D webservicesMD.getConfigName();
+ this.log.debug("Setting config name: " + configName);
+ ejbArchiveMD.setConfigName(configName);
+
+ // set config file
+ final String configFile =3D webservicesMD.getConfigFile();
+ this.log.debug("Setting config file: " + configFile);
+ ejbArchiveMD.setConfigFile(configFile);
+ =
+ // set wsdl location resolver
+ final WebserviceDescriptionMetaData[] wsDescriptionsMD =3D webservic=
esMD.getWebserviceDescriptions();
+ final PublishLocationAdapter resolver =3D new PublishLocationAdapter=
Impl(wsDescriptionsMD);
+ ejbArchiveMD.setPublishLocationAdapter(resolver);
}
=
- /**
- * Returns true if has context root, false otherwise.
- *
- * @param ejbArchiveMD ejb archive MD
- * @return true if has context root, false otherwise
- */
- private boolean hasContextRoot(final EJBArchiveMetaData ejbArchiveMD)
- {
- for (final Iterator ejbMDs =3D ejbArchiveMD.getEnterpri=
seBeans(); ejbMDs.hasNext(); )
- {
- final EJBMetaData ejbMD =3D ejbMDs.next();
- if (ejbMD.getPortComponentURI() !=3D null)
- {
- return true;
- }
- }
+ protected PortComponentMetaData getPortComponent(final String ejbName, =
final JBossWebservicesMetaData jbossWebservicesMD) {
+ if (jbossWebservicesMD =3D=3D null) return null;
=
- return false;
+ PortComponentMetaData portComponentMD =3D null;
+ for (final WebserviceDescriptionMetaData webserviceDescriptionMD : =
jbossWebservicesMD.getWebserviceDescriptions()) {
+ portComponentMD =3D webserviceDescriptionMD.getPortComponentByE=
jbLinkName(ejbName);
+ if (portComponentMD !=3D null) return portComponentMD;
+ }
+ =
+ return null;
}
+
}
Modified: container/jboss60/branches/jbossws-jboss610/src/main/java/org/jbo=
ss/webservices/integration/metadata/MetaDataBuilderEJB21.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/metadata/MetaDataBuilderEJB21.java 2011-10-31 15:26:50=
UTC (rev 15175)
+++ container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/metadata/MetaDataBuilderEJB21.java 2011-10-31 15:27:32=
UTC (rev 15176)
@@ -27,13 +27,14 @@
import org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData;
import org.jboss.metadata.ejb.jboss.JBossMetaData;
import org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData;
-import org.jboss.metadata.javaee.spec.PortComponent;
import org.jboss.ws.common.integration.WSHelper;
import org.jboss.wsf.spi.deployment.Deployment;
import org.jboss.wsf.spi.metadata.j2ee.EJBArchiveMetaData;
import org.jboss.wsf.spi.metadata.j2ee.EJBMetaData;
import org.jboss.wsf.spi.metadata.j2ee.EJBSecurityMetaData;
import org.jboss.wsf.spi.metadata.j2ee.SLSBMetaData;
+import org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData;
+import org.jboss.wsf.spi.metadata.webservices.PortComponentMetaData;
=
/**
* Builds container independent meta data from EJB21 container meta data. =
@@ -63,10 +64,11 @@
{
final JBossMetaData jbossMetaData =3D WSHelper.getRequiredAttachment=
(dep, JBossMetaData.class);
final List wsEjbsMD =3D new LinkedList();
+ final JBossWebservicesMetaData jbossWebservicesMD =3D WSHelper.getOp=
tionalAttachment(dep, JBossWebservicesMetaData.class);
=
for (final JBossEnterpriseBeanMetaData jbossEjbMD : jbossMetaData.ge=
tEnterpriseBeans())
{
- this.buildEnterpriseBeanMetaData(wsEjbsMD, jbossEjbMD);
+ this.buildEnterpriseBeanMetaData(wsEjbsMD, jbossEjbMD, jbossWebse=
rvicesMD);
}
=
ejbArchiveMD.setEnterpriseBeans(wsEjbsMD);
@@ -83,7 +85,7 @@
* @param jbossEjbMD jboss specific EJB meta data
*/
private void buildEnterpriseBeanMetaData(final List wsEjbs=
MD,
- final JBossEnterpriseBeanMetaData jbossEjbMD)
+ final JBossEnterpriseBeanMetaData jbossEjbMD, final JBossWebservi=
cesMetaData jbossWebservicesMD)
{
final EJBMetaData wsEjbMD =3D newEjbMetaData(jbossEjbMD);
=
@@ -106,19 +108,19 @@
wsEjbMD.setJndiName(sessionEjbMD.determineJndiName());
wsEjbMD.setLocalJndiName(jbossEjbMD.determineLocalJndiName());
=
- final PortComponent portComponentMD =3D sessionEjbMD.getPortCo=
mponent();
+ final PortComponentMetaData portComponentMD =3D getPortCompone=
nt(jbossEjbMD.getEjbName(), jbossWebservicesMD);
if (portComponentMD !=3D null)
{
- // set port component meta data
- wsEjbMD.setPortComponentName(portComponentMD.getPortCompone=
ntName());
- wsEjbMD.setPortComponentURI(portComponentMD.getPortComponen=
tURI());
+ // set port component meta data
+ wsEjbMD.setPortComponentName(portComponentMD.getPortCompon=
entName());
+ wsEjbMD.setPortComponentURI(portComponentMD.getPortCompone=
ntURI());
=
- // set security meta data
- final EJBSecurityMetaData smd =3D new EJBSecurityMetaData();
- smd.setAuthMethod(portComponentMD.getAuthMethod());
- smd.setTransportGuarantee(portComponentMD.getTransportGuara=
ntee());
- smd.setSecureWSDLAccess(portComponentMD.getSecureWSDLAccess=
());
- wsEjbMD.setSecurityMetaData(smd);
+ // set security meta data
+ final EJBSecurityMetaData smd =3D new EJBSecurityMetaData(=
);
+ smd.setAuthMethod(portComponentMD.getAuthMethod());
+ smd.setTransportGuarantee(portComponentMD.getTransportGuar=
antee());
+ smd.setSecureWSDLAccess(portComponentMD.getSecureWSDLAcces=
s());
+ wsEjbMD.setSecurityMetaData(smd);
}
}
=
Modified: container/jboss60/branches/jbossws-jboss610/src/main/java/org/jbo=
ss/webservices/integration/metadata/MetaDataBuilderEJB3.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/metadata/MetaDataBuilderEJB3.java 2011-10-31 15:26:50 =
UTC (rev 15175)
+++ container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/metadata/MetaDataBuilderEJB3.java 2011-10-31 15:27:32 =
UTC (rev 15176)
@@ -26,16 +26,16 @@
=
import org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData;
import org.jboss.metadata.ejb.jboss.JBossMetaData;
-import org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData;
-import org.jboss.metadata.javaee.spec.PortComponent;
+import org.jboss.webservices.integration.WebServiceDeclaration;
+import org.jboss.webservices.integration.WebServiceDeployment;
import org.jboss.ws.common.integration.WSHelper;
import org.jboss.wsf.spi.deployment.Deployment;
-import org.jboss.webservices.integration.WebServiceDeclaration;
-import org.jboss.webservices.integration.WebServiceDeployment;
import org.jboss.wsf.spi.metadata.j2ee.EJBArchiveMetaData;
import org.jboss.wsf.spi.metadata.j2ee.EJBMetaData;
import org.jboss.wsf.spi.metadata.j2ee.EJBSecurityMetaData;
import org.jboss.wsf.spi.metadata.j2ee.SLSBMetaData;
+import org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData;
+import org.jboss.wsf.spi.metadata.webservices.PortComponentMetaData;
=
/**
* Builds container independent meta data from EJB3 container meta data. =
@@ -65,12 +65,13 @@
final JBossMetaData jbossMetaData =3D WSHelper.getRequiredAttachment=
(dep, JBossMetaData.class);
final WebServiceDeployment ejb3Deployment =3D WSHelper.getRequiredAt=
tachment(dep, WebServiceDeployment.class);
final List wsEjbsMD =3D new LinkedList();
+ final JBossWebservicesMetaData jbossWebservicesMD =3D WSHelper.getOp=
tionalAttachment(dep, JBossWebservicesMetaData.class);
=
for (final WebServiceDeclaration ejbEndpoint : ejb3Deployment.getSer=
viceEndpoints())
{
final String ejbName =3D ejbEndpoint.getComponentName();
final JBossEnterpriseBeanMetaData jbossEjbMD =3D jbossMetaData.ge=
tEnterpriseBean(ejbName);
- this.buildEnterpriseBeanMetaData(wsEjbsMD, jbossEjbMD);
+ this.buildEnterpriseBeanMetaData(wsEjbsMD, jbossEjbMD, jbossWebse=
rvicesMD);
}
=
ejbArchiveMD.setEnterpriseBeans(wsEjbsMD);
@@ -82,7 +83,7 @@
* @param wsEjbsMD jboss agnostic EJBs meta data
* @param jbossEjbMD jboss specific EJB meta data
*/
- private void buildEnterpriseBeanMetaData(final List wsEjbs=
MD, final JBossEnterpriseBeanMetaData jbossEjbMD)
+ private void buildEnterpriseBeanMetaData(final List wsEjbs=
MD, final JBossEnterpriseBeanMetaData jbossEjbMD, final JBossWebservicesMet=
aData jbossWebservicesMD)
{
log.debug("Creating JBoss agnostic EJB3 meta data for session bean: =
" + jbossEjbMD.getEjbClass());
final EJBMetaData wsEjbMD =3D new SLSBMetaData();
@@ -91,8 +92,7 @@
=
if (jbossEjbMD.isSession())
{
- final JBossSessionBeanMetaData sessionEjbMD =3D (JBossSessionBean=
MetaData) jbossEjbMD;
- final PortComponent portComponentMD =3D sessionEjbMD.getPortCompo=
nent();
+ final PortComponentMetaData portComponentMD =3D getPortComponent(=
jbossEjbMD.getEjbName(), jbossWebservicesMD);
if (portComponentMD !=3D null)
{
// set port component meta data
Modified: container/jboss60/branches/jbossws-jboss610/src/main/java/org/jbo=
ss/webservices/integration/metadata/MetaDataBuilderJSE.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/metadata/MetaDataBuilderJSE.java 2011-10-31 15:26:50 U=
TC (rev 15175)
+++ container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/metadata/MetaDataBuilderJSE.java 2011-10-31 15:27:32 U=
TC (rev 15176)
@@ -49,6 +49,7 @@
import org.jboss.wsf.spi.metadata.j2ee.JSESecurityMetaData;
import org.jboss.wsf.spi.metadata.j2ee.JSESecurityMetaData.JSEResourceColl=
ection;
import org.jboss.wsf.spi.metadata.j2ee.PublishLocationAdapter;
+import org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData;
=
/**
* Builds container independent meta data from WEB container meta data.
@@ -97,16 +98,20 @@
jseArchiveMD.setSecurityDomain(securityDomain);
=
// set wsdl location resolver
- final PublishLocationAdapter resolver =3D new PublishLocationAdapter=
Impl(jbossWebMD.getWebserviceDescriptions());
- jseArchiveMD.setPublishLocationAdapter(resolver);
+ final JBossWebservicesMetaData jbossWebservicesMD =3D WSHelper.getOp=
tionalAttachment(dep, JBossWebservicesMetaData.class);
+ if (jbossWebservicesMD !=3D null)
+ {
+ final PublishLocationAdapter resolver =3D new PublishLocationAda=
pterImpl(jbossWebservicesMD.getWebserviceDescriptions());
+ jseArchiveMD.setPublishLocationAdapter(resolver);
+ }
=
+ // set config name and file
+ this.setConfigNameAndFile(jseArchiveMD, jbossWebMD, jbossWebservices=
MD);
+
// set security meta data
final List jseSecurityMDs =3D this.getSecurityM=
etaData(jbossWebMD.getSecurityConstraints());
jseArchiveMD.setSecurityMetaData(jseSecurityMDs);
=
- // set config name and file
- this.setConfigNameAndFile(jseArchiveMD, jbossWebMD);
-
return jseArchiveMD;
}
=
@@ -116,16 +121,14 @@
* @param jseArchiveMD universal JSE meta data model
* @param jbossWebMD jboss web meta data
*/
- private void setConfigNameAndFile(final JSEArchiveMetaData jseArchiveMD=
, final JBossWebMetaData jbossWebMD)
+ private void setConfigNameAndFile(final JSEArchiveMetaData jseArchiveMD=
, final JBossWebMetaData jbossWebMD, final JBossWebservicesMetaData jbossWe=
bservicesMD)
{
- final WebserviceDescriptionsMetaData wsDescriptionsMD =3D jbossWebMD=
.getWebserviceDescriptions();
- final WebserviceDescriptionMetaData wsDescriptionMD =3D ASHelper.get=
WebserviceDescriptionMetaData(wsDescriptionsMD);
- if (wsDescriptionMD !=3D null)
+ if (jbossWebservicesMD !=3D null)
{
- if (wsDescriptionMD.getConfigName() !=3D null)
+ if (jbossWebservicesMD.getConfigName() !=3D null)
{
- jseArchiveMD.setConfigName(wsDescriptionMD.getConfigName());
- jseArchiveMD.setConfigFile(wsDescriptionMD.getConfigFile());
+ jseArchiveMD.setConfigName(jbossWebservicesMD.getConfigName());
+ jseArchiveMD.setConfigFile(jbossWebservicesMD.getConfigFile());
=
// ensure higher priority against web.xml context parameters
return;
Modified: container/jboss60/branches/jbossws-jboss610/src/main/java/org/jbo=
ss/webservices/integration/metadata/PublishLocationAdapterImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/metadata/PublishLocationAdapterImpl.java 2011-10-31 15=
:26:50 UTC (rev 15175)
+++ container/jboss60/branches/jbossws-jboss610/src/main/java/org/jboss/web=
services/integration/metadata/PublishLocationAdapterImpl.java 2011-10-31 15=
:27:32 UTC (rev 15176)
@@ -21,9 +21,8 @@
*/
package org.jboss.webservices.integration.metadata;
=
-import org.jboss.metadata.common.jboss.WebserviceDescriptionMetaData;
-import org.jboss.metadata.common.jboss.WebserviceDescriptionsMetaData;
import org.jboss.wsf.spi.metadata.j2ee.PublishLocationAdapter;
+import org.jboss.wsf.spi.metadata.webservices.WebserviceDescriptionMetaDat=
a;
=
/**
* Publish location adapter implementation.
@@ -34,17 +33,15 @@
final class PublishLocationAdapterImpl implements PublishLocationAdapter
{
/** Webservice descriptions meta data. */
- private final WebserviceDescriptionsMetaData wsDescriptionsMD;
+ private final WebserviceDescriptionMetaData[] wsDescriptionsMD;
=
/**
* Constructor.
*
* @param wsDescriptionsMD webservice descriptions meta data
*/
- PublishLocationAdapterImpl(final WebserviceDescriptionsMetaData wsDescr=
iptionsMD)
+ PublishLocationAdapterImpl(final WebserviceDescriptionMetaData[] wsDesc=
riptionsMD)
{
- super();
-
this.wsDescriptionsMD =3D wsDescriptionsMD;
}
=
@@ -56,13 +53,12 @@
*/
public String getWsdlPublishLocationByName(final String endpointName)
{
- if (this.wsDescriptionsMD !=3D null)
+ if (wsDescriptionsMD !=3D null)
{
- final WebserviceDescriptionMetaData endpointMD =3D this.wsDescrip=
tionsMD.get(endpointName);
-
- if (endpointMD !=3D null)
+ for (final WebserviceDescriptionMetaData wsDescriptionMD : wsDesc=
riptionsMD)
{
- return endpointMD.getWsdlPublishLocation();
+ if (endpointName.equals(wsDescriptionMD.getWebserviceDescript=
ionName()))
+ return wsDescriptionMD.getWsdlPublishLocation();
}
}
=
Modified: container/jboss60/branches/jbossws-jboss610/src/main/resources/jb=
ossws-jboss.deployer/META-INF/stack-agnostic-jboss-beans.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- container/jboss60/branches/jbossws-jboss610/src/main/resources/jbossws-=
jboss.deployer/META-INF/stack-agnostic-jboss-beans.xml 2011-10-31 15:26:50 =
UTC (rev 15175)
+++ container/jboss60/branches/jbossws-jboss610/src/main/resources/jbossws-=
jboss.deployer/META-INF/stack-agnostic-jboss-beans.xml 2011-10-31 15:27:32 =
UTC (rev 15176)
@@ -54,9 +54,12 @@