JBossWS SVN: r3610 - trunk/build/ant-import.
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2007-06-18 07:54:04 -0400 (Mon, 18 Jun 2007)
New Revision: 3610
Modified:
trunk/build/ant-import/build-testsuite.xml
Log:
Include wsdl4j in 40 and 42 classpath
Modified: trunk/build/ant-import/build-testsuite.xml
===================================================================
--- trunk/build/ant-import/build-testsuite.xml 2007-06-18 11:44:05 UTC (rev 3609)
+++ trunk/build/ant-import/build-testsuite.xml 2007-06-18 11:54:04 UTC (rev 3610)
@@ -147,7 +147,8 @@
<pathelement location="${jboss.client}/jboss-j2ee.jar"/>
<pathelement location="${jboss.client}/jboss-xml-binding.jar"/>
<pathelement location="${jboss.client}/mail.jar"/>
- <pathelement location="${jboss.client}/stax-api.jar"/>
+ <pathelement location="${jboss.client}/wsdl4j.jar"/>
+ <pathelement location="${jboss.client}/stax-api.jar"/>
<pathelement location="${jboss.client}/jbosssx-client.jar"/>
<pathelement location="${jboss.server.lib}/servlet-api.jar"/>
</path>
@@ -181,7 +182,8 @@
<pathelement location="${jboss.client}/jboss-j2ee.jar"/>
<pathelement location="${jboss.client}/jboss-xml-binding.jar"/>
<pathelement location="${jboss.client}/mail.jar"/>
- <pathelement location="${jboss.client}/stax-api.jar"/>
+ <pathelement location="${jboss.client}/wsdl4j.jar"/>
+ <pathelement location="${jboss.client}/stax-api.jar"/>
<pathelement location="${jboss.client}/jbosssx-client.jar"/>
<pathelement location="${jboss.server.lib}/javax.servlet.jar"/>
</path>
18 years, 10 months
JBossWS SVN: r3609 - branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/samples/webserviceref.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2007-06-18 07:44:05 -0400 (Mon, 18 Jun 2007)
New Revision: 3609
Modified:
branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/samples/webserviceref/TestEndpointClientTwo.java
Log:
Service does not implement ConfigProvider any more
Modified: branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/samples/webserviceref/TestEndpointClientTwo.java
===================================================================
--- branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/samples/webserviceref/TestEndpointClientTwo.java 2007-06-18 11:23:20 UTC (rev 3608)
+++ branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/samples/webserviceref/TestEndpointClientTwo.java 2007-06-18 11:44:05 UTC (rev 3609)
@@ -101,8 +101,6 @@
public String testService2(String reqStr) throws Exception
{
Service service = (Service)iniCtx.lookup("java:comp/env/Service2");
- verifyConfig((ConfigProvider)service);
-
TestEndpoint port = service.getPort(TestEndpoint.class);
verifyConfig((ConfigProvider)port);
18 years, 10 months
JBossWS SVN: r3608 - in trunk/integration: xfire/ant-import and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2007-06-18 07:23:20 -0400 (Mon, 18 Jun 2007)
New Revision: 3608
Modified:
trunk/integration/sunri/ant-import/build-deploy.xml
trunk/integration/xfire/ant-import/build-deploy.xml
Log:
removed attribute 'spiscripts'
Modified: trunk/integration/sunri/ant-import/build-deploy.xml
===================================================================
--- trunk/integration/sunri/ant-import/build-deploy.xml 2007-06-18 11:19:27 UTC (rev 3607)
+++ trunk/integration/sunri/ant-import/build-deploy.xml 2007-06-18 11:23:20 UTC (rev 3608)
@@ -31,8 +31,7 @@
thirdpartylibs="${int.sunri.dir}/thirdparty"/>
<macro-deploy-spi
- spilibs="${spi.dir}/output/lib"
- spiscripts="${spi.dir}/etc"
+ spilibs="${spi.dir}/output/lib"
thirdpartylibs="${spi.dir}/thirdparty"
jbosshome="${jboss50.home}"/>
</target>
@@ -54,8 +53,7 @@
thirdpartylibs="${int.sunri.dir}/thirdparty"/>
<macro-deploy-spi
- spilibs="${spi.dir}/output/lib"
- spiscripts="${spi.dir}/etc"
+ spilibs="${spi.dir}/output/lib"
thirdpartylibs="${spi.dir}/thirdparty"
jbosshome="${jboss42.home}"/>
</target>
Modified: trunk/integration/xfire/ant-import/build-deploy.xml
===================================================================
--- trunk/integration/xfire/ant-import/build-deploy.xml 2007-06-18 11:19:27 UTC (rev 3607)
+++ trunk/integration/xfire/ant-import/build-deploy.xml 2007-06-18 11:23:20 UTC (rev 3608)
@@ -31,8 +31,7 @@
thirdpartylibs="${int.xfire.dir}/thirdparty"/>
<macro-deploy-spi
- spilibs="${spi.dir}/output/lib"
- spiscripts="${spi.dir}/etc"
+ spilibs="${spi.dir}/output/lib"
thirdpartylibs="${spi.dir}/thirdparty"
jbosshome="${jboss50.home}"/>
</target>
@@ -54,8 +53,7 @@
thirdpartylibs="${int.xfire.dir}/thirdparty"/>
<macro-deploy-spi
- spilibs="${spi.dir}/output/lib"
- spiscripts="${spi.dir}/etc"
+ spilibs="${spi.dir}/output/lib"
thirdpartylibs="${spi.dir}/thirdparty"
jbosshome="${jboss42.home}"/>
</target>
18 years, 10 months
JBossWS SVN: r3607 - in trunk/integration: xfire/src/main/etc and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2007-06-18 07:19:27 -0400 (Mon, 18 Jun 2007)
New Revision: 3607
Modified:
trunk/integration/sunri/src/main/etc/bin-dist-deploy.xml
trunk/integration/xfire/src/main/etc/bin-dist-deploy.xml
Log:
removed attribute 'spiscripts'
Modified: trunk/integration/sunri/src/main/etc/bin-dist-deploy.xml
===================================================================
--- trunk/integration/sunri/src/main/etc/bin-dist-deploy.xml 2007-06-18 11:14:38 UTC (rev 3606)
+++ trunk/integration/sunri/src/main/etc/bin-dist-deploy.xml 2007-06-18 11:19:27 UTC (rev 3607)
@@ -12,7 +12,7 @@
<!-- $Id$ -->
<project>
-
+
<!-- ================================================================== -->
<!-- Deployment -->
<!-- ================================================================== -->
@@ -29,9 +29,8 @@
<macro-deploy-spi
spilibs="${lib.dir}"
- spiscripts="${build.dir}"
thirdpartylibs="${lib.dir}"
- jbosshome="${jboss50.home}"/>
+ jbosshome="${jboss50.home}"/>
</target>
<!-- Remove jbossws/sunri from jboss50 -->
@@ -52,9 +51,8 @@
<macro-deploy-spi
spilibs="${lib.dir}"
- spiscripts="${build.dir}"
thirdpartylibs="${lib.dir}"
- jbosshome="${jboss42.home}"/>
+ jbosshome="${jboss42.home}"/>
</target>
<!-- Remove jbossws/sunri from jboss42 -->
Modified: trunk/integration/xfire/src/main/etc/bin-dist-deploy.xml
===================================================================
--- trunk/integration/xfire/src/main/etc/bin-dist-deploy.xml 2007-06-18 11:14:38 UTC (rev 3606)
+++ trunk/integration/xfire/src/main/etc/bin-dist-deploy.xml 2007-06-18 11:19:27 UTC (rev 3607)
@@ -26,12 +26,11 @@
jbosslibs="${lib.dir}"
stacklibs="${lib.dir}"
thirdpartylibs="${lib.dir}"/>
-
+
<macro-deploy-spi
spilibs="${lib.dir}"
- spiscripts="${bin.dir}"
thirdpartylibs="${lib.dir}"
- jbosshome="${jboss50.home}"/>
+ jbosshome="${jboss50.home}"/>
</target>
<!-- Remove jbossws/xfire from jboss50 -->
@@ -49,12 +48,11 @@
jbosslibs="${lib.dir}"
stacklibs="${lib.dir}"
thirdpartylibs="${lib.dir}"/>
-
+
<macro-deploy-spi
spilibs="${lib.dir}"
- spiscripts="${bin.dir}"
thirdpartylibs="${lib.dir}"
- jbosshome="${jboss42.home}"/>
+ jbosshome="${jboss42.home}"/>
</target>
<!-- Remove jbossws/xfire from jboss42 -->
18 years, 10 months
JBossWS SVN: r3606 - trunk/build/ant-import.
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2007-06-18 07:14:38 -0400 (Mon, 18 Jun 2007)
New Revision: 3606
Modified:
trunk/build/ant-import/build-testsuite.xml
Log:
include wsdl4j in javac.classpath
Modified: trunk/build/ant-import/build-testsuite.xml
===================================================================
--- trunk/build/ant-import/build-testsuite.xml 2007-06-18 08:13:54 UTC (rev 3605)
+++ trunk/build/ant-import/build-testsuite.xml 2007-06-18 11:14:38 UTC (rev 3606)
@@ -108,7 +108,8 @@
<pathelement location="${jboss.client}/jboss-logging-spi.jar"/>
<pathelement location="${jboss.client}/jboss-xml-binding.jar"/>
<pathelement location="${jboss.client}/mail.jar"/>
- <pathelement location="${jboss.server.lib}/jboss-javaee.jar"/>
+ <pathelement location="${jboss.client}/wsdl4j.jar"/>
+ <pathelement location="${jboss.server.lib}/jboss-javaee.jar"/>
<pathelement location="${jboss.server.lib}/jbosssx.jar"/>
<pathelement location="${jboss.server.lib}/servlet-api.jar"/>
</path>
18 years, 10 months
JBossWS SVN: r3605 - branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1666.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2007-06-18 04:13:54 -0400 (Mon, 18 Jun 2007)
New Revision: 3605
Modified:
branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1666/JBWS1666TestCase.java
Log:
Add logging spi for jboss50
Modified: branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1666/JBWS1666TestCase.java
===================================================================
--- branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1666/JBWS1666TestCase.java 2007-06-17 22:46:21 UTC (rev 3604)
+++ branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1666/JBWS1666TestCase.java 2007-06-18 08:13:54 UTC (rev 3605)
@@ -63,9 +63,14 @@
StringBuffer cp = new StringBuffer("./classes");
cp.append(":" + jbc + "/jbossws-client.jar");
if (isTargetJBoss50())
+ {
cp.append(":" + jbc + "/jboss-common-core.jar");
+ cp.append(":" + jbc + "/jboss-logging-spi.jar");
+ }
else
+ {
cp.append(":" + jbc + "/jboss-common-client.jar");
+ }
Runtime rt = Runtime.getRuntime();
18 years, 10 months
JBossWS SVN: r3604 - in branches/maeste_palin/integration: native/src/main/resources/jbossws-native42.sar/jbossws.beans/META-INF and 7 other directories.
by jbossws-commits@lists.jboss.org
Author: palin
Date: 2007-06-17 18:46:21 -0400 (Sun, 17 Jun 2007)
New Revision: 3604
Added:
branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/BasicInvocationExceptionHandler.java
branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/InvocationExceptionHandler.java
branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/UnwrapInvocationExceptionHandler.java
Modified:
branches/maeste_palin/integration/native/src/main/resources/jbossws-native40.sar/jbossws.beans/META-INF/jboss-beans-no-ejb3.xml
branches/maeste_palin/integration/native/src/main/resources/jbossws-native40.sar/jbossws.beans/META-INF/jboss-beans.xml
branches/maeste_palin/integration/native/src/main/resources/jbossws-native42.sar/jbossws.beans/META-INF/jboss-beans.xml
branches/maeste_palin/integration/native/src/main/resources/jbossws-native50.sar/META-INF/jbossws-beans.xml
branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/EndpointHandlerDeployer.java
branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/AbstractInvocationHandler.java
branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/BasicInvocationHandler.java
branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/InvocationHandler.java
branches/maeste_palin/integration/sunri/src/main/resources/jbossws-sunri42.sar/jbossws.beans/META-INF/jboss-beans.xml
branches/maeste_palin/integration/sunri/src/main/resources/jbossws-sunri50.sar/META-INF/jbossws-beans.xml
branches/maeste_palin/integration/xfire/src/main/resources/jbossws-xfire42.sar/jbossws.beans/META-INF/jboss-beans.xml
branches/maeste_palin/integration/xfire/src/main/resources/jbossws-xfire50.sar/META-INF/jbossws-beans.xml
Log:
Work in progress on JBWS-1670: added invocation exception handler to deal with InvocationException in different ways according to the stack we are using (SunRI requires us not to unwrap InvocationTargetException before passing it back to the InvokerTube)
Modified: branches/maeste_palin/integration/native/src/main/resources/jbossws-native40.sar/jbossws.beans/META-INF/jboss-beans-no-ejb3.xml
===================================================================
--- branches/maeste_palin/integration/native/src/main/resources/jbossws-native40.sar/jbossws.beans/META-INF/jboss-beans-no-ejb3.xml 2007-06-17 21:35:52 UTC (rev 3603)
+++ branches/maeste_palin/integration/native/src/main/resources/jbossws-native40.sar/jbossws.beans/META-INF/jboss-beans-no-ejb3.xml 2007-06-17 22:46:21 UTC (rev 3604)
@@ -132,6 +132,7 @@
<entry><key>JAXWS_JSE</key><value>org.jboss.wsf.stack.jbws.ServiceLifecycleInvocationHandler</value></entry>
</map>
</property>
+ <property name="invocationExceptionHandler">org.jboss.wsf.spi.invocation.UnwrapInvocationExceptionHandler</property>
</bean>
<bean name="WSEndpointLifecycleDeployer" class="org.jboss.wsf.spi.deployment.EndpointLifecycleDeployer"/>
<bean name="WSEndpointNameDeployer" class="org.jboss.wsf.stack.jbws.EndpointNameDeployer"/>
Modified: branches/maeste_palin/integration/native/src/main/resources/jbossws-native40.sar/jbossws.beans/META-INF/jboss-beans.xml
===================================================================
--- branches/maeste_palin/integration/native/src/main/resources/jbossws-native40.sar/jbossws.beans/META-INF/jboss-beans.xml 2007-06-17 21:35:52 UTC (rev 3603)
+++ branches/maeste_palin/integration/native/src/main/resources/jbossws-native40.sar/jbossws.beans/META-INF/jboss-beans.xml 2007-06-17 22:46:21 UTC (rev 3604)
@@ -133,6 +133,7 @@
<entry><key>JAXWS_EJB3</key><value>org.jboss.wsf.container.jboss40.InvocationHandlerEJB3</value></entry>
</map>
</property>
+ <property name="invocationExceptionHandler">org.jboss.wsf.spi.invocation.UnwrapInvocationExceptionHandler</property>
</bean>
<bean name="WSEndpointLifecycleDeployer" class="org.jboss.wsf.spi.deployment.EndpointLifecycleDeployer"/>
<bean name="WSEndpointNameDeployer" class="org.jboss.wsf.stack.jbws.EndpointNameDeployer"/>
Modified: branches/maeste_palin/integration/native/src/main/resources/jbossws-native42.sar/jbossws.beans/META-INF/jboss-beans.xml
===================================================================
--- branches/maeste_palin/integration/native/src/main/resources/jbossws-native42.sar/jbossws.beans/META-INF/jboss-beans.xml 2007-06-17 21:35:52 UTC (rev 3603)
+++ branches/maeste_palin/integration/native/src/main/resources/jbossws-native42.sar/jbossws.beans/META-INF/jboss-beans.xml 2007-06-17 22:46:21 UTC (rev 3604)
@@ -137,6 +137,7 @@
<entry><key>JAXWS_EJB3</key><value>org.jboss.wsf.container.jboss42.InvocationHandlerEJB3</value></entry>
</map>
</property>
+ <property name="invocationExceptionHandler">org.jboss.wsf.spi.invocation.UnwrapInvocationExceptionHandler</property>
</bean>
<bean name="WSEndpointLifecycleDeployer" class="org.jboss.wsf.spi.deployment.EndpointLifecycleDeployer"/>
<bean name="WSEndpointNameDeployer" class="org.jboss.wsf.stack.jbws.EndpointNameDeployer"/>
Modified: branches/maeste_palin/integration/native/src/main/resources/jbossws-native50.sar/META-INF/jbossws-beans.xml
===================================================================
--- branches/maeste_palin/integration/native/src/main/resources/jbossws-native50.sar/META-INF/jbossws-beans.xml 2007-06-17 21:35:52 UTC (rev 3603)
+++ branches/maeste_palin/integration/native/src/main/resources/jbossws-native50.sar/META-INF/jbossws-beans.xml 2007-06-17 22:46:21 UTC (rev 3604)
@@ -148,6 +148,7 @@
<entry><key>JAXWS_EJB3</key><value>org.jboss.wsf.container.jboss50.InvocationHandlerEJB3</value></entry>
</map>
</property>
+ <property name="invocationExceptionHandler">org.jboss.wsf.spi.invocation.UnwrapInvocationExceptionHandler</property>
</bean>
<bean name="WSEndpointLifecycleDeployer" class="org.jboss.wsf.spi.deployment.EndpointLifecycleDeployer"/>
<bean name="WSEndpointNameDeployer" class="org.jboss.wsf.stack.jbws.EndpointNameDeployer"/>
Modified: branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/EndpointHandlerDeployer.java
===================================================================
--- branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/EndpointHandlerDeployer.java 2007-06-17 21:35:52 UTC (rev 3603)
+++ branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/EndpointHandlerDeployer.java 2007-06-17 22:46:21 UTC (rev 3604)
@@ -25,6 +25,7 @@
import java.util.Map;
+import org.jboss.wsf.spi.invocation.InvocationExceptionHandler;
import org.jboss.wsf.spi.invocation.InvocationHandler;
import org.jboss.wsf.spi.invocation.RequestHandler;
@@ -38,7 +39,8 @@
{
private String requestHandler;
private String lifecycleHandler;
- private Map<String,String> invocationHandler;
+ private Map<String, String> invocationHandler;
+ private String invocationExceptionHandler;
public void setLifecycleHandler(String handler)
{
@@ -50,11 +52,16 @@
this.requestHandler = handler;
}
- public void setInvocationHandler(Map<String,String> handlers)
+ public void setInvocationHandler(Map<String, String> handlers)
{
this.invocationHandler = handlers;
}
+ public void setInvocationExceptionHandler(String handler)
+ {
+ this.invocationExceptionHandler = handler;
+ }
+
@Override
public void create(Deployment dep)
{
@@ -97,11 +104,23 @@
String className = invocationHandler.get(dep.getType().toString());
if (className == null)
throw new IllegalStateException("Cannot obtain invocation handler for: " + dep.getType());
-
+
+ InvocationExceptionHandler exceptionHandler;
try
{
+ Class<?> handlerClass = dep.getClassLoader().loadClass(invocationExceptionHandler);
+ exceptionHandler = (InvocationExceptionHandler)handlerClass.newInstance();
+ }
+ catch (Exception e)
+ {
+ throw new IllegalStateException("Cannot load invocation exception handler: " + invocationExceptionHandler);
+ }
+ try
+ {
Class<?> handlerClass = dep.getClassLoader().loadClass(className);
- return (InvocationHandler)handlerClass.newInstance();
+ InvocationHandler invocationHandlerInstance = (InvocationHandler)handlerClass.newInstance();
+ invocationHandlerInstance.setExceptionHandler(exceptionHandler);
+ return invocationHandlerInstance;
}
catch (Exception e)
{
Modified: branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/AbstractInvocationHandler.java
===================================================================
--- branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/AbstractInvocationHandler.java 2007-06-17 21:35:52 UTC (rev 3603)
+++ branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/AbstractInvocationHandler.java 2007-06-17 22:46:21 UTC (rev 3604)
@@ -23,12 +23,8 @@
// $Id$
-import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
-import java.lang.reflect.UndeclaredThrowableException;
-import javax.management.MBeanException;
-
import org.jboss.logging.Logger;
import org.jboss.wsf.spi.deployment.Endpoint;
import org.jboss.wsf.spi.utils.JavaUtils;
@@ -43,6 +39,8 @@
{
// provide logging
private static final Logger log = Logger.getLogger(AbstractInvocationHandler.class);
+
+ protected InvocationExceptionHandler exceptionHandler;
protected Method getImplMethod(Class implClass, Method seiMethod) throws ClassNotFoundException, NoSuchMethodException
{
@@ -63,39 +61,12 @@
return implMethod;
}
- protected void handleInvocationException(Throwable th) throws Exception
+ protected final void handleInvocationException(Throwable th) throws Exception
{
- if (th instanceof InvocationTargetException)
- {
- // unwrap the throwable raised by the service endpoint implementation
- Throwable targetEx = ((InvocationTargetException)th).getTargetException();
- handleInvocationThrowable(targetEx);
- }
-
- if (th instanceof MBeanException)
- {
- throw ((MBeanException)th).getTargetException();
- }
-
- handleInvocationThrowable(th);
+ //delegate to invocation exception handler
+ exceptionHandler.handleInvocationException(th);
}
- private void handleInvocationThrowable(Throwable th) throws Exception
- {
- if (th instanceof Exception)
- {
- throw (Exception)th;
- }
- else if (th instanceof Error)
- {
- throw (Error)th;
- }
- else
- {
- throw new UndeclaredThrowableException(th);
- }
- }
-
public void create(Endpoint ep)
{
log.debug("Create: " + ep.getName());
@@ -115,4 +86,14 @@
{
log.debug("Destroy: " + ep.getName());
}
+
+ public InvocationExceptionHandler getExceptionHandler()
+ {
+ return exceptionHandler;
+ }
+
+ public void setExceptionHandler(InvocationExceptionHandler exceptionHandler)
+ {
+ this.exceptionHandler = exceptionHandler;
+ }
}
Added: branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/BasicInvocationExceptionHandler.java
===================================================================
--- branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/BasicInvocationExceptionHandler.java (rev 0)
+++ branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/BasicInvocationExceptionHandler.java 2007-06-17 22:46:21 UTC (rev 3604)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.wsf.spi.invocation;
+
+import java.lang.reflect.UndeclaredThrowableException;
+
+import javax.management.MBeanException;
+
+/**
+ * A basic invocation exception handler that simply rethrows Throwable as Exception
+ *
+ * @author Alessio Soldano, <alessio.soldano(a)javalinux.it>
+ * @since 17-Jun-2007
+ *
+ */
+public class BasicInvocationExceptionHandler implements InvocationExceptionHandler
+{
+
+ public void handleInvocationException(Throwable th) throws Exception
+ {
+ if (th instanceof MBeanException)
+ {
+ throw ((MBeanException)th).getTargetException();
+ }
+
+ handleInvocationThrowable(th);
+ }
+
+ protected void handleInvocationThrowable(Throwable th) throws Exception
+ {
+ if (th instanceof Exception)
+ {
+ throw (Exception)th;
+ }
+ else if (th instanceof Error)
+ {
+ throw (Error)th;
+ }
+ else
+ {
+ throw new UndeclaredThrowableException(th);
+ }
+ }
+
+}
Modified: branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/BasicInvocationHandler.java
===================================================================
--- branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/BasicInvocationHandler.java 2007-06-17 21:35:52 UTC (rev 3603)
+++ branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/BasicInvocationHandler.java 2007-06-17 22:46:21 UTC (rev 3604)
@@ -53,4 +53,5 @@
public void destroy(Endpoint ep)
{
}
+
}
Added: branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/InvocationExceptionHandler.java
===================================================================
--- branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/InvocationExceptionHandler.java (rev 0)
+++ branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/InvocationExceptionHandler.java 2007-06-17 22:46:21 UTC (rev 3604)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.wsf.spi.invocation;
+
+/**
+ * A general invocation exception handler
+ *
+ * @author Alessio Soldano, <alessio.soldano(a)javalinux.it>
+ * @since 17-Jun-2007
+ *
+ */
+public interface InvocationExceptionHandler
+{
+ public void handleInvocationException(Throwable th) throws Exception;
+
+}
Modified: branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/InvocationHandler.java
===================================================================
--- branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/InvocationHandler.java 2007-06-17 21:35:52 UTC (rev 3603)
+++ branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/InvocationHandler.java 2007-06-17 22:46:21 UTC (rev 3604)
@@ -50,4 +50,7 @@
/** Destroy the invocation handler */
void destroy(Endpoint ep);
+
+ /** Set the handler to be used to deal with invocation exceptions **/
+ void setExceptionHandler(InvocationExceptionHandler exceptionHandler);
}
Added: branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/UnwrapInvocationExceptionHandler.java
===================================================================
--- branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/UnwrapInvocationExceptionHandler.java (rev 0)
+++ branches/maeste_palin/integration/spi/src/main/java/org/jboss/wsf/spi/invocation/UnwrapInvocationExceptionHandler.java 2007-06-17 22:46:21 UTC (rev 3604)
@@ -0,0 +1,55 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.wsf.spi.invocation;
+
+import java.lang.reflect.InvocationTargetException;
+
+import javax.management.MBeanException;
+
+/**
+ * An invocation exception handler that unwraps InvocationExceptions
+ *
+ * @author Alessio Soldano, <alessio.soldano(a)javalinux.it>
+ * @since 17-Jun-2007
+ *
+ */
+public class UnwrapInvocationExceptionHandler extends BasicInvocationExceptionHandler
+{
+
+ public void handleInvocationException(Throwable th) throws Exception
+ {
+ if (th instanceof InvocationTargetException)
+ {
+ // unwrap the throwable raised by the service endpoint implementation
+ Throwable targetEx = ((InvocationTargetException)th).getTargetException();
+ handleInvocationThrowable(targetEx);
+ }
+
+ if (th instanceof MBeanException)
+ {
+ throw ((MBeanException)th).getTargetException();
+ }
+
+ handleInvocationThrowable(th);
+ }
+
+}
Modified: branches/maeste_palin/integration/sunri/src/main/resources/jbossws-sunri42.sar/jbossws.beans/META-INF/jboss-beans.xml
===================================================================
--- branches/maeste_palin/integration/sunri/src/main/resources/jbossws-sunri42.sar/jbossws.beans/META-INF/jboss-beans.xml 2007-06-17 21:35:52 UTC (rev 3603)
+++ branches/maeste_palin/integration/sunri/src/main/resources/jbossws-sunri42.sar/jbossws.beans/META-INF/jboss-beans.xml 2007-06-17 22:46:21 UTC (rev 3604)
@@ -122,6 +122,7 @@
<entry><key>JAXWS_EJB3</key><value>org.jboss.wsf.container.jboss42.InvocationHandlerEJB3</value></entry>
</map>
</property>
+ <property name="invocationExceptionHandler">org.jboss.wsf.spi.invocation.BasicInvocationExceptionHandler</property>
</bean>
<bean name="WSEndpointLifecycleDeployer" class="org.jboss.wsf.spi.deployment.EndpointLifecycleDeployer"/>
<bean name="WSEndpointNameDeployer" class="org.jboss.wsf.spi.deployment.EndpointNameDeployer"/>
Modified: branches/maeste_palin/integration/sunri/src/main/resources/jbossws-sunri50.sar/META-INF/jbossws-beans.xml
===================================================================
--- branches/maeste_palin/integration/sunri/src/main/resources/jbossws-sunri50.sar/META-INF/jbossws-beans.xml 2007-06-17 21:35:52 UTC (rev 3603)
+++ branches/maeste_palin/integration/sunri/src/main/resources/jbossws-sunri50.sar/META-INF/jbossws-beans.xml 2007-06-17 22:46:21 UTC (rev 3604)
@@ -133,6 +133,7 @@
<entry><key>JAXWS_EJB3</key><value>org.jboss.wsf.container.jboss50.InvocationHandlerEJB3</value></entry>
</map>
</property>
+ <property name="invocationExceptionHandler">org.jboss.wsf.spi.invocation.BasicInvocationExceptionHandler</property>
</bean>
<bean name="WSEndpointLifecycleDeployer" class="org.jboss.wsf.spi.deployment.EndpointLifecycleDeployer"/>
<bean name="WSEndpointNameDeployer" class="org.jboss.wsf.spi.deployment.EndpointNameDeployer"/>
Modified: branches/maeste_palin/integration/xfire/src/main/resources/jbossws-xfire42.sar/jbossws.beans/META-INF/jboss-beans.xml
===================================================================
--- branches/maeste_palin/integration/xfire/src/main/resources/jbossws-xfire42.sar/jbossws.beans/META-INF/jboss-beans.xml 2007-06-17 21:35:52 UTC (rev 3603)
+++ branches/maeste_palin/integration/xfire/src/main/resources/jbossws-xfire42.sar/jbossws.beans/META-INF/jboss-beans.xml 2007-06-17 22:46:21 UTC (rev 3604)
@@ -122,6 +122,7 @@
<entry><key>JAXWS_EJB3</key><value>org.jboss.wsf.container.jboss42.InvocationHandlerEJB3</value></entry>
</map>
</property>
+ <property name="invocationExceptionHandler">org.jboss.wsf.spi.invocation.UnwrapInvocationExceptionHandler</property>
</bean>
<bean name="WSEndpointLifecycleDeployer" class="org.jboss.wsf.spi.deployment.EndpointLifecycleDeployer"/>
<bean name="WSEndpointNameDeployer" class="org.jboss.wsf.spi.deployment.EndpointNameDeployer"/>
Modified: branches/maeste_palin/integration/xfire/src/main/resources/jbossws-xfire50.sar/META-INF/jbossws-beans.xml
===================================================================
--- branches/maeste_palin/integration/xfire/src/main/resources/jbossws-xfire50.sar/META-INF/jbossws-beans.xml 2007-06-17 21:35:52 UTC (rev 3603)
+++ branches/maeste_palin/integration/xfire/src/main/resources/jbossws-xfire50.sar/META-INF/jbossws-beans.xml 2007-06-17 22:46:21 UTC (rev 3604)
@@ -133,6 +133,7 @@
<entry><key>JAXWS_EJB3</key><value>org.jboss.wsf.container.jboss50.InvocationHandlerEJB3</value></entry>
</map>
</property>
+ <property name="invocationExceptionHandler">org.jboss.wsf.spi.invocation.UnwrapInvocationExceptionHandler</property>
</bean>
<bean name="WSEndpointLifecycleDeployer" class="org.jboss.wsf.spi.deployment.EndpointLifecycleDeployer"/>
<bean name="WSEndpointNameDeployer" class="org.jboss.wsf.spi.deployment.EndpointNameDeployer"/>
18 years, 10 months
JBossWS SVN: r3603 - branches/maeste_palin/integration/sunri/src/main/java/org/jboss/wsf/stack/sunri/log.
by jbossws-commits@lists.jboss.org
Author: maeste
Date: 2007-06-17 17:35:52 -0400 (Sun, 17 Jun 2007)
New Revision: 3603
Modified:
branches/maeste_palin/integration/sunri/src/main/java/org/jboss/wsf/stack/sunri/log/JBossLogHandler.java
branches/maeste_palin/integration/sunri/src/main/java/org/jboss/wsf/stack/sunri/log/JDKLogRedirector.java
Log:
Bean code is more elegant with start method ;) Removed some unuseful logs
Modified: branches/maeste_palin/integration/sunri/src/main/java/org/jboss/wsf/stack/sunri/log/JBossLogHandler.java
===================================================================
--- branches/maeste_palin/integration/sunri/src/main/java/org/jboss/wsf/stack/sunri/log/JBossLogHandler.java 2007-06-15 20:49:00 UTC (rev 3602)
+++ branches/maeste_palin/integration/sunri/src/main/java/org/jboss/wsf/stack/sunri/log/JBossLogHandler.java 2007-06-17 21:35:52 UTC (rev 3603)
@@ -73,7 +73,6 @@
String level = levelMap.get(record.getLevel().getName());
level = level == null ? levelMap.get(record.getLevel().getName().toUpperCase()): level;
- msg = msg + "**" + record.getLevel().getName() + "==" + level + ";";
level = level == null ? defaultLevel : level;
if ("info".equalsIgnoreCase(level))
{
Modified: branches/maeste_palin/integration/sunri/src/main/java/org/jboss/wsf/stack/sunri/log/JDKLogRedirector.java
===================================================================
--- branches/maeste_palin/integration/sunri/src/main/java/org/jboss/wsf/stack/sunri/log/JDKLogRedirector.java 2007-06-15 20:49:00 UTC (rev 3602)
+++ branches/maeste_palin/integration/sunri/src/main/java/org/jboss/wsf/stack/sunri/log/JDKLogRedirector.java 2007-06-17 21:35:52 UTC (rev 3603)
@@ -52,12 +52,7 @@
public void changeHandlers()
{
- for (String entry : levelMapping.keySet())
- {
- Logger.getLogger(this.getClass()).info("key:" + entry);
- Logger.getLogger(this.getClass()).info("value:" + levelMapping.get(entry));
-
- }
+
for (String ns : namespaces)
{
changeHandler(ns);
@@ -100,7 +95,7 @@
}
}
myLogger.debug("Adding JBossLogHandler to log records with namespace " + ns);
- Handler jbossLogHandler = new JBossLogHandler(levelMapping,defaultLevel);
+ Handler jbossLogHandler = new JBossLogHandler(levelMapping, defaultLevel);
jbossLogHandler.setLevel(Level.ALL);
java.util.logging.Logger.getLogger(ns).addHandler(jbossLogHandler);
}
@@ -108,7 +103,6 @@
public void addNamespace(String ns)
{
namespaces.add(ns);
- changeHandler(ns);
}
public List<String> getNamespaces()
@@ -129,7 +123,7 @@
public void setDefaultLevel(String defaultLevel)
{
this.defaultLevel = defaultLevel;
- changeHandlers();
+
}
public Map<String, String> getLevelMapping()
@@ -146,4 +140,9 @@
{
return levelMapping.put(key, value);
}
+
+ public void start()
+ {
+ changeHandlers();
+ }
}
18 years, 10 months
JBossWS SVN: r3602 - branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1556.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2007-06-15 16:49:00 -0400 (Fri, 15 Jun 2007)
New Revision: 3602
Added:
branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1556/UserType.java
Log:
[JBWS-1556] @WebWservice does not work with class isolation
Added: branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1556/UserType.java
===================================================================
--- branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1556/UserType.java (rev 0)
+++ branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1556/UserType.java 2007-06-15 20:49:00 UTC (rev 3602)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws1556;
+
+public class UserType
+{
+ private String name;
+
+ public UserType()
+ {
+ }
+
+ public UserType(String name)
+ {
+ this.name = name;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+ public boolean equals(Object obj)
+ {
+ if (obj instanceof UserType)
+ {
+ return toString().equals(obj.toString());
+ }
+ return false;
+ }
+
+ public String toString()
+ {
+ return "" + name;
+ }
+}
Property changes on: branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1556/UserType.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
18 years, 10 months
JBossWS SVN: r3601 - in branches/jbossws-2.0/jbossws-core: src/test/java/org/jboss/test/ws/jaxws/jbws1556 and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2007-06-15 16:48:10 -0400 (Fri, 15 Jun 2007)
New Revision: 3601
Modified:
branches/jbossws-2.0/jbossws-core/ant-import-tests/build-jars-jaxws.xml
branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1556/EJB3Bean.java
branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1556/EndpointInterface.java
branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1556/JBWS1556EarTestCase.java
Log:
[JBWS-1556] @WebWservice does not work with class isolation
Modified: branches/jbossws-2.0/jbossws-core/ant-import-tests/build-jars-jaxws.xml
===================================================================
--- branches/jbossws-2.0/jbossws-core/ant-import-tests/build-jars-jaxws.xml 2007-06-15 16:27:34 UTC (rev 3600)
+++ branches/jbossws-2.0/jbossws-core/ant-import-tests/build-jars-jaxws.xml 2007-06-15 20:48:10 UTC (rev 3601)
@@ -210,6 +210,7 @@
<jar jarfile="${tests.output.dir}/libs/jaxws-jbws1556.jar">
<fileset dir="${tests.output.dir}/classes">
<include name="org/jboss/test/ws/jaxws/jbws1556/EJB3Bean.class"/>
+ <include name="org/jboss/test/ws/jaxws/jbws1556/UserType.class"/>
</fileset>
</jar>
<jar jarfile="${tests.output.dir}/libs/jaxws-jbws1556.ear">
Modified: branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1556/EJB3Bean.java
===================================================================
--- branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1556/EJB3Bean.java 2007-06-15 16:27:34 UTC (rev 3600)
+++ branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1556/EJB3Bean.java 2007-06-15 20:48:10 UTC (rev 3601)
@@ -36,8 +36,14 @@
public class EJB3Bean
{
@WebMethod
- public String hello(String msg)
+ public String helloSimple(String msg)
{
return msg;
}
+
+ @WebMethod
+ public UserType helloComplex(UserType msg)
+ {
+ return msg;
+ }
}
Modified: branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1556/EndpointInterface.java
===================================================================
--- branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1556/EndpointInterface.java 2007-06-15 16:27:34 UTC (rev 3600)
+++ branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1556/EndpointInterface.java 2007-06-15 20:48:10 UTC (rev 3601)
@@ -16,5 +16,7 @@
@SOAPBinding(style = SOAPBinding.Style.RPC)
public interface EndpointInterface
{
- String hello(String msg);
+ String helloSimple(String msg);
+
+ UserType helloComplex(UserType msg);
}
Modified: branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1556/JBWS1556EarTestCase.java
===================================================================
--- branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1556/JBWS1556EarTestCase.java 2007-06-15 16:27:34 UTC (rev 3600)
+++ branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws1556/JBWS1556EarTestCase.java 2007-06-15 20:48:10 UTC (rev 3601)
@@ -21,6 +21,7 @@
*/
package org.jboss.test.ws.jaxws.jbws1556;
+import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
@@ -41,18 +42,34 @@
*/
public class JBWS1556EarTestCase extends JBossWSTest
{
+ private static EndpointInterface port;
+
public static Test suite()
{
return JBossWSTestSetup.newTestSetup(JBWS1556EarTestCase.class, "jaxws-jbws1556.ear");
}
- public void testEndpointAccess() throws Exception
+ public void setUp() throws MalformedURLException
{
- URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbws1556/EJB3Bean?wsdl");
- QName serviceName = new QName("http://jbws1556.jaxws.ws.test.jboss.org/", "EJB3BeanService");
- Service service = Service.create(wsdlURL, serviceName);
- EndpointInterface port = service.getPort(EndpointInterface.class);
- String hello = port.hello("hello");
+ if (port == null)
+ {
+ URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbws1556/EJB3Bean?wsdl");
+ QName serviceName = new QName("http://jbws1556.jaxws.ws.test.jboss.org/", "EJB3BeanService");
+ Service service = Service.create(wsdlURL, serviceName);
+ port = service.getPort(EndpointInterface.class);
+ }
+ }
+
+ public void testSimpleAccess() throws Exception
+ {
+ String hello = port.helloSimple("hello");
assertEquals("hello", hello);
}
+
+ public void testComplexAccess() throws Exception
+ {
+ UserType req = new UserType("hello");
+ UserType res = port.helloComplex(req);
+ assertEquals(req, res);
+ }
}
\ No newline at end of file
18 years, 10 months