Author: thomas.diesler(a)jboss.com
Date: 2006-11-04 10:38:09 -0500 (Sat, 04 Nov 2006)
New Revision: 1370
Added:
trunk/src/main/java/org/jboss/ws/metadata/WrappedParameter.java
trunk/src/main/java/org/jboss/ws/metadata/acessor/
trunk/src/main/java/org/jboss/ws/metadata/acessor/JAXBAccessor.java
trunk/src/main/java/org/jboss/ws/metadata/acessor/ReflectiveMethodAccessor.java
trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/
trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/Anonymous.java
trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousImpl.java
trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousRequest.java
trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousResponse.java
trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousTestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxws/exception/
trunk/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionEndpoint.java
trunk/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionEndpointImpl.java
trunk/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionTestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxws/exception/UserException.java
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/Accessor.java
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/AccessorImpl.java
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/AccessorTestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/FieldAccessor.java
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/FieldAccessorResponse.java
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/MethodAccessor.java
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/MethodAccessorResponse.java
trunk/src/test/resources/jaxws/anonymous/
trunk/src/test/resources/jaxws/anonymous/WEB-INF/
trunk/src/test/resources/jaxws/anonymous/WEB-INF/web.xml
trunk/src/test/resources/jaxws/exception/
trunk/src/test/resources/jaxws/exception/WEB-INF/
trunk/src/test/resources/jaxws/exception/WEB-INF/web.xml
trunk/src/test/resources/jaxws/wrapped/
trunk/src/test/resources/jaxws/wrapped/accessor/
trunk/src/test/resources/jaxws/wrapped/accessor/WEB-INF/
trunk/src/test/resources/jaxws/wrapped/accessor/WEB-INF/web.xml
Removed:
trunk/src/main/java/org/jboss/ws/metadata/acessor/JAXBAccessor.java
trunk/src/main/java/org/jboss/ws/metadata/acessor/ReflectiveMethodAccessor.java
trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/Anonymous.java
trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousImpl.java
trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousRequest.java
trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousResponse.java
trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousTestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionEndpoint.java
trunk/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionEndpointImpl.java
trunk/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionTestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxws/exception/UserException.java
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/Accessor.java
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/AccessorImpl.java
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/AccessorTestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/FieldAccessor.java
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/FieldAccessorResponse.java
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/MethodAccessor.java
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/MethodAccessorResponse.java
trunk/src/test/resources/jaxws/anonymous/WEB-INF/
trunk/src/test/resources/jaxws/anonymous/WEB-INF/web.xml
trunk/src/test/resources/jaxws/exception/WEB-INF/
trunk/src/test/resources/jaxws/exception/WEB-INF/web.xml
trunk/src/test/resources/jaxws/wrapped/accessor/
trunk/src/test/resources/jaxws/wrapped/accessor/WEB-INF/
trunk/src/test/resources/jaxws/wrapped/accessor/WEB-INF/web.xml
Modified:
trunk/.classpath
trunk/src/ant/build-thirdparty.xml
trunk/src/main/etc/jbossws-component-info.xml
trunk/src/main/java/org/jboss/ws/binding/EndpointInvocation.java
trunk/src/main/java/org/jboss/ws/common/CommonSOAPBinding.java
trunk/src/main/java/org/jboss/ws/deployment/JSR109MetaDataBuilder.java
trunk/src/main/java/org/jboss/ws/deployment/JSR181ClientMetaDataBuilder.java
trunk/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilder.java
trunk/src/main/java/org/jboss/ws/jaxrpc/ParameterWrapping.java
trunk/src/main/java/org/jboss/ws/jaxrpc/SOAP11BindingJAXRPC.java
trunk/src/main/java/org/jboss/ws/jaxrpc/SOAP12BindingJAXRPC.java
trunk/src/main/java/org/jboss/ws/jaxws/DynamicWrapperGenerator.java
trunk/src/main/java/org/jboss/ws/jaxws/core/SOAP11BindingJAXWS.java
trunk/src/main/java/org/jboss/ws/jaxws/core/SOAP12BindingJAXWS.java
trunk/src/main/java/org/jboss/ws/metadata/ParameterMetaData.java
trunk/src/main/java/org/jboss/ws/metadata/wsdl/WSDLUtils.java
trunk/src/main/java/org/jboss/ws/tools/SourceWrapperGenerator.java
trunk/src/main/java/org/jboss/ws/tools/helpers/JavaToWSDLHelper.java
trunk/src/main/java/org/jboss/ws/tools/helpers/ToolsHelper.java
trunk/src/main/java/org/jboss/ws/tools/metadata/ReflectiveMetaDataBuilder.java
trunk/src/test/ant/build-jars-jaxws.xml
trunk/src/test/java/org/jboss/test/ws/jaxws/jbws871/JBWS871TestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/handlerchain/JSR181HandlerChainTestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/oneway/JSR181OneWayTestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/JSR181SOAPBindingTestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/PurchaseOrder.java
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/PurchaseOrderAck.java
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/SubmitBareRequest.java
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/SubmitBareResponse.java
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/webmethod/JSR181WebMethodTestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/webresult/JSR181WebResultTestCase.java
trunk/src/test/java/org/jboss/test/ws/jaxws/logicalhandler/SOAPEndpointJAXB.java
trunk/src/test/java/org/jboss/test/ws/jaxws/logicalhandler/SOAPEndpointJAXBImpl.java
trunk/src/test/java/org/jboss/test/ws/jaxws/logicalhandler/SOAPEndpointSource.java
trunk/src/test/java/org/jboss/test/ws/jaxws/logicalhandler/SOAPEndpointSourceImpl.java
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.java
trunk/src/test/resources/jaxws/jbws871/META-INF/wsdl/TestEndpoint.wsdl
trunk/src/test/resources/jaxws/jsr181/complex/META-INF/wsdl/RegistrationService.wsdl
trunk/src/test/resources/jaxws/jsr181/complex/jaxrpc-mapping.xml
trunk/src/test/resources/jaxws/jsr181/webresult/jaxrpc-mapping.xml
trunk/version.properties
Log:
Merge from branch JEE5_TCK
Modified: trunk/.classpath
===================================================================
--- trunk/.classpath 2006-11-04 14:49:44 UTC (rev 1369)
+++ trunk/.classpath 2006-11-04 15:38:09 UTC (rev 1370)
@@ -28,7 +28,9 @@
<classpathentry kind="lib"
path="thirdparty/jboss-remoting.jar"/>
<classpathentry kind="lib" path="thirdparty/jaxb-xjc.jar"/>
<classpathentry kind="lib" path="thirdparty/jaxb-impl.jar"/>
- <classpathentry
sourcepath="/home/tdiesler/svn/jboss/common/common-core/trunk/src/main/java"
kind="lib" path="thirdparty/jboss-common.jar"/>
<classpathentry
sourcepath="/home/tdiesler/svn/jbossmc/trunk/deployers/src/main"
kind="lib" path="thirdparty/jboss-deployers.jar"/>
+ <classpathentry kind="lib"
path="thirdparty/jboss-common-core.jar"/>
+ <classpathentry kind="lib"
path="thirdparty/jboss-dependency.jar"/>
+ <classpathentry kind="lib"
path="thirdparty/jboss-logging-spi.jar"/>
<classpathentry kind="output" path="output-eclipse"/>
</classpath>
Modified: trunk/src/ant/build-thirdparty.xml
===================================================================
--- trunk/src/ant/build-thirdparty.xml 2006-11-04 14:49:44 UTC (rev 1369)
+++ trunk/src/ant/build-thirdparty.xml 2006-11-04 15:38:09 UTC (rev 1370)
@@ -34,7 +34,8 @@
<get src="${jboss.repository}/hibernate/${hibernate}/lib/hibernate3.jar"
dest="${thirdparty.dir}/hibernate3.jar" usetimestamp="true"
verbose="true"/>
<get src="${jboss.repository}/ibm-wsdl4j/${ibm-wsdl4j}/lib/wsdl4j.jar"
dest="${thirdparty.dir}/wsdl4j.jar" usetimestamp="true"
verbose="true"/>
<get src="${jboss.repository}/javassist/${javassist}/lib/javassist.jar"
dest="${thirdparty.dir}/javassist.jar" usetimestamp="true"
verbose="true"/>
- <get
src="${jboss.repository}/jboss/common/${jboss-common}/lib/jboss-common.jar"
dest="${thirdparty.dir}/jboss-common.jar" usetimestamp="true"
verbose="true"/>
+ <get
src="${jboss.repository}/jboss/common-core/${jboss-common-core}/lib/jboss-common-core.jar"
dest="${thirdparty.dir}/jboss-common-core.jar" usetimestamp="true"
verbose="true"/>
+ <get
src="${jboss.repository}/jboss/common-logging-spi/${jboss-common-logging}/lib/jboss-logging-spi.jar"
dest="${thirdparty.dir}/jboss-logging-spi.jar" usetimestamp="true"
verbose="true"/>
<get
src="${jboss.repository}/jboss/microcontainer/${jboss-microcontainer}/lib/jboss-container.jar"
dest="${thirdparty.dir}/jboss-container.jar" usetimestamp="true"
verbose="true"/>
<get
src="${jboss.repository}/jboss/microcontainer/${jboss-microcontainer}/lib/jboss-dependency.jar"
dest="${thirdparty.dir}/jboss-dependency.jar" usetimestamp="true"
verbose="true"/>
<get
src="${jboss.repository}/jboss/microcontainer/${jboss-microcontainer}/lib/jboss-deployers.jar"
dest="${thirdparty.dir}/jboss-deployers.jar" usetimestamp="true"
verbose="true"/>
@@ -69,10 +70,11 @@
<pathelement location="${thirdparty.dir}/jaxb-api.jar"/>
<pathelement location="${thirdparty.dir}/jaxb-impl.jar"/>
<pathelement location="${thirdparty.dir}/jaxb-xjc.jar"/>
- <pathelement location="${thirdparty.dir}/jboss-common.jar"/>
+ <pathelement location="${thirdparty.dir}/jboss-common-core.jar"/>
<pathelement location="${thirdparty.dir}/jboss-container.jar"/>
<pathelement location="${thirdparty.dir}/jboss-dependency.jar"/>
<pathelement location="${thirdparty.dir}/jboss-deployers.jar"/>
+ <pathelement location="${thirdparty.dir}/jboss-logging-spi.jar"/>
<pathelement
location="${thirdparty.dir}/jboss-microcontainer.jar"/>
<pathelement location="${thirdparty.dir}/jboss-remoting.jar"/>
<pathelement location="${thirdparty.dir}/jboss-xml-binding.jar"/>
Modified: trunk/src/main/etc/jbossws-component-info.xml
===================================================================
--- trunk/src/main/etc/jbossws-component-info.xml 2006-11-04 14:49:44 UTC (rev 1369)
+++ trunk/src/main/etc/jbossws-component-info.xml 2006-11-04 15:38:09 UTC (rev 1370)
@@ -26,6 +26,9 @@
<import componentref="jboss/remoting">
<compatible version="@jboss-remoting@"/>
</import>
+ <import componentref="sun-jaxb">
+ <compatible version="@sun-jaxb@"/>
+ </import>
<export>
<include input="jboss-jaxrpc.jar"/>
Modified: trunk/src/main/java/org/jboss/ws/binding/EndpointInvocation.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/binding/EndpointInvocation.java 2006-11-04 14:49:44
UTC (rev 1369)
+++ trunk/src/main/java/org/jboss/ws/binding/EndpointInvocation.java 2006-11-04 15:38:09
UTC (rev 1370)
@@ -42,7 +42,7 @@
import org.jboss.ws.jaxrpc.ParameterWrapping;
import org.jboss.ws.metadata.OperationMetaData;
import org.jboss.ws.metadata.ParameterMetaData;
-import org.jboss.ws.metadata.ParameterMetaData.WrappedParameter;
+import org.jboss.ws.metadata.WrappedParameter;
import org.jboss.ws.soap.SOAPContentElement;
import org.jboss.ws.utils.HolderUtils;
import org.jboss.ws.utils.JavaUtils;
@@ -337,12 +337,12 @@
{
try
{
- if (param.index >= 0)
- outParameters.put(param.index,
targetParameterTypes[param.index].newInstance());
+ if (param.getIndex() >= 0)
+ outParameters.put(param.getIndex(),
targetParameterTypes[param.getIndex()].newInstance());
}
catch (Exception e)
{
- throw new WSException("Could not add output param: " +
param.name, e);
+ throw new WSException("Could not add output param: " +
param.getName(), e);
}
}
Modified: trunk/src/main/java/org/jboss/ws/common/CommonSOAPBinding.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/common/CommonSOAPBinding.java 2006-11-04 14:49:44 UTC
(rev 1369)
+++ trunk/src/main/java/org/jboss/ws/common/CommonSOAPBinding.java 2006-11-04 15:38:09 UTC
(rev 1370)
@@ -225,7 +225,7 @@
}
}
- // Set the SOAPAction
+ // Set the SOAPAction
setSOAPActionHeader(opMetaData, reqMessage);
return reqMessage;
@@ -537,11 +537,7 @@
// Translate the SOAPFault to an exception and throw it
if (soapBodyElement instanceof SOAPFaultImpl)
- {
- SOAPFaultImpl soapFault = (SOAPFaultImpl)soapBodyElement;
- SOAPFaultException faultEx =
SOAPFaultExceptionHelper.getSOAPFaultException(soapFault);
- throw faultEx;
- }
+ throwFaultException((SOAPFaultImpl)soapBodyElement);
// Extract unbound OUT headers
if (unboundHeaders != null)
@@ -772,7 +768,7 @@
// When a potential xop parameter is detected and MTOM is enabled
// we flag the SOAP message as a XOP package
- if (paramMetaData.isXOP() && XOPContext.isMTOMEnabled())
+ if (paramMetaData.isXOP() && XOPContext.isMTOMEnabled())
{
log.trace("Add parameter as XOP");
CommonMessageContext msgContext =
MessageContextAssociation.peekMessageContext();
@@ -879,6 +875,8 @@
return soapContentElement;
}
+ abstract protected void throwFaultException(SOAPFaultImpl fault) throws Exception;
+
private void handleException(Exception ex) throws BindingException
{
if (ex instanceof RuntimeException)
Modified: trunk/src/main/java/org/jboss/ws/deployment/JSR109MetaDataBuilder.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/deployment/JSR109MetaDataBuilder.java 2006-11-04
14:49:44 UTC (rev 1369)
+++ trunk/src/main/java/org/jboss/ws/deployment/JSR109MetaDataBuilder.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -50,7 +50,7 @@
import org.jboss.ws.metadata.ServiceMetaData;
import org.jboss.ws.metadata.TypeMappingMetaData;
import org.jboss.ws.metadata.TypesMetaData;
-import org.jboss.ws.metadata.ParameterMetaData.WrappedParameter;
+import org.jboss.ws.metadata.WrappedParameter;
import org.jboss.ws.metadata.jaxrpcmapping.ExceptionMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaXmlTypeMapping;
Modified: trunk/src/main/java/org/jboss/ws/deployment/JSR181ClientMetaDataBuilder.java
===================================================================
---
trunk/src/main/java/org/jboss/ws/deployment/JSR181ClientMetaDataBuilder.java 2006-11-04
14:49:44 UTC (rev 1369)
+++
trunk/src/main/java/org/jboss/ws/deployment/JSR181ClientMetaDataBuilder.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -46,7 +46,8 @@
{
log.debug("START: rebuildMetaData");
- initialize(epMetaData.getClassLoader());
+ // Clear the java types, etc.
+ resetMetaDataBuilder(epMetaData.getClassLoader());
// Nuke parameterStyle
epMetaData.setParameterStyle(null);
@@ -76,7 +77,8 @@
// Process @WebMethod
processWebMethods(epMetaData, wsClass, true);
- // Populate parameter xmlTypes
+ // Initialize types
+ createJAXBContext(epMetaData);
populateXmlTypes(epMetaData);
// Eager initialization
Modified: trunk/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilder.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilder.java 2006-11-04
14:49:44 UTC (rev 1369)
+++ trunk/src/main/java/org/jboss/ws/deployment/JSR181MetaDataBuilder.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -76,8 +76,9 @@
import org.jboss.ws.metadata.TypeMappingMetaData;
import org.jboss.ws.metadata.TypesMetaData;
import org.jboss.ws.metadata.UnifiedMetaData;
+import org.jboss.ws.metadata.WrappedParameter;
import org.jboss.ws.metadata.HandlerMetaData.HandlerType;
-import org.jboss.ws.metadata.ParameterMetaData.WrappedParameter;
+import org.jboss.ws.metadata.acessor.JAXBAccessor;
import org.jboss.ws.metadata.config.jaxws.WSEndpointConfigJAXWS;
import org.jboss.ws.metadata.j2ee.UnifiedHandlerMetaData;
import org.jboss.ws.metadata.jsr181.HandlerChainFactory;
@@ -127,7 +128,7 @@
{
WebService anWebService = (WebService)sepClass.getAnnotation(WebService.class);
if (anWebService == null)
- throw new WSException("Cannot obtain @WebService annotaion from: " +
sepClass.getName());
+ throw new WSException("Cannot obtain @WebService annotation from: " +
sepClass.getName());
try
{
@@ -142,12 +143,13 @@
throw new WSException("Interface does not have a @WebService
annotation: " + seiName);
}
+ // Clear the java types, etc.
+ resetMetaDataBuilder(udi.classLoader);
+
Class wsClass = (seiClass != null ? seiClass : sepClass);
WSDLUtils wsdlUtils = WSDLUtils.getInstance();
- initialize(udi.classLoader);
-
String name = anWebService.name();
if (name.length() == 0)
name = wsdlUtils.getJustClassName(wsClass);
@@ -193,7 +195,8 @@
boolean includeAllMethods = (wsClass == seiClass);
processWebMethods(sepMetaData, wsClass, includeAllMethods);
- // Populate parameter xmlTypes
+ // Initialize types
+ createJAXBContext(sepMetaData);
populateXmlTypes(sepMetaData);
// Process or generate WSDL
@@ -211,10 +214,10 @@
// Init the endpoint address
initEndpointAddress(udi, sepMetaData, linkName);
-
+
// replace the SOAP address
replaceAddressLocation(sepMetaData);
-
+
// Process an optional @SOAPMessageHandlers annotation
if (sepClass.isAnnotationPresent(SOAPMessageHandlers.class) ||
wsClass.isAnnotationPresent(SOAPMessageHandlers.class))
log.warn("@SOAPMessageHandlers is deprecated as of JSR-181 2.0 with no
replacement.");
@@ -248,7 +251,7 @@
}
}
- protected void initialize(ClassLoader loader)
+ protected void resetMetaDataBuilder(ClassLoader loader)
{
wrapperGenerator = new DynamicWrapperGenerator(loader);
javaTypes.clear();
@@ -256,22 +259,18 @@
jaxbCtx = null;
}
- protected JAXBRIContext getJAXBContext(EndpointMetaData epMetaData)
+ protected void createJAXBContext(EndpointMetaData epMetaData)
{
- if (jaxbCtx == null)
- {
- try
- {
- String targetNS = epMetaData.getInterfaceQName().getNamespaceURI();
- log.debug("JAXBContext [types=" + javaTypes + ",tns=" +
targetNS + "]");
- jaxbCtx = JAXBRIContext.newInstance(javaTypes.toArray(new Class[0]),
typeRefs, targetNS, false);
- }
- catch (JAXBException ex)
- {
- log.error("Cannot build JAXB context", ex);
- }
- }
- return jaxbCtx;
+ try
+ {
+ String targetNS = epMetaData.getInterfaceQName().getNamespaceURI();
+ log.debug("JAXBContext [types=" + javaTypes + ",tns=" + targetNS
+ "]");
+ jaxbCtx = JAXBRIContext.newInstance(javaTypes.toArray(new Class[0]), typeRefs,
targetNS, false);
+ }
+ catch (JAXBException ex)
+ {
+ throw new IllegalStateException("Cannot build JAXB context", ex);
+ }
}
protected void populateXmlTypes(EndpointMetaData epMetaData)
@@ -292,7 +291,6 @@
{
EndpointMetaData epMetaData =
paramMetaData.getOperationMetaData().getEndpointMetaData();
TypesMetaData types = epMetaData.getServiceMetaData().getTypesMetaData();
- JAXBRIContext jaxbCtx = getJAXBContext(epMetaData);
QName xmlName = paramMetaData.getXmlName();
QName xmlType = paramMetaData.getXmlType();
@@ -301,16 +299,29 @@
if (xmlType == null)
{
- xmlType = jaxbCtx.getTypeName(new TypeReference(xmlName, javaType));
- if (xmlType == null)
- log.warn("Cannot obtain xml type for: [xmlName=" + xmlName +
",javaName=" + javaName + "]");
-
- if (xmlType != null)
+ try
{
- paramMetaData.setXmlType(xmlType);
- types.addTypeMapping(new TypeMappingMetaData(types, xmlType, javaName));
+ xmlType = jaxbCtx.getTypeName(new TypeReference(xmlName, javaType));
}
+ catch (IllegalArgumentException e)
+ {
+ throw new IllegalStateException("Cannot obtain xml type for:
[xmlName=" + xmlName + ",javaName=" + javaName + "]");
+ }
+
+ /* Anonymous type.
+ *
+ * Currently the design of our stack is based on the
+ * notion of their always being a unique type. In order to lookup the
+ * appropriate (de)serializer you must have a type. So we use a fake
+ * name. This is an illegal NCName, so it shouldn't collide.
+ */
+ if (xmlType == null)
+ xmlType = new QName(xmlName.getNamespaceURI(), ">" +
xmlName.getLocalPart());
+
+ paramMetaData.setXmlType(xmlType);
}
+
+ types.addTypeMapping(new TypeMappingMetaData(types, xmlType, javaName));
}
protected void processSOAPBinding(EndpointMetaData epMetaData, Class wsClass)
@@ -455,14 +466,14 @@
String variable = convertToVariable(wrappedElementName.getLocalPart());
WrappedParameter wrappedParameter = new WrappedParameter(wrappedElementName,
javaTypeName, variable, i);
- wrappedParameter.typeArguments = convertTypeArguments(javaType,
genericType);
+ wrappedParameter.setTypeArguments(convertTypeArguments(javaType,
genericType));
if (mode != ParameterMode.OUT)
wrappedParameters.add(wrappedParameter);
if (mode != ParameterMode.IN)
{
wrappedOutputParameters.add(wrappedParameter);
- wrappedParameter.holder = true;
+ wrappedParameter.setHolder(true);
}
}
else
@@ -497,7 +508,7 @@
if (isWrapped)
{
WrappedParameter wrapped = new WrappedParameter(xmlName, returnTypeName,
convertToVariable(xmlName.getLocalPart()), -1);
- wrapped.typeArguments = convertTypeArguments(returnType, genericReturnType);
+ wrapped.setTypeArguments(convertTypeArguments(returnType,
genericReturnType));
// insert at the beginning just for prettiness
wrappedOutputParameters.add(0, wrapped);
@@ -579,6 +590,7 @@
}
ParameterMetaData retMetaData = new ParameterMetaData(operation, xmlName, xmlType,
responseWrapperType);
+ retMetaData.setAccessorFactoryCreator(JAXBAccessor.FACTORY_CREATOR);
operation.setReturnParameter(retMetaData);
return retMetaData;
@@ -610,6 +622,7 @@
// JAX-WS p.37 pg.1, the annotation only affects the element name, not the type
name
ParameterMetaData wrapperParameter = new ParameterMetaData(operation, xmlName,
xmlType, requestWrapperType);
+ wrapperParameter.setAccessorFactoryCreator(JAXBAccessor.FACTORY_CREATOR);
operation.addParameter(wrapperParameter);
return wrapperParameter;
@@ -721,54 +734,66 @@
private QName getWebParamName(OperationMetaData opMetaData, int index, Class javaType,
WebParam webParam)
{
- QName xmlName = null;
- String namespaceURI = opMetaData.getQName().getNamespaceURI();
+ String namespace = null ;
+ String name = null;
+ boolean header = false;
+
if (webParam != null)
{
if (webParam.targetNamespace().length() > 0)
- namespaceURI = webParam.targetNamespace();
+ namespace = webParam.targetNamespace();
if (webParam.name().length() > 0)
- {
- if (opMetaData.getStyle() != Style.RPC || webParam.header())
- xmlName = new QName(namespaceURI, webParam.name());
- else xmlName = new QName(webParam.name());
- }
+ name = webParam.name();
+
+ header = webParam.header();
}
- if (xmlName == null && opMetaData.isDocumentBare())
- xmlName = new QName(namespaceURI, opMetaData.getQName().getLocalPart());
+ // Bare and headers must be qualified
+ if (namespace == null && (opMetaData.isDocumentBare() || header))
+ namespace = opMetaData.getQName().getNamespaceURI();
- if (xmlName == null)
- xmlName = (opMetaData.isDocumentWrapped()) ? new QName(namespaceURI,
"arg" + index) : new QName("arg" + index);
+ // RPC body parts must have no namespace
+ else if (opMetaData.isRPCLiteral() && !header)
+ namespace = null;
- return xmlName;
+ // Bare uses the operation name as the default, everything else is generated
+ if (name == null)
+ name = opMetaData.isDocumentBare() && !header ?
opMetaData.getQName().getLocalPart() : "arg" + index;
+
+ return (namespace != null) ? new QName(namespace, name) : new QName(name);
}
private QName getWebResultName(OperationMetaData opMetaData, Class javaType, WebResult
anWebResult)
{
- QName xmlName = null;
- String namespaceURI = opMetaData.getQName().getNamespaceURI();
+ String name = null;
+ String namespace = null;
+ boolean header = false;
if (anWebResult != null)
{
if (anWebResult.targetNamespace().length() > 0)
- namespaceURI = anWebResult.targetNamespace();
+ namespace = anWebResult.targetNamespace();
if (anWebResult.name().length() > 0)
- {
- if (opMetaData.getStyle() != Style.RPC || anWebResult.header())
- xmlName = new QName(namespaceURI, anWebResult.name());
- else xmlName = new QName(anWebResult.name());
- }
+ name = anWebResult.name();
+
+ header = anWebResult.header();
}
- if (xmlName == null && opMetaData.isDocumentBare())
- xmlName = new QName(namespaceURI, opMetaData.getResponseName().getLocalPart());
- if (xmlName == null)
- xmlName = (opMetaData.isDocumentWrapped() ? new QName(namespaceURI,
"return") : new QName("return"));
+ // Bare and headers must be qualified
+ if (namespace == null && (opMetaData.isDocumentBare() || header))
+ namespace = opMetaData.getQName().getNamespaceURI();
- return xmlName;
+ // RPC body parts must have no namespace
+ else if (opMetaData.isRPCLiteral() && !header)
+ namespace = null;
+
+ // Bare uses the operation name as the default, everything else is generated
+ if (name == null)
+ name = opMetaData.isDocumentBare() && !header ?
opMetaData.getResponseName().getLocalPart() : "return";
+
+ return (namespace != null) ? new QName(namespace, name) : new QName(name);
}
private void addFault(OperationMetaData omd, Class<?> exception)
@@ -898,7 +923,7 @@
{
String serviceName = serviceMetaData.getServiceName().getLocalPart();
- WSDLGenerator generator = new JAXBWSDLGenerator(getJAXBContext(epMetaData));
+ WSDLGenerator generator = new JAXBWSDLGenerator(jaxbCtx);
WSDLDefinitions wsdlDefinitions = generator.generate(serviceMetaData);
ServerConfigFactory factory = ServerConfigFactory.getInstance();
@@ -925,5 +950,4 @@
}
}
}
-
-}
+}
\ No newline at end of file
Modified: trunk/src/main/java/org/jboss/ws/jaxrpc/ParameterWrapping.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/jaxrpc/ParameterWrapping.java 2006-11-04 14:49:44 UTC
(rev 1369)
+++ trunk/src/main/java/org/jboss/ws/jaxrpc/ParameterWrapping.java 2006-11-04 15:38:09 UTC
(rev 1370)
@@ -49,7 +49,7 @@
import org.jboss.ws.metadata.ServiceMetaData;
import org.jboss.ws.metadata.TypeMappingMetaData;
import org.jboss.ws.metadata.TypesMetaData;
-import org.jboss.ws.metadata.ParameterMetaData.WrappedParameter;
+import org.jboss.ws.metadata.WrappedParameter;
import org.jboss.ws.utils.HolderUtils;
import org.jboss.ws.utils.JavaUtils;
@@ -111,11 +111,8 @@
Object reqStruct = reqStructType.newInstance();
for (WrappedParameter param : wrappedParameters)
{
- PropertyDescriptor pd = new PropertyDescriptor(param.variable,
reqStructType);
- Method method = pd.getWriteMethod();
- Object value = holderValue(methodParams[param.index]);
- log.debug(" " + method.getName() + ": " + (value != null
? value.getClass().getName() : null));
- method.invoke(reqStruct, value);
+ Object value = holderValue(methodParams[param.getIndex()]);
+ param.accessor().set(reqStruct, value);
}
return reqStruct;
@@ -146,23 +143,19 @@
log.debug("unwrapRequestParameters: " + reqStructType.getName());
try
{
- for (ParameterMetaData.WrappedParameter param : wrappedParameters)
+ for (WrappedParameter param : wrappedParameters)
{
- PropertyDescriptor pd = new PropertyDescriptor(param.variable,
reqStructType);
- Method method = pd.getReadMethod();
- Class targetType = targetParameterTypes[param.index];
+ Class targetType = targetParameterTypes[param.getIndex()];
+ Object value = param.accessor().get(reqStruct);
- Object value = method.invoke(reqStruct);
-
// INOUT Parameter
if (HolderUtils.isHolderType(targetType))
{
value = HolderUtils.createHolderInstance(value, targetType);
- outParameters.put(param.index, value);
+ outParameters.put(param.getIndex(), value);
}
- log.debug(" " + method.getName() + ": " + (value != null
? value.getClass().getName() : null));
- methodParams[param.index] = value;
+ methodParams[param.getIndex()] = value;
}
}
catch (RuntimeException rte)
@@ -189,18 +182,15 @@
}
log.debug("wrapResponseParameter: " + resStructType.getName());
- List<ParameterMetaData.WrappedParameter> wrappedParameters =
returnMetaData.getWrappedParameters();
+ List<WrappedParameter> wrappedParameters =
returnMetaData.getWrappedParameters();
try
{
Object resStruct = resStructType.newInstance();
- for (ParameterMetaData.WrappedParameter param : wrappedParameters)
+ for (WrappedParameter param : wrappedParameters)
{
- PropertyDescriptor pd = new PropertyDescriptor(param.variable,
resStructType);
- Method method = pd.getWriteMethod();
- Object value = (param.index < 0) ? returnValue :
holderValue(outParameters.get(param.index));
- log.debug(" " + method.getName() + ": " + (value != null
? value.getClass().getName() : null));
- method.invoke(resStruct, value);
+ Object value = (param.getIndex() < 0) ? returnValue :
holderValue(outParameters.get(param.getIndex()));
+ param.accessor().set(resStruct, value);
}
return resStruct;
}
@@ -231,20 +221,17 @@
{
for (WrappedParameter param : wrappedParameters)
{
- PropertyDescriptor pd = new PropertyDescriptor(param.variable,
resStructType);
- Method method = pd.getReadMethod();
- Object value = method.invoke(resStruct, new Object[] {});
- log.debug(" " + method.getName() + ": " + (value !=
null ? value.getClass().getName() : null));
- if (param.index < 0)
+ Object value = param.accessor().get(resStruct);
+ if (param.getIndex() < 0)
{
retValue = value;
}
else
{
- Class targetType = targetTypes[param.index];
+ Class targetType = targetTypes[param.getIndex()];
if (HolderUtils.isHolderType(targetType))
value = HolderUtils.createHolderInstance(value, targetType);
- methodParams[param.index] = value;
+ methodParams[param.getIndex()] = value;
}
}
}
@@ -310,11 +297,11 @@
for (WrappedParameter param : wrappedParameters)
{
- CtField field = new CtField(pool.get(param.type), param.variable, clazz);
+ CtField field = new CtField(pool.get(param.getType()), param.getVariable(),
clazz);
field.setModifiers(Modifier.PRIVATE);
clazz.addField(field);
- clazz.addMethod(CtNewMethod.getter("get" +
JavaUtils.capitalize(param.variable), field));
- clazz.addMethod(CtNewMethod.setter("set" +
JavaUtils.capitalize(param.variable), field));
+ clazz.addMethod(CtNewMethod.getter("get" +
JavaUtils.capitalize(param.getVariable()), field));
+ clazz.addMethod(CtNewMethod.setter("set" +
JavaUtils.capitalize(param.getVariable()), field));
}
wrapperType = (Class)pool.toClass(clazz, loader);
Modified: trunk/src/main/java/org/jboss/ws/jaxrpc/SOAP11BindingJAXRPC.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/jaxrpc/SOAP11BindingJAXRPC.java 2006-11-04 14:49:44
UTC (rev 1369)
+++ trunk/src/main/java/org/jboss/ws/jaxrpc/SOAP11BindingJAXRPC.java 2006-11-04 15:38:09
UTC (rev 1370)
@@ -23,14 +23,16 @@
//$Id:SOAP11BindingJAXRPC.java 1054 2006-09-26 10:33:43Z thomas.diesler(a)jboss.com $
+import javax.xml.rpc.soap.SOAPFaultException;
import javax.xml.soap.SOAPMessage;
import org.jboss.ws.common.CommonSOAP11Binding;
import org.jboss.ws.metadata.OperationMetaData;
+import org.jboss.ws.soap.SOAPFaultImpl;
/**
- * The JAXRPC SOAP11Binding
- *
+ * The JAXRPC SOAP11Binding
+ *
* @author Thomas.Diesler(a)jboss.com
* @since 20-Sep-2006
*/
@@ -43,4 +45,10 @@
{
delegate.setSOAPActionHeader(opMetaData, reqMessage);
}
+
+ @Override
+ protected void throwFaultException(SOAPFaultImpl fault) throws Exception
+ {
+ throw SOAPFaultExceptionHelper.getSOAPFaultException(fault);
+ }
}
Modified: trunk/src/main/java/org/jboss/ws/jaxrpc/SOAP12BindingJAXRPC.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/jaxrpc/SOAP12BindingJAXRPC.java 2006-11-04 14:49:44
UTC (rev 1369)
+++ trunk/src/main/java/org/jboss/ws/jaxrpc/SOAP12BindingJAXRPC.java 2006-11-04 15:38:09
UTC (rev 1370)
@@ -27,10 +27,11 @@
import org.jboss.ws.common.CommonSOAP12Binding;
import org.jboss.ws.metadata.OperationMetaData;
+import org.jboss.ws.soap.SOAPFaultImpl;
/**
- * The JAXRPC SOAP12Binding
- *
+ * The JAXRPC SOAP12Binding
+ *
* @author Thomas.Diesler(a)jboss.com
* @since 20-Sep-2006
*/
@@ -43,4 +44,10 @@
{
delegate.setSOAPActionHeader(opMetaData, reqMessage);
}
+
+ @Override
+ protected void throwFaultException(SOAPFaultImpl fault) throws Exception
+ {
+ throw SOAPFaultExceptionHelper.getSOAPFaultException(fault);
+ }
}
Modified: trunk/src/main/java/org/jboss/ws/jaxws/DynamicWrapperGenerator.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/jaxws/DynamicWrapperGenerator.java 2006-11-04
14:49:44 UTC (rev 1369)
+++ trunk/src/main/java/org/jboss/ws/jaxws/DynamicWrapperGenerator.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -47,7 +47,9 @@
import org.jboss.ws.metadata.FaultMetaData;
import org.jboss.ws.metadata.OperationMetaData;
import org.jboss.ws.metadata.ParameterMetaData;
-import org.jboss.ws.metadata.ParameterMetaData.WrappedParameter;
+import org.jboss.ws.metadata.TypeMappingMetaData;
+import org.jboss.ws.metadata.TypesMetaData;
+import org.jboss.ws.metadata.WrappedParameter;
import org.jboss.ws.utils.JavaUtils;
import org.jboss.ws.utils.JavassistUtils;
@@ -79,26 +81,28 @@
return;
List<WrappedParameter> wrappedParameters = pmd.getWrappedParameters();
- OperationMetaData operationMetaData = pmd.getOperationMetaData();
+ OperationMetaData opMetaData = pmd.getOperationMetaData();
- if (operationMetaData.isDocumentWrapped() == false)
+ if (opMetaData.isDocumentWrapped() == false)
throw new WSException("Operation is not document/literal (wrapped)");
if (wrappedParameters == null)
throw new WSException("Cannot generate a type when their is no wrapper
parameters");
- if (log.isDebugEnabled())
- log.debug("Generating wrapper: " + wrapperName);
+ log.debug("Generating wrapper: " + wrapperName);
+
+ QName xmlName = pmd.getXmlName();
+ QName xmlType = pmd.getXmlType();
try
{
CtClass clazz = pool.makeClass(wrapperName);
clazz.getClassFile().setVersionToJava5();
- addClassAnnotations(clazz, pmd.getXmlName(), pmd.getXmlType(), null);
+ addClassAnnotations(clazz, xmlName, xmlType, null);
for (WrappedParameter parameter : wrappedParameters)
{
- addProperty(clazz, parameter.type, parameter.name, parameter.variable,
parameter.typeArguments);
+ addProperty(clazz, parameter.getType(), parameter.getName(),
parameter.getVariable(), parameter.getTypeArguments());
}
pool.toClass(clazz, loader);
}
@@ -106,6 +110,10 @@
{
throw new WSException("Could not generate wrapper type: " +
wrapperName, e);
}
+
+ // Add the generated type to the types meta data
+ TypesMetaData types =
opMetaData.getEndpointMetaData().getServiceMetaData().getTypesMetaData();
+ types.addTypeMapping(new TypeMappingMetaData(types, xmlType, wrapperName));
}
public void generate(FaultMetaData fmd)
@@ -223,4 +231,4 @@
annotation.addParameter("value", XmlAccessType.FIELD);
annotation.markClass(clazz);
}
-}
\ No newline at end of file
+}
Modified: trunk/src/main/java/org/jboss/ws/jaxws/core/SOAP11BindingJAXWS.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/jaxws/core/SOAP11BindingJAXWS.java 2006-11-04
14:49:44 UTC (rev 1369)
+++ trunk/src/main/java/org/jboss/ws/jaxws/core/SOAP11BindingJAXWS.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -31,15 +31,17 @@
import javax.xml.soap.SOAPMessage;
import javax.xml.ws.handler.Handler;
import javax.xml.ws.soap.SOAPBinding;
+import javax.xml.ws.soap.SOAPFaultException;
import org.jboss.ws.Constants;
import org.jboss.ws.common.CommonSOAP11Binding;
import org.jboss.ws.metadata.OperationMetaData;
import org.jboss.ws.metadata.HandlerMetaData.HandlerType;
+import org.jboss.ws.soap.SOAPFaultImpl;
/**
- * The JAXWS SOAP11Binding
- *
+ * The JAXWS SOAP11Binding
+ *
* @author Thomas.Diesler(a)jboss.com
* @since 04-Jul-2006
*/
@@ -86,4 +88,10 @@
{
delegate.setHandlerChain(handlerChain);
}
+
+ @Override
+ protected void throwFaultException(SOAPFaultImpl fault) throws Exception
+ {
+ throw new SOAPFaultException(fault);
+ }
}
Modified: trunk/src/main/java/org/jboss/ws/jaxws/core/SOAP12BindingJAXWS.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/jaxws/core/SOAP12BindingJAXWS.java 2006-11-04
14:49:44 UTC (rev 1369)
+++ trunk/src/main/java/org/jboss/ws/jaxws/core/SOAP12BindingJAXWS.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -32,15 +32,17 @@
import javax.xml.ws.WebServiceException;
import javax.xml.ws.handler.Handler;
import javax.xml.ws.soap.SOAPBinding;
+import javax.xml.ws.soap.SOAPFaultException;
import org.jboss.ws.Constants;
import org.jboss.ws.common.CommonSOAP12Binding;
import org.jboss.ws.metadata.OperationMetaData;
import org.jboss.ws.metadata.HandlerMetaData.HandlerType;
+import org.jboss.ws.soap.SOAPFaultImpl;
/**
- * The SOAP11Binding
- *
+ * The SOAP11Binding
+ *
* @author Thomas.Diesler(a)jboss.com
* @since 04-Jul-2006
*/
@@ -94,4 +96,10 @@
{
delegate.setHandlerChain(handlerChain);
}
+
+ @Override
+ protected void throwFaultException(SOAPFaultImpl fault) throws Exception
+ {
+ throw new SOAPFaultException(fault);
+ }
}
Modified: trunk/src/main/java/org/jboss/ws/metadata/ParameterMetaData.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/metadata/ParameterMetaData.java 2006-11-04 14:49:44
UTC (rev 1369)
+++ trunk/src/main/java/org/jboss/ws/metadata/ParameterMetaData.java 2006-11-04 15:38:09
UTC (rev 1370)
@@ -38,6 +38,8 @@
import org.jboss.ws.WSException;
import org.jboss.ws.jaxrpc.ParameterWrapping;
import org.jboss.ws.jaxws.DynamicWrapperGenerator;
+import org.jboss.ws.metadata.WrappedParameter.AccessorFactory;
+import org.jboss.ws.metadata.acessor.ReflectiveMethodAccessor;
import org.jboss.ws.utils.HolderUtils;
import org.jboss.ws.utils.JavaUtils;
@@ -71,7 +73,13 @@
// SOAP-ENC:Array
private boolean soapArrayParam;
private QName soapArrayCompType;
+ private AccessorFactoryCreator accessorFactoryCreator =
ReflectiveMethodAccessor.FACTORY_CREATOR;
+ public static interface AccessorFactoryCreator
+ {
+ public AccessorFactory create(ParameterMetaData parameter);
+ }
+
public ParameterMetaData(OperationMetaData opMetaData, QName xmlName, QName xmlType,
String javaTypeName)
{
this(opMetaData, xmlName, javaTypeName);
@@ -94,34 +102,6 @@
this.javaTypeName = javaTypeName;
}
- public static class WrappedParameter
- {
- public static final int RETURN = -1;
- public QName name;
- public String type;
- public String[] typeArguments;
- public String variable;
- public boolean holder = false;
- public int index = -2;
-
- public WrappedParameter()
- {
- }
-
- public WrappedParameter(QName name, String type, String variable, int index)
- {
- this.name = name;
- this.type = type;
- this.variable = variable;
- this.index = index;
- }
-
- public String toString()
- {
- return "[name = " + name + ",type = " + type +
",typeArgs = " + JavaUtils.printArray(typeArguments) + ",variable = "
+ variable + ",index = " + index + "]";
- }
- }
-
private static boolean matchParameter(Method method, int index, Class expectedType,
Set<Integer> matches, boolean exact, boolean holder)
{
Class returnType = method.getReturnType();
@@ -177,6 +157,7 @@
if (xmlType == null)
throw new IllegalArgumentException("Invalid null xmlType");
+ // Remove potential prefix
if (xmlType.getNamespaceURI().length() > 0)
this.xmlType = new QName(xmlType.getNamespaceURI(), xmlType.getLocalPart());
else
@@ -361,8 +342,15 @@
// At some point we want to make this plugable, hardcoding
// references like this is not very flexible.
if (opMetaData.isDocumentWrapped())
+ {
(new DynamicWrapperGenerator(getClassLoader())).generate(this);
+ // Initialize accessors
+ AccessorFactory factory = accessorFactoryCreator.create(this);
+ for (WrappedParameter wrapped : wrappedParameters)
+ wrapped.setAccessor(factory.create(wrapped));
+ }
+
// Initialize the cache
getJavaType();
}
@@ -388,15 +376,15 @@
// Wrapped type
for (WrappedParameter wrapped : wrappedParameters)
{
- String typeName = wrapped.type;
+ String typeName = wrapped.getType();
try
{
Class type = (typeName != null) ? JavaUtils.loadJavaType(typeName, loader)
- : ParameterWrapping.getWrappedType(wrapped.variable, wrapperType);
+ : ParameterWrapping.getWrappedType(wrapped.getVariable(),
wrapperType);
if (type == null)
return false;
- if (! matchParameter(method, wrapped.index, type, matches, exact,
wrapped.holder))
+ if (! matchParameter(method, wrapped.getIndex(), type, matches, exact,
wrapped.isHolder()))
return false;
}
catch (Exception ex)
@@ -409,6 +397,11 @@
return true;
}
+ public void setAccessorFactoryCreator(AccessorFactoryCreator accessorFactoryCreator)
+ {
+ this.accessorFactoryCreator = accessorFactoryCreator;
+ }
+
public String toString()
{
boolean isReturn = (opMetaData.getReturnParameter() == this);
@@ -441,4 +434,4 @@
return buffer.toString();
}
-}
\ No newline at end of file
+}
Copied: trunk/src/main/java/org/jboss/ws/metadata/WrappedParameter.java (from rev 1366,
branches/JEE5_TCK/src/main/java/org/jboss/ws/metadata/WrappedParameter.java)
===================================================================
--- branches/JEE5_TCK/src/main/java/org/jboss/ws/metadata/WrappedParameter.java 2006-11-04
13:15:18 UTC (rev 1366)
+++ trunk/src/main/java/org/jboss/ws/metadata/WrappedParameter.java 2006-11-04 15:38:09
UTC (rev 1370)
@@ -0,0 +1,138 @@
+/*
+ * 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.ws.metadata;
+
+import javax.xml.namespace.QName;
+
+import org.jboss.ws.utils.JavaUtils;
+
+/**
+ * WrappedParameter represents a document/literal wrapped parameter.
+ *
+ * @author <a href="jason.greene(a)jboss.com">Jason T. Greene</a>
+ * @version $Revision$
+ */
+public class WrappedParameter
+{
+ public static final int RETURN = -1;
+ private QName name;
+ private String type;
+ private String[] typeArguments;
+ private String variable;
+ private boolean holder = false;
+ private int index = -2;
+ private Accessor accessor;
+
+ public static interface AccessorFactory
+ {
+ public Accessor create(WrappedParameter parameter);
+ }
+
+ public static interface Accessor
+ {
+ public void set(Object bean, Object value);
+ public Object get(Object bean);
+ }
+
+ public WrappedParameter(QName name, String type, String variable, int index)
+ {
+ this.setName(name);
+ this.setType(type);
+ this.setVariable(variable);
+ this.setIndex(index);
+ }
+
+ public Accessor accessor()
+ {
+ return accessor;
+ }
+
+ public void setName(QName name)
+ {
+ this.name = name;
+ }
+
+ public QName getName()
+ {
+ return name;
+ }
+
+ public void setType(String type)
+ {
+ this.type = type;
+ }
+
+ public String getType()
+ {
+ return type;
+ }
+
+ public void setTypeArguments(String[] typeArguments)
+ {
+ this.typeArguments = typeArguments;
+ }
+
+ public String[] getTypeArguments()
+ {
+ return typeArguments;
+ }
+
+ public void setVariable(String variable)
+ {
+ this.variable = variable;
+ }
+
+ public String getVariable()
+ {
+ return variable;
+ }
+
+ public void setHolder(boolean holder)
+ {
+ this.holder = holder;
+ }
+
+ public boolean isHolder()
+ {
+ return holder;
+ }
+
+ public void setIndex(int index)
+ {
+ this.index = index;
+ }
+
+ public int getIndex()
+ {
+ return index;
+ }
+
+ void setAccessor(Accessor accessor)
+ {
+ this.accessor = accessor;
+ }
+
+ public String toString()
+ {
+ return "[name = " + getName() + ", type = " + getType() +
", typeArgs = " + JavaUtils.printArray(getTypeArguments()) + ", variable =
" + getVariable() + ", index = " + getIndex() + "]";
+ }
+}
\ No newline at end of file
Copied: trunk/src/main/java/org/jboss/ws/metadata/acessor (from rev 1366,
branches/JEE5_TCK/src/main/java/org/jboss/ws/metadata/acessor)
Deleted: trunk/src/main/java/org/jboss/ws/metadata/acessor/JAXBAccessor.java
===================================================================
---
branches/JEE5_TCK/src/main/java/org/jboss/ws/metadata/acessor/JAXBAccessor.java 2006-11-04
13:15:18 UTC (rev 1366)
+++ trunk/src/main/java/org/jboss/ws/metadata/acessor/JAXBAccessor.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -1,125 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata.acessor;
-
-import javax.xml.bind.JAXBException;
-import javax.xml.namespace.QName;
-
-import org.jboss.ws.WSException;
-import org.jboss.ws.metadata.ParameterMetaData;
-import org.jboss.ws.metadata.WrappedParameter;
-import org.jboss.ws.metadata.ParameterMetaData.AccessorFactoryCreator;
-import org.jboss.ws.metadata.WrappedParameter.Accessor;
-import org.jboss.ws.metadata.WrappedParameter.AccessorFactory;
-
-import com.sun.xml.bind.api.AccessorException;
-import com.sun.xml.bind.api.JAXBRIContext;
-import com.sun.xml.bind.api.RawAccessor;
-
-/**
- * A JAXB object accessor.
- *
- * @author <a href="jason.greene(a)jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
-@SuppressWarnings("unchecked")
-public class JAXBAccessor implements Accessor
-{
- private RawAccessor accessor;
-
- public static AccessorFactoryCreator FACTORY_CREATOR = new AccessorFactoryCreator()
- {
- public AccessorFactory create(ParameterMetaData parameter)
- {
- final Class clazz = parameter.getJavaType();
- final JAXBRIContext ctx;
-
- try
- {
- ctx = (JAXBRIContext) JAXBRIContext.newInstance(new Class[]{clazz});
- }
- catch (JAXBException e)
- {
- WSException ex = new WSException(e.getMessage());
- ex.setStackTrace(e.getStackTrace());
- throw ex;
- }
-
- return new AccessorFactory()
- {
- public Accessor create(WrappedParameter parameter)
- {
- RawAccessor<Object,Object> accessor;
- try
- {
- QName name = parameter.getName();
- accessor = ctx.getElementPropertyAccessor(clazz,
name.getNamespaceURI(), name.getLocalPart());
- }
- catch (Throwable t)
- {
- WSException ex = new WSException(t.getMessage());
- ex.setStackTrace(t.getStackTrace());
- throw ex;
- }
-
- if (accessor == null)
- throw new IllegalStateException("Could not obtain accessor for
parameter: " + parameter);
-
- return new JAXBAccessor(accessor);
- }
- };
- }
- };
-
- private JAXBAccessor(RawAccessor accessor)
- {
- this.accessor = accessor;
- }
-
- public Object get(Object bean)
- {
- try
- {
- return accessor.get(bean);
- }
- catch (AccessorException a)
- {
- WSException ex = new WSException(a.getMessage());
- ex.setStackTrace(a.getStackTrace());
- throw ex;
- }
- }
-
- public void set(Object bean, Object value)
- {
- try
- {
- accessor.set(bean, value);
- }
- catch (AccessorException a)
- {
- WSException ex = new WSException(a.getMessage());
- ex.setStackTrace(a.getStackTrace());
- throw ex;
- }
- }
-}
\ No newline at end of file
Copied: trunk/src/main/java/org/jboss/ws/metadata/acessor/JAXBAccessor.java (from rev
1366, branches/JEE5_TCK/src/main/java/org/jboss/ws/metadata/acessor/JAXBAccessor.java)
Deleted: trunk/src/main/java/org/jboss/ws/metadata/acessor/ReflectiveMethodAccessor.java
===================================================================
---
branches/JEE5_TCK/src/main/java/org/jboss/ws/metadata/acessor/ReflectiveMethodAccessor.java 2006-11-04
13:15:18 UTC (rev 1366)
+++
trunk/src/main/java/org/jboss/ws/metadata/acessor/ReflectiveMethodAccessor.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -1,105 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.ws.metadata.acessor;
-
-import java.beans.PropertyDescriptor;
-import java.lang.reflect.Method;
-
-import org.jboss.ws.WSException;
-import org.jboss.ws.metadata.ParameterMetaData;
-import org.jboss.ws.metadata.WrappedParameter;
-import org.jboss.ws.metadata.ParameterMetaData.AccessorFactoryCreator;
-import org.jboss.ws.metadata.WrappedParameter.Accessor;
-import org.jboss.ws.metadata.WrappedParameter.AccessorFactory;
-
-/**
- * A simple JavaBean accessor that uses ordinary reflection.
- *
- * @author <a href="jason.greene(a)jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
-@SuppressWarnings("unchecked")
-public class ReflectiveMethodAccessor implements Accessor
-{
- private Method getter;
- private Method setter;
-
- public static AccessorFactoryCreator FACTORY_CREATOR = new AccessorFactoryCreator()
- {
- public AccessorFactory create(ParameterMetaData parameter)
- {
- final Class clazz = parameter.getJavaType();
-
- return new AccessorFactory()
- {
- public Accessor create(WrappedParameter parameter)
- {
- try
- {
- PropertyDescriptor pd = new PropertyDescriptor(parameter.getVariable(),
clazz);
- return new ReflectiveMethodAccessor(pd.getReadMethod(),
pd.getWriteMethod());
- }
- catch (Throwable t)
- {
- WSException ex = new WSException(t.getMessage());
- ex.setStackTrace(t.getStackTrace());
- throw ex;
- }
- }
- };
- }
- };
-
- private ReflectiveMethodAccessor(Method getter, Method setter)
- {
- this.getter = getter;
- this.setter = setter;
- }
-
- public Object get(Object bean)
- {
- try
- {
- return getter.invoke(bean);
- }
- catch (Throwable e)
- {
- WSException ex = new WSException(e.getMessage());
- ex.setStackTrace(ex.getStackTrace());
- throw ex;
- }
- }
-
- public void set(Object bean, Object value)
- {
- try
- {
- setter.invoke(bean, value);
- }
- catch (Throwable e)
- {
- WSException ex = new WSException(e.getMessage());
- ex.setStackTrace(ex.getStackTrace());
- throw ex;
- }
- }
-}
\ No newline at end of file
Copied: trunk/src/main/java/org/jboss/ws/metadata/acessor/ReflectiveMethodAccessor.java
(from rev 1366,
branches/JEE5_TCK/src/main/java/org/jboss/ws/metadata/acessor/ReflectiveMethodAccessor.java)
Modified: trunk/src/main/java/org/jboss/ws/metadata/wsdl/WSDLUtils.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/metadata/wsdl/WSDLUtils.java 2006-11-04 14:49:44 UTC
(rev 1369)
+++ trunk/src/main/java/org/jboss/ws/metadata/wsdl/WSDLUtils.java 2006-11-04 15:38:09 UTC
(rev 1370)
@@ -222,7 +222,7 @@
if (baseType != null)
{
if (baseType.getNamespace() == Constants.NS_SCHEMA_XSD &&
- baseType.getName().equals("anyType"))
+ baseType.getName().equals("anyType"))
bool = true; //Ignore this baseType
}
if (XSComplexTypeDefinition.CONTENTTYPE_SIMPLE == t.getContentType())
@@ -340,7 +340,7 @@
* @throws IOException Problem creating the file
*/
public File createPhysicalFile(File loc, String fname)
- throws IOException
+ throws IOException
{
if(loc == null )
throw new IllegalArgumentException("Illegal Null Argument: loc");
@@ -365,9 +365,9 @@
* @return
*/
public StringBuilder createClassBasicStructure(String pkgname,
- String fname,
- XSTypeDefinition type,
- List importList, String baseName)
+ String fname,
+ XSTypeDefinition type,
+ List importList, String baseName)
{
StringBuilder buf = new StringBuilder();
writeJbossHeader(buf);
@@ -395,7 +395,7 @@
if (baseType != null)
{
if (baseType.getNamespace() == Constants.NS_SCHEMA_XSD &&
- baseType.getName().equals("anyType"))
+ baseType.getName().equals("anyType"))
baseType = null; //Ignore this baseType
}
if (XSComplexTypeDefinition.CONTENTTYPE_SIMPLE == t.getContentType())
@@ -408,7 +408,7 @@
if(baseName == null && baseType != null)
baseName = baseType.getName();
if(baseName != null)
- buf.append(" extends " + baseName);
+ buf.append(" extends " + baseName);
buf.append(newline);
buf.append("{");
buf.append(newline);
@@ -471,14 +471,14 @@
*/
public int getArrayDimension(Class arr)
{
- if(arr == null || arr.isArray() == false)
- throw new IllegalArgumentException("Illegal null or array arg:arr");
- int counter = 0;
- while(arr.isArray()) {
+ if(arr == null || arr.isArray() == false)
+ throw new IllegalArgumentException("Illegal null or array arg:arr");
+ int counter = 0;
+ while(arr.isArray()) {
counter += 1;
arr = arr.getComponentType();
- }
- return counter;
+ }
+ return counter;
}
/**
@@ -678,8 +678,8 @@
if(Constants.PREFIX_XSD.equals(prefix)) nsuri = Constants.NS_SCHEMA_XSD;
if(nsuri == null)
qn = new QName( formattedStr.substring(ind+1) );
- else
- qn = new QName( nsuri,formattedStr.substring(ind+1),prefix);
+ else
+ qn = new QName( nsuri,formattedStr.substring(ind+1),prefix);
return qn;
}
@@ -701,10 +701,8 @@
*/
public String getPackageName(String typeNS)
{
- String pkgname = Util.xmlNamespaceToJavaPackage(typeNS);
+ String pkgname = Util.xmlNamespaceToJavaPackage(typeNS);
int len = pkgname.length();
- if(pkgname.endsWith(".jaws")) //as per jaxws-2.0 spec
- pkgname = pkgname.substring(0,len - 5);
return pkgname;
}
@@ -722,32 +720,27 @@
public String getTypeNamespace(String packageName)
{
StringBuilder sb = new StringBuilder("http://");
- //sb.append(packageName.replace('.', '/'));
+
//Generate tokens with '.' as delimiter
StringTokenizer st = new StringTokenizer(packageName,".");
+
//Have a LIFO queue for the tokens
- Stack stk = new Stack();
+ Stack<String> stk = new Stack<String>();
while(st != null && st.hasMoreTokens())
{
stk.push(st.nextToken());
}
- try
+
+ String next;
+ while(!stk.isEmpty() && (next=stk.pop())!=null)
{
- while(stk != null)
- {
- String str = (String)stk.pop();
- if(sb.toString().equals("http://") == false)
sb.append(".");
- sb.append(str);
- }
- }catch(EmptyStackException e)
- {
- //Ignore
+ if(sb.toString().equals("http://") == false)
sb.append(".");
+ sb.append(next);
}
- finally
- {
- sb.append("/jaws");
- }
+ // trailing slash
+ sb.append("/");
+
return sb.toString();
}
Modified: trunk/src/main/java/org/jboss/ws/tools/SourceWrapperGenerator.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/tools/SourceWrapperGenerator.java 2006-11-04 14:49:44
UTC (rev 1369)
+++ trunk/src/main/java/org/jboss/ws/tools/SourceWrapperGenerator.java 2006-11-04 15:38:09
UTC (rev 1370)
@@ -37,7 +37,7 @@
import org.jboss.ws.metadata.FaultMetaData;
import org.jboss.ws.metadata.OperationMetaData;
import org.jboss.ws.metadata.ParameterMetaData;
-import org.jboss.ws.metadata.ParameterMetaData.WrappedParameter;
+import org.jboss.ws.metadata.WrappedParameter;
import org.jboss.ws.utils.JavaUtils;
import com.sun.codemodel.JAnnotationArrayMember;
@@ -88,7 +88,7 @@
addClassAnnotations(clazz, pmd.getXmlName(), pmd.getXmlType(), null);
for (WrappedParameter wrapped : wrappedParameters)
{
- addProperty(clazz, wrapped.type, wrapped.name, wrapped.variable);
+ addProperty(clazz, wrapped.getType(), wrapped.getName(),
wrapped.getVariable());
}
}
catch (Exception e)
Modified: trunk/src/main/java/org/jboss/ws/tools/helpers/JavaToWSDLHelper.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/tools/helpers/JavaToWSDLHelper.java 2006-11-04
14:49:44 UTC (rev 1369)
+++ trunk/src/main/java/org/jboss/ws/tools/helpers/JavaToWSDLHelper.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -48,7 +48,7 @@
import org.jboss.ws.metadata.OperationMetaData;
import org.jboss.ws.metadata.ParameterMetaData;
import org.jboss.ws.metadata.ServerEndpointMetaData;
-import org.jboss.ws.metadata.ParameterMetaData.WrappedParameter;
+import org.jboss.ws.metadata.WrappedParameter;
import org.jboss.ws.metadata.jaxrpcmapping.ExceptionMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaXmlTypeMapping;
@@ -166,7 +166,7 @@
Map<String, QName> map = new LinkedHashMap<String,
QName>(wrappedParameters.size());
for (WrappedParameter param : wrappedParameters)
- map.put(param.variable, param.name);
+ map.put(param.getVariable(), param.getName());
return map;
}
@@ -231,8 +231,8 @@
List<WrappedParameter> wrappedParameters =
param.getWrappedParameters();
for (WrappedParameter wrapped : wrappedParameters)
{
- String type = JavaUtils.convertJVMNameToSourceName(wrapped.type,
endpoint.getClassLoader());
- String name = wrapped.name.getLocalPart();
+ String type = JavaUtils.convertJVMNameToSourceName(wrapped.getType(),
endpoint.getClassLoader());
+ String name = wrapped.getName().getLocalPart();
buildParamMapping(methodMapping, interfaceName, operation, name, type,
"IN", false, i++);
}
@@ -252,8 +252,8 @@
if (isWrapped)
{
WrappedParameter wrappedParameter =
returnParam.getWrappedParameters().get(0);
- name = wrappedParameter.name.getLocalPart();
- type = wrappedParameter.type;
+ name = wrappedParameter.getName().getLocalPart();
+ type = wrappedParameter.getType();
}
else
{
Modified: trunk/src/main/java/org/jboss/ws/tools/helpers/ToolsHelper.java
===================================================================
--- trunk/src/main/java/org/jboss/ws/tools/helpers/ToolsHelper.java 2006-11-04 14:49:44
UTC (rev 1369)
+++ trunk/src/main/java/org/jboss/ws/tools/helpers/ToolsHelper.java 2006-11-04 15:38:09
UTC (rev 1370)
@@ -47,7 +47,7 @@
import org.jboss.ws.metadata.ParameterMetaData;
import org.jboss.ws.metadata.ServiceMetaData;
import org.jboss.ws.metadata.UnifiedMetaData;
-import org.jboss.ws.metadata.ParameterMetaData.WrappedParameter;
+import org.jboss.ws.metadata.WrappedParameter;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaXmlTypeMapping;
import org.jboss.ws.metadata.wsdl.NCName;
@@ -244,8 +244,8 @@
List<VAR> vars = new ArrayList<VAR>();
for (WrappedParameter wrapped : wrappedParameters)
{
- String typeName = JavaUtils.convertJVMNameToSourceName(wrapped.type,
classLoader);
- vars.add(new VAR(wrapped.variable, typeName, false));
+ String typeName = JavaUtils.convertJVMNameToSourceName(wrapped.getType(),
classLoader);
+ vars.add(new VAR(wrapped.getVariable(), typeName, false));
}
JavaWriter writer = new JavaWriter();
Modified: trunk/src/main/java/org/jboss/ws/tools/metadata/ReflectiveMetaDataBuilder.java
===================================================================
---
trunk/src/main/java/org/jboss/ws/tools/metadata/ReflectiveMetaDataBuilder.java 2006-11-04
14:49:44 UTC (rev 1369)
+++
trunk/src/main/java/org/jboss/ws/tools/metadata/ReflectiveMetaDataBuilder.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -39,7 +39,7 @@
import org.jboss.ws.metadata.FaultMetaData;
import org.jboss.ws.metadata.OperationMetaData;
import org.jboss.ws.metadata.ParameterMetaData;
-import org.jboss.ws.metadata.ParameterMetaData.WrappedParameter;
+import org.jboss.ws.metadata.WrappedParameter;
import org.jboss.ws.metadata.wsdl.WSDLUtils;
import org.jboss.ws.tools.ToolsUtils;
import org.jboss.ws.tools.Configuration.OperationConfig;
Modified: trunk/src/test/ant/build-jars-jaxws.xml
===================================================================
--- trunk/src/test/ant/build-jars-jaxws.xml 2006-11-04 14:49:44 UTC (rev 1369)
+++ trunk/src/test/ant/build-jars-jaxws.xml 2006-11-04 15:38:09 UTC (rev 1370)
@@ -404,6 +404,7 @@
<war warfile="${build.test.dir}/libs/jaxws-webserviceref.war"
webxml="${build.test.dir}/resources/jaxws/webserviceref/WEB-INF/web.xml">
<classes dir="${build.test.dir}/classes">
<include
name="org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.class"/>
</classes>
</war>
<jar
destfile="${build.test.dir}/libs/jaxws-webserviceref-client.jar">
@@ -451,6 +452,34 @@
</metainf>
</jar>
+ <!-- jaxws-wrapped-accessor -->
+ <war warfile="${build.test.dir}/libs/jaxws-wrapped-accessor.war"
webxml="${build.test.dir}/resources/jaxws/wrapped/accessor/WEB-INF/web.xml">
+ <classes dir="${build.test.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxws/wrapped/accessor/Accessor.class"/>
+ <include
name="org/jboss/test/ws/jaxws/wrapped/accessor/AccessorImpl.class"/>
+ <include
name="org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/*"/>
+ </classes>
+ </war>
+
+ <!-- jaxws-anonymous -->
+ <war warfile="${build.test.dir}/libs/jaxws-anonymous.war"
webxml="${build.test.dir}/resources/jaxws/anonymous/WEB-INF/web.xml">
+ <classes dir="${build.test.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxws/anonymous/Anonymous.class"/>
+ <include
name="org/jboss/test/ws/jaxws/anonymous/AnonymousRequest.class"/>
+ <include
name="org/jboss/test/ws/jaxws/anonymous/AnonymousResponse.class"/>
+ <include
name="org/jboss/test/ws/jaxws/anonymous/AnonymousImpl.class"/>
+ </classes>
+ </war>
+
+ <!-- jaxws-exception -->
+ <war warfile="${build.test.dir}/libs/jaxws-exception.war"
webxml="${build.test.dir}/resources/jaxws/exception/WEB-INF/web.xml">
+ <classes dir="${build.test.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxws/exception/ExceptionEndpoint.class"/>
+ <include
name="org/jboss/test/ws/jaxws/exception/ExceptionEndpointImpl.class"/>
+ <include
name="org/jboss/test/ws/jaxws/exception/UserException.class"/>
+ </classes>
+ </war>
+
<!-- jaxws-wsaddressing-action -->
<war warfile="${build.test.dir}/libs/jaxws-wsaddressing-action-rpc.war"
webxml="${build.test.dir}/resources/jaxws/wsaddressing/action/WEB-INF/web.xml">
<classes dir="${build.test.dir}/classes">
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous (from rev 1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/anonymous)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/Anonymous.java
===================================================================
---
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/anonymous/Anonymous.java 2006-11-04
13:15:18 UTC (rev 1366)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/Anonymous.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -1,38 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.anonymous;
-
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-
-/**
- * Tests anonymous bare types
- *
- * @author <a href="jason.greene(a)jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
-@WebService
-@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
-public interface Anonymous
-{
- public AnonymousResponse echoAnonymous(AnonymousRequest request);
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/Anonymous.java (from rev
1366, branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/anonymous/Anonymous.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousImpl.java
===================================================================
---
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousImpl.java 2006-11-04
13:15:18 UTC (rev 1366)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousImpl.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -1,43 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.anonymous;
-
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-
-/**
- * An endpoint that echos an anonymous type.
- *
- * @author <a href="jason.greene(a)jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
-(a)WebService(endpointInterface="org.jboss.test.ws.jaxws.anonymous.Anonymous")
-public class AnonymousImpl implements Anonymous
-{
- public AnonymousResponse echoAnonymous(AnonymousRequest request)
- {
- AnonymousResponse response = new AnonymousResponse();
- response.message = request.message;
-
- return response;
- }
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousImpl.java (from rev
1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousImpl.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousRequest.java
===================================================================
---
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousRequest.java 2006-11-04
13:15:18 UTC (rev 1366)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousRequest.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -1,42 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.anonymous;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * An anonymous request
- *
- * @author <a href="jason.greene(a)jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
-@XmlType(name="")
-(a)XmlAccessorType(XmlAccessType.FIELD)
-public class AnonymousRequest
-{
- @XmlElement
- public String message;
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousRequest.java (from
rev 1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousRequest.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousResponse.java
===================================================================
---
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousResponse.java 2006-11-04
13:15:18 UTC (rev 1366)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousResponse.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -1,42 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.anonymous;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * An anonymous response
- *
- * @author <a href="jason.greene(a)jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
-@XmlType(name="")
-(a)XmlAccessorType(XmlAccessType.FIELD)
-public class AnonymousResponse
-{
- @XmlElement
- public String message;
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousResponse.java (from
rev 1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousResponse.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousTestCase.java
===================================================================
---
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousTestCase.java 2006-11-04
13:15:18 UTC (rev 1366)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousTestCase.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -1,69 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.anonymous;
-
-import java.net.URL;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.Service;
-
-import junit.framework.Test;
-
-import org.jboss.test.ws.JBossWSTest;
-import org.jboss.test.ws.JBossWSTestSetup;
-
-/**
- * Test anonymous bare types.
- *
- * @author <a href="jason.greene(a)jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
-public class AnonymousTestCase extends JBossWSTest
-{
- private String targetNS = "http://anonymous.jaxws.ws.test.jboss.org/";
- private Anonymous proxy;
-
- public static Test suite()
- {
- return JBossWSTestSetup.newTestSetup(AnonymousTestCase.class,
"jaxws-anonymous.war");
- }
-
- @Override
- protected void setUp() throws Exception
- {
- super.setUp();
-
- QName serviceName = new QName(targetNS, "AnonymousService");
- URL wsdlURL = new URL("http://" + getServerHost() +
":8080/jaxws-anonymous/AnonymousService?wsdl");
-
- Service service = Service.create(wsdlURL, serviceName);
- proxy = (Anonymous) service.getPort(Anonymous.class);
- }
-
-
- public void testEcho() throws Exception
- {
- AnonymousRequest req = new AnonymousRequest();
- req.message = "echo123";
- assertEquals("echo123", proxy.echoAnonymous(req).message);
- }
-}
\ No newline at end of file
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousTestCase.java (from
rev 1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/anonymous/AnonymousTestCase.java)
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/exception (from rev 1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/exception)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionEndpoint.java
===================================================================
---
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionEndpoint.java 2006-11-04
13:15:18 UTC (rev 1366)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionEndpoint.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -1,31 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.exception;
-import javax.jws.WebService;
-
-@WebService
-public interface ExceptionEndpoint
-{
- public void throwRuntimeException();
- public void throwSoapFaultException();
- public void throwApplicationException() throws UserException;
-}
\ No newline at end of file
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionEndpoint.java (from
rev 1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionEndpoint.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionEndpointImpl.java
===================================================================
---
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionEndpointImpl.java 2006-11-04
13:15:18 UTC (rev 1366)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionEndpointImpl.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -1,64 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.exception;
-
-import javax.jws.WebService;
-import javax.xml.namespace.QName;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPFault;
-import javax.xml.ws.soap.SOAPFaultException;
-
-import org.jboss.ws.soap.NameImpl;
-import org.jboss.ws.soap.SOAPFaultImpl;
-
-(a)WebService(endpointInterface="org.jboss.test.ws.jaxws.exception.ExceptionEndpoint")
-public class ExceptionEndpointImpl implements ExceptionEndpoint
-{
- public void throwRuntimeException()
- {
- throw new RuntimeException("oh no, a runtime exception occured.");
- }
-
- public void throwSoapFaultException()
- {
- // This should be thrown as-is
-
- try
- {
- SOAPFault fault = new SOAPFaultImpl("http://foo");
- fault.setFaultCode(new NameImpl(new QName("http://foo",
"FooCode")));
- fault.setFaultString("this is a fault string!");
- fault.setFaultActor("mr.actor");
- fault.addDetail().addChildElement("test");
- throw new SOAPFaultException(fault);
- }
- catch (SOAPException s)
- {
- throw new RuntimeException(s);
- }
- }
-
- public void throwApplicationException() throws UserException
- {
- throw new UserException("validation", 123, "Some validation
error");
- }
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionEndpointImpl.java
(from rev 1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionEndpointImpl.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionTestCase.java
===================================================================
---
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionTestCase.java 2006-11-04
13:15:18 UTC (rev 1366)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionTestCase.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -1,153 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.exception;
-
-import java.net.URL;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.Service;
-import javax.xml.ws.soap.SOAPFaultException;
-
-import junit.framework.Test;
-
-import org.jboss.test.ws.JBossWSTest;
-import org.jboss.test.ws.JBossWSTestSetup;
-import org.w3c.dom.Element;
-
-/**
- * Test JAX-WS exception handling
- *
- * @author <a href="jason.greene(a)jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
-public class ExceptionTestCase extends JBossWSTest
-{
- private String targetNS = "http://exception.jaxws.ws.test.jboss.org/";
- private ExceptionEndpoint proxy;
-
- public static Test suite()
- {
- return JBossWSTestSetup.newTestSetup(ExceptionTestCase.class,
"jaxws-exception.war");
- }
-
- @Override
- protected void setUp() throws Exception
- {
- super.setUp();
-
- QName serviceName = new QName(targetNS, "ExceptionEndpointService");
- URL wsdlURL = new URL("http://" + getServerHost() +
":8080/jaxws-exception/ExceptionEndpointService?wsdl");
-
- Service service = Service.create(wsdlURL, serviceName);
- proxy = (ExceptionEndpoint) service.getPort(ExceptionEndpoint.class);
- }
-
- /*
- * 10.2.2.3
- *
- * faultcode (Subcode in SOAP 1.2, Code set to env:Receiver)
- * 1. SOAPFaultException.getFault().getFaultCodeAsQName()
- * 2. env:Server (Subcode omitted for SOAP 1.2).
- * faultstring (Reason/Text)
- * 1. SOAPFaultException.getFault().getFaultString()
- * 2. Exception.getMessage()
- * 3. Exception.toString()
- * faultactor (Role in SOAP 1.2)
- * 1. SOAPFaultException.getFault().getFaultActor()
- * 2. Empty
- * detail (Detail in SOAP 1.2)
- * 1. Serialized service specific exception (see WrapperException.getFaultInfo() in
section 2.5)
- * 2. SOAPFaultException.getFault().getDetail()
- */
- public void testRuntimeException() throws Exception
- {
- if (true)
- {
- System.out.println("FIXME: JBWS-1321");
- return;
- }
-
- try
- {
- proxy.throwRuntimeException();
- }
- catch (SOAPFaultException e)
- {
- assertEquals("oh no, a runtime exception occured.", e.getMessage());
- assertEquals("oh no, a runtime exception occured.",
e.getFault().getFaultString());
- return;
- }
-
- assertTrue("Expected SOAPFaultException", false);
- }
-
- public void testSoapFaultException() throws Exception
- {
- if (true)
- {
- System.out.println("FIXME: JBWS-1312");
- return;
- }
-
- try
- {
- proxy.throwSoapFaultException();
- }
- catch (SOAPFaultException e)
- {
- assertEquals("this is a fault string", e.getMessage());
- assertEquals("this is a fault string",
e.getFault().getFaultString());
- assertEquals("mr.actor", e.getFault().getFaultActor());
- assertEquals("FooCode",
e.getFault().getFaultCodeAsName().getLocalName());
- assertEquals("http://foo",
e.getFault().getFaultCodeAsName().getURI());
- assertEquals("test",
((Element)e.getFault().getDetail().getChildElements().next()).getLocalName());
-
- return;
- }
-
- assertTrue("Expected SOAPFaultException", false);
- }
-
-
- public void testApplicationException() throws Exception
- {
- if (true)
- {
- System.out.println("FIXME: JBWS-1297");
- return;
- }
-
- try
- {
- proxy.throwApplicationException();
- }
- catch (UserException e)
- {
- assertEquals("Some validation error", e.getMessage());
- assertEquals("validation", e.getErrorCategory());
- assertEquals(123, e.getErrorCode());
- return;
- }
-
- assertTrue("Expected UserException", false);
- }
-}
\ No newline at end of file
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionTestCase.java (from
rev 1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/exception/ExceptionTestCase.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/exception/UserException.java
===================================================================
---
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/exception/UserException.java 2006-11-04
13:15:18 UTC (rev 1366)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/exception/UserException.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -1,52 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.exception;
-
-/**
- * A mach application exception
- *
- * @author <a href="jason.greene(a)jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
-public class UserException extends Exception
-{
- private int errorCode;
- private String errorCategory;
-
- public UserException(String errorCategory, int errorCode, String message)
- {
- super(message);
-
- this.errorCategory = errorCategory;
- this.errorCode = errorCode;
- }
-
- public String getErrorCategory()
- {
- return errorCategory;
- }
-
- public int getErrorCode()
- {
- return errorCode;
- }
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/exception/UserException.java (from rev
1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/exception/UserException.java)
Modified: trunk/src/test/java/org/jboss/test/ws/jaxws/jbws871/JBWS871TestCase.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxws/jbws871/JBWS871TestCase.java 2006-11-04
14:49:44 UTC (rev 1369)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/jbws871/JBWS871TestCase.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -64,7 +64,7 @@
if (endpoint == null)
{
URL wsdlURL = new
File("resources/jaxws/jbws871/META-INF/wsdl/TestEndpoint.wsdl").toURL();
- QName serviceName = new
QName("http://jbws871.jaxws.ws.test.jboss.org/jaws",
"RpcArrayEndpointService");
+ QName serviceName = new
QName("http://jbws871.jaxws.ws.test.jboss.org/",
"RpcArrayEndpointService");
Service service = Service.create(wsdlURL, serviceName);
endpoint = (RpcArrayEndpoint)service.getPort(RpcArrayEndpoint.class);
}
Modified:
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/handlerchain/JSR181HandlerChainTestCase.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/handlerchain/JSR181HandlerChainTestCase.java 2006-11-04
14:49:44 UTC (rev 1369)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/handlerchain/JSR181HandlerChainTestCase.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -43,7 +43,7 @@
*/
public class JSR181HandlerChainTestCase extends JBossWSTest
{
- private static final String targetNS =
"http://handlerchain.jsr181.jaxws.ws.test.jboss.org/jaws";
+ private static final String targetNS =
"http://handlerchain.jsr181.jaxws.ws.test.jboss.org/";
public static Test suite()
{
Modified:
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/oneway/JSR181OneWayTestCase.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/oneway/JSR181OneWayTestCase.java 2006-11-04
14:49:44 UTC (rev 1369)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/oneway/JSR181OneWayTestCase.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -47,7 +47,7 @@
*/
public class JSR181OneWayTestCase extends JBossWSTest
{
- private static final String targetNS =
"http://oneway.jsr181.jaxws.ws.test.jboss.org/jaws";
+ private static final String targetNS =
"http://oneway.jsr181.jaxws.ws.test.jboss.org/";
public static Test suite()
{
@@ -62,10 +62,10 @@
Service service = Service.create(wsdlURL, serviceName);
Dispatch dispatch = service.createDispatch(portName, StreamSource.class,
Mode.PAYLOAD);
- String payload = "<ns1:ping
xmlns:ns1='http://oneway.jsr181.jaxws.ws.test.jboss.org/jaws'/>...;
+ String payload = "<ns1:ping
xmlns:ns1='http://oneway.jsr181.jaxws.ws.test.jboss.org/'/>";
dispatch.invokeOneWay(new StreamSource(new StringReader(payload)));
- payload = "<ns1:feedback
xmlns:ns1='http://oneway.jsr181.jaxws.ws.test.jboss.org/jaws'/>...;
+ payload = "<ns1:feedback
xmlns:ns1='http://oneway.jsr181.jaxws.ws.test.jboss.org/'/>";
StreamSource retObj = (StreamSource)dispatch.invoke(new StreamSource(new
StringReader(payload)));
Element retElement = DOMUtils.getFirstChildElement(DOMUtils.parse(new
InputSource(retObj.getReader())));
String retPayload = DOMWriter.printNode(retElement, false);
Modified:
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/JSR181SOAPBindingTestCase.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/JSR181SOAPBindingTestCase.java 2006-11-04
14:49:44 UTC (rev 1369)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/JSR181SOAPBindingTestCase.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -50,7 +50,7 @@
*/
public class JSR181SOAPBindingTestCase extends JBossWSTest
{
- private String targetNS =
"http://soapbinding.jsr181.jaxws.ws.test.jboss.org/jaws";
+ private String targetNS =
"http://soapbinding.jsr181.jaxws.ws.test.jboss.org/";
public static Test suite()
{
@@ -165,9 +165,9 @@
" <env:Header/>" +
" <env:Body>" +
" <ns1:SubmitPO xmlns:ns1='" + targetNS + "'>"
+
- " <ns1:PurchaseOrder>" +
+ " <PurchaseOrder>" +
" <ns1:product>Ferrari</ns1:product>" +
- " </ns1:PurchaseOrder>" +
+ " </PurchaseOrder>" +
" </ns1:SubmitPO>" +
" </env:Body>" +
"</env:Envelope>";
@@ -183,7 +183,7 @@
NameImpl name = new NameImpl(new QName(targetNS, "SubmitPOResponse"));
SOAPElement soapElement =
(SOAPElement)resMsg.getSOAPBody().getChildElements(name).next();
- soapElement = (SOAPElement)soapElement.getChildElements(new NameImpl(new
QName(targetNS, "PurchaseOrderAck"))).next();
+ soapElement = (SOAPElement)soapElement.getChildElements(new NameImpl(new
QName("PurchaseOrderAck"))).next();
soapElement = (SOAPElement)soapElement.getChildElements(new NameImpl(new
QName(targetNS, "product"))).next();
assertEquals("Ferrari", soapElement.getValue());
}
Modified:
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/PurchaseOrder.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/PurchaseOrder.java 2006-11-04
14:49:44 UTC (rev 1369)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/PurchaseOrder.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -28,10 +28,10 @@
@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "PurchaseOrderType",
namespace="http://soapbinding.jsr181.jaxws.ws.test.jboss.org/jaws", propOrder =
{ "product" })
+@XmlType(name = "PurchaseOrderType",
namespace="http://soapbinding.jsr181.jaxws.ws.test.jboss.org/", propOrder = {
"product" })
public class PurchaseOrder
{
-
@XmlElement(namespace="http://soapbinding.jsr181.jaxws.ws.test.jboss.org/jaws",
required = true)
+ @XmlElement(namespace="http://soapbinding.jsr181.jaxws.ws.test.jboss.org/",
required = true)
private String product;
public PurchaseOrder()
Modified:
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/PurchaseOrderAck.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/PurchaseOrderAck.java 2006-11-04
14:49:44 UTC (rev 1369)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/PurchaseOrderAck.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -28,10 +28,10 @@
@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "PurchaseOrderAckType",
namespace="http://soapbinding.jsr181.jaxws.ws.test.jboss.org/jaws", propOrder =
{ "product" })
+@XmlType(name = "PurchaseOrderAckType",
namespace="http://soapbinding.jsr181.jaxws.ws.test.jboss.org/", propOrder = {
"product" })
public class PurchaseOrderAck
{
-
@XmlElement(namespace="http://soapbinding.jsr181.jaxws.ws.test.jboss.org/jaws",
required = true)
+ @XmlElement(namespace="http://soapbinding.jsr181.jaxws.ws.test.jboss.org/",
required = true)
private String product;
public PurchaseOrderAck()
Modified:
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/SubmitBareRequest.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/SubmitBareRequest.java 2006-11-04
14:49:44 UTC (rev 1369)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/SubmitBareRequest.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -28,11 +28,11 @@
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "SubmitBareRequest",
namespace="http://soapbinding.jsr181.jaxws.ws.test.jboss.org/jaws", propOrder =
{ "product" })
-@XmlRootElement(namespace="http://soapbinding.jsr181.jaxws.ws.test.jboss.org/jaws",
name = "SubmitPO")
+@XmlType(name = "SubmitBareRequest",
namespace="http://soapbinding.jsr181.jaxws.ws.test.jboss.org/", propOrder = {
"product" })
+@XmlRootElement(namespace="http://soapbinding.jsr181.jaxws.ws.test.jboss.org/",
name = "SubmitPO")
public class SubmitBareRequest
{
-
@XmlElement(namespace="http://soapbinding.jsr181.jaxws.ws.test.jboss.org/jaws",
required = true)
+ @XmlElement(namespace="http://soapbinding.jsr181.jaxws.ws.test.jboss.org/",
required = true)
private String product;
public SubmitBareRequest()
Modified:
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/SubmitBareResponse.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/SubmitBareResponse.java 2006-11-04
14:49:44 UTC (rev 1369)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/soapbinding/SubmitBareResponse.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -28,11 +28,11 @@
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "SubmitBareResponse", namespace =
"http://soapbinding.jsr181.jaxws.ws.test.jboss.org/jaws", propOrder = {
"product" })
-@XmlRootElement(namespace="http://soapbinding.jsr181.jaxws.ws.test.jboss.org/jaws",
name = "SubmitPOResponse")
+@XmlType(name = "SubmitBareResponse", namespace =
"http://soapbinding.jsr181.jaxws.ws.test.jboss.org/", propOrder = {
"product" })
+@XmlRootElement(namespace="http://soapbinding.jsr181.jaxws.ws.test.jboss.org/",
name = "SubmitPOResponse")
public class SubmitBareResponse
{
- @XmlElement(namespace =
"http://soapbinding.jsr181.jaxws.ws.test.jboss.org/jaws", required = true)
+ @XmlElement(namespace =
"http://soapbinding.jsr181.jaxws.ws.test.jboss.org/", required = true)
private String product;
public SubmitBareResponse()
Modified:
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/webmethod/JSR181WebMethodTestCase.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/webmethod/JSR181WebMethodTestCase.java 2006-11-04
14:49:44 UTC (rev 1369)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/webmethod/JSR181WebMethodTestCase.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -56,7 +56,7 @@
public class JSR181WebMethodTestCase extends JBossWSTest
{
private String endpointURL = "http://" + getServerHost() +
":8080/jaxws-jsr181-webmethod/TestService";
- private String targetNS =
"http://webmethod.jsr181.jaxws.ws.test.jboss.org/jaws";
+ private String targetNS =
"http://webmethod.jsr181.jaxws.ws.test.jboss.org/";
public static Test suite()
{
@@ -139,7 +139,7 @@
String expPayload =
"<env:Fault
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>" +
" <faultcode>env:Client</faultcode>" +
- " <faultstring>Endpoint
{http://webmethod.jsr181.jaxws.ws.test.jboss.org/jaws}TestEndpointPort does not contain
operation meta data for:
{http://webmethod.jsr181.jaxws.ws.test.jboss.org/jaws}noWebMethod</faultstring>"
+
+ " <faultstring>Endpoint
{http://webmethod.jsr181.jaxws.ws.test.jboss.org/}TestEndpointPort does not contain
operation meta data for:
{http://webmethod.jsr181.jaxws.ws.test.jboss.org/}noWebMethod</faultstring>" +
"</env:Fault>";
Service service = Service.create(wsdlURL, serviceName);
Modified:
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/webresult/JSR181WebResultTestCase.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/webresult/JSR181WebResultTestCase.java 2006-11-04
14:49:44 UTC (rev 1369)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/jsr181/webresult/JSR181WebResultTestCase.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -51,7 +51,7 @@
public class JSR181WebResultTestCase extends JBossWSTest
{
private String endpointURL = "http://" + getServerHost() +
":8080/jaxws-jsr181-webresult/TestService";
- private String targetNS =
"http://webresult.jsr181.jaxws.ws.test.jboss.org/jaws";
+ private String targetNS =
"http://webresult.jsr181.jaxws.ws.test.jboss.org/";
public static Test suite()
{
Modified:
trunk/src/test/java/org/jboss/test/ws/jaxws/logicalhandler/SOAPEndpointJAXB.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/logicalhandler/SOAPEndpointJAXB.java 2006-11-04
14:49:44 UTC (rev 1369)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/logicalhandler/SOAPEndpointJAXB.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -37,9 +37,9 @@
{
@WebMethod
- @WebResult(name = "result")
+ @WebResult(targetNamespace = "http://org.jboss.ws/jaxws/logicalhandler",
name = "result")
@RequestWrapper(className = "org.jboss.test.ws.jaxws.logicalhandler.Echo")
@ResponseWrapper(className =
"org.jboss.test.ws.jaxws.logicalhandler.EchoResponse")
- public String echo(@WebParam(name="String_1") String string1);
+ public String echo(@WebParam(targetNamespace =
"http://org.jboss.ws/jaxws/logicalhandler", name="String_1") String
string1);
}
Modified:
trunk/src/test/java/org/jboss/test/ws/jaxws/logicalhandler/SOAPEndpointJAXBImpl.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/logicalhandler/SOAPEndpointJAXBImpl.java 2006-11-04
14:49:44 UTC (rev 1369)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/logicalhandler/SOAPEndpointJAXBImpl.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -40,10 +40,10 @@
private static Logger log = Logger.getLogger(SOAPEndpointJAXBImpl.class);
@WebMethod
- @WebResult(name = "result")
+ @WebResult(targetNamespace = "http://org.jboss.ws/jaxws/logicalhandler",
name = "result")
@RequestWrapper(className = "org.jboss.test.ws.jaxws.logicalhandler.Echo")
@ResponseWrapper(className =
"org.jboss.test.ws.jaxws.logicalhandler.EchoResponse")
- public String echo(@WebParam(name="String_1") String msg)
+ public String echo(@WebParam(targetNamespace =
"http://org.jboss.ws/jaxws/logicalhandler", name="String_1") String
msg)
{
log.info("echo: " + msg);
return msg + ":endpoint";
Modified:
trunk/src/test/java/org/jboss/test/ws/jaxws/logicalhandler/SOAPEndpointSource.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/logicalhandler/SOAPEndpointSource.java 2006-11-04
14:49:44 UTC (rev 1369)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/logicalhandler/SOAPEndpointSource.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -37,9 +37,9 @@
{
@WebMethod
- @WebResult(name = "result")
+ @WebResult(targetNamespace = "http://org.jboss.ws/jaxws/logicalhandler",
name = "result")
@RequestWrapper(className = "org.jboss.test.ws.jaxws.logicalhandler.Echo")
@ResponseWrapper(className =
"org.jboss.test.ws.jaxws.logicalhandler.EchoResponse")
- public String echo(@WebParam(name = "String_1") String string1);
+ public String echo(@WebParam(targetNamespace =
"http://org.jboss.ws/jaxws/logicalhandler", name = "String_1") String
string1);
}
Modified:
trunk/src/test/java/org/jboss/test/ws/jaxws/logicalhandler/SOAPEndpointSourceImpl.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/logicalhandler/SOAPEndpointSourceImpl.java 2006-11-04
14:49:44 UTC (rev 1369)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/logicalhandler/SOAPEndpointSourceImpl.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -40,10 +40,10 @@
private static Logger log = Logger.getLogger(SOAPEndpointSourceImpl.class);
@WebMethod
- @WebResult(name="result")
+ @WebResult(targetNamespace = "http://org.jboss.ws/jaxws/logicalhandler",
name="result")
@RequestWrapper(className = "org.jboss.test.ws.jaxws.logicalhandler.Echo")
@ResponseWrapper(className =
"org.jboss.test.ws.jaxws.logicalhandler.EchoResponse")
- public String echo(@WebParam(name="String_1")String msg)
+ public String echo(@WebParam(targetNamespace =
"http://org.jboss.ws/jaxws/logicalhandler", name="String_1")String
msg)
{
log.info("echo: " + msg);
return msg + ":endpoint";
Modified: trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.java 2006-11-04
14:49:44 UTC (rev 1369)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -21,7 +21,6 @@
*/
package org.jboss.test.ws.jaxws.webserviceref;
-import javax.jws.WebMethod;
import javax.jws.WebService;
import org.jboss.logging.Logger;
@@ -32,13 +31,12 @@
* @author Thomas.Diesler(a)jboss.org
* @since 23-Oct-2006
*/
-@WebService(name = "TestEndpoint", targetNamespace =
"http://org.jboss.ws/wsref")
-public class TestEndpointImpl
+(a)WebService(endpointInterface="org.jboss.test.ws.jaxws.webserviceref.TestEndpoint")
+public class TestEndpointImpl implements TestEndpoint
{
// Provide logging
private static Logger log = Logger.getLogger(TestEndpointImpl.class);
-
- @WebMethod
+
public String echo(String input)
{
log.info(input);
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped (from rev 1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/wrapped)
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor (from rev 1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/Accessor.java
===================================================================
---
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/Accessor.java 2006-11-04
13:15:18 UTC (rev 1366)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/Accessor.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -1,30 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.wrapped.accessor;
-import javax.jws.WebService;
-
-@WebService
-public interface Accessor
-{
- public String fieldAccessor(String one, int two);
- public String methodAccessor(String one, int two);
-}
\ No newline at end of file
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/Accessor.java (from
rev 1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/Accessor.java)
Deleted: trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/AccessorImpl.java
===================================================================
---
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/AccessorImpl.java 2006-11-04
13:15:18 UTC (rev 1366)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/AccessorImpl.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -1,38 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.wrapped.accessor;
-
-import javax.jws.WebService;
-
-(a)WebService(endpointInterface="org.jboss.test.ws.jaxws.wrapped.accessor.Accessor")
-public class AccessorImpl implements Accessor
-{
- public String fieldAccessor(String one, int two)
- {
- return one + two;
- }
-
- public String methodAccessor(String one, int two)
- {
- return one + two;
- }
-}
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/AccessorImpl.java
(from rev 1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/AccessorImpl.java)
Deleted:
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/AccessorTestCase.java
===================================================================
---
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/AccessorTestCase.java 2006-11-04
13:15:18 UTC (rev 1366)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/AccessorTestCase.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -1,72 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.wrapped.accessor;
-
-import java.net.URL;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.Service;
-
-import junit.framework.Test;
-
-import org.jboss.test.ws.JBossWSTest;
-import org.jboss.test.ws.JBossWSTestSetup;
-
-/**
- * Test different JAXB accesor types.
- *
- * @author <a href="jason.greene(a)jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
-public class AccessorTestCase extends JBossWSTest
-{
- private String targetNS =
"http://accessor.wrapped.jaxws.ws.test.jboss.org/";
- private Accessor proxy;
-
- public static Test suite()
- {
- return JBossWSTestSetup.newTestSetup(AccessorTestCase.class,
"jaxws-wrapped-accessor.war");
- }
-
- @Override
- protected void setUp() throws Exception
- {
- super.setUp();
-
- QName serviceName = new QName(targetNS, "AccessorService");
- URL wsdlURL = new URL("http://" + getServerHost() +
":8080/jaxws-wrapped-accessor/AccessorService?wsdl");
-
- Service service = Service.create(wsdlURL, serviceName);
- proxy = (Accessor) service.getPort(Accessor.class);
- }
-
-
- public void testFieldAccessor() throws Exception
- {
- assertEquals("testing123", proxy.fieldAccessor("testing",
123));
- }
-
- public void testMethodAccessor() throws Exception
- {
- assertEquals("moretesting456",
proxy.fieldAccessor("moretesting", 456));
- }
-}
\ No newline at end of file
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/AccessorTestCase.java
(from rev 1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/AccessorTestCase.java)
Copied: trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws (from rev 1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws)
Deleted:
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/FieldAccessor.java
===================================================================
---
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/FieldAccessor.java 2006-11-04
13:15:18 UTC (rev 1366)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/FieldAccessor.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -1,42 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.wrapped.accessor.jaxws;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-@XmlRootElement(name = "fieldAccessor", namespace =
"http://accessor.wrapped.jaxws.ws.test.jboss.org/")
-(a)XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "fieldAccessor", namespace =
"http://accessor.wrapped.jaxws.ws.test.jboss.org/", propOrder = {
- "arg0",
- "arg1"
-})
-public class FieldAccessor {
-
- @XmlElement(name = "arg0", namespace = "")
- private String arg0;
- @XmlElement(name = "arg1", namespace = "")
- private int arg1;
-}
Copied:
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/FieldAccessor.java
(from rev 1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/FieldAccessor.java)
Deleted:
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/FieldAccessorResponse.java
===================================================================
---
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/FieldAccessorResponse.java 2006-11-04
13:15:18 UTC (rev 1366)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/FieldAccessorResponse.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -1,37 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.wrapped.accessor.jaxws;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-@XmlRootElement(name = "fieldAccessorResponse", namespace =
"http://accessor.wrapped.jaxws.ws.test.jboss.org/")
-(a)XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "fieldAccessorResponse", namespace =
"http://accessor.wrapped.jaxws.ws.test.jboss.org/")
-public class FieldAccessorResponse {
-
- @XmlElement(name = "return", namespace = "")
- private String _return;
-}
Copied:
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/FieldAccessorResponse.java
(from rev 1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/FieldAccessorResponse.java)
Deleted:
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/MethodAccessor.java
===================================================================
---
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/MethodAccessor.java 2006-11-04
13:15:18 UTC (rev 1366)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/MethodAccessor.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -1,79 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.wrapped.accessor.jaxws;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-@XmlRootElement(name = "methodAccessor", namespace =
"http://accessor.wrapped.jaxws.ws.test.jboss.org/")
-(a)XmlAccessorType(XmlAccessType.PROPERTY)
-@XmlType(name = "methodAccessor", namespace =
"http://accessor.wrapped.jaxws.ws.test.jboss.org/", propOrder = {
"arg0", "arg1" })
-public class MethodAccessor
-{
- private String renamed0;
- private int renamed1;
-
- /**
- *
- * @return
- * returns String
- */
- @XmlElement(name = "arg0", namespace = "")
- public String getArg0()
- {
- return this.renamed0;
- }
-
- /**
- *
- * @param arg0
- * the value for the arg0 property
- */
- public void setArg0(String arg0)
- {
- this.renamed0 = arg0;
- }
-
- /**
- *
- * @return
- * returns int
- */
- @XmlElement(name = "arg1", namespace = "")
- public int getArg1()
- {
- return this.renamed1;
- }
-
- /**
- *
- * @param arg1
- * the value for the arg1 property
- */
- public void setArg1(int arg1)
- {
- this.renamed1 = arg1;
- }
-}
\ No newline at end of file
Copied:
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/MethodAccessor.java
(from rev 1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/MethodAccessor.java)
Deleted:
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/MethodAccessorResponse.java
===================================================================
---
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/MethodAccessorResponse.java 2006-11-04
13:15:18 UTC (rev 1366)
+++
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/MethodAccessorResponse.java 2006-11-04
15:38:09 UTC (rev 1370)
@@ -1,55 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.wrapped.accessor.jaxws;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-@XmlRootElement(name = "methodAccessorResponse", namespace =
"http://accessor.wrapped.jaxws.ws.test.jboss.org/")
-(a)XmlAccessorType(XmlAccessType.PROPERTY)
-@XmlType(name = "methodAccessorResponse", namespace =
"http://accessor.wrapped.jaxws.ws.test.jboss.org/")
-public class MethodAccessorResponse {
-
- private String renamed;
-
- /**
- *
- * @return
- * returns String
- */
- @XmlElement(name = "return", namespace = "")
- public String get_return() {
- return this.renamed;
- }
-
- /**
- *
- * @param _return
- * the value for the _return property
- */
- public void set_return(String _return) {
- this.renamed = _return;
- }
-}
Copied:
trunk/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/MethodAccessorResponse.java
(from rev 1366,
branches/JEE5_TCK/src/test/java/org/jboss/test/ws/jaxws/wrapped/accessor/jaxws/MethodAccessorResponse.java)
Copied: trunk/src/test/resources/jaxws/anonymous (from rev 1366,
branches/JEE5_TCK/src/test/resources/jaxws/anonymous)
Copied: trunk/src/test/resources/jaxws/anonymous/WEB-INF (from rev 1366,
branches/JEE5_TCK/src/test/resources/jaxws/anonymous/WEB-INF)
Deleted: trunk/src/test/resources/jaxws/anonymous/WEB-INF/web.xml
===================================================================
--- branches/JEE5_TCK/src/test/resources/jaxws/anonymous/WEB-INF/web.xml 2006-11-04
13:15:18 UTC (rev 1366)
+++ trunk/src/test/resources/jaxws/anonymous/WEB-INF/web.xml 2006-11-04 15:38:09 UTC (rev
1370)
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<web-app
xmlns="http://java.sun.com/xml/ns/j2ee"
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
- version="2.4">
-
- <servlet>
- <servlet-name>AnonymousService</servlet-name>
-
<servlet-class>org.jboss.test.ws.jaxws.anonymous.AnonymousImpl</servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>AnonymousService</servlet-name>
- <url-pattern>/AnonymousService</url-pattern>
- </servlet-mapping>
-</web-app>
Copied: trunk/src/test/resources/jaxws/anonymous/WEB-INF/web.xml (from rev 1366,
branches/JEE5_TCK/src/test/resources/jaxws/anonymous/WEB-INF/web.xml)
Copied: trunk/src/test/resources/jaxws/exception (from rev 1366,
branches/JEE5_TCK/src/test/resources/jaxws/exception)
Copied: trunk/src/test/resources/jaxws/exception/WEB-INF (from rev 1366,
branches/JEE5_TCK/src/test/resources/jaxws/exception/WEB-INF)
Deleted: trunk/src/test/resources/jaxws/exception/WEB-INF/web.xml
===================================================================
--- branches/JEE5_TCK/src/test/resources/jaxws/exception/WEB-INF/web.xml 2006-11-04
13:15:18 UTC (rev 1366)
+++ trunk/src/test/resources/jaxws/exception/WEB-INF/web.xml 2006-11-04 15:38:09 UTC (rev
1370)
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<web-app
xmlns="http://java.sun.com/xml/ns/j2ee"
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
- version="2.4">
-
- <servlet>
- <servlet-name>ExceptionEndpointService</servlet-name>
-
<servlet-class>org.jboss.test.ws.jaxws.exception.ExceptionEndpointImpl</servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>ExceptionEndpointService</servlet-name>
- <url-pattern>/ExceptionEndpointService</url-pattern>
- </servlet-mapping>
-</web-app>
Copied: trunk/src/test/resources/jaxws/exception/WEB-INF/web.xml (from rev 1366,
branches/JEE5_TCK/src/test/resources/jaxws/exception/WEB-INF/web.xml)
Modified: trunk/src/test/resources/jaxws/jbws871/META-INF/wsdl/TestEndpoint.wsdl
===================================================================
--- trunk/src/test/resources/jaxws/jbws871/META-INF/wsdl/TestEndpoint.wsdl 2006-11-04
14:49:44 UTC (rev 1369)
+++ trunk/src/test/resources/jaxws/jbws871/META-INF/wsdl/TestEndpoint.wsdl 2006-11-04
15:38:09 UTC (rev 1370)
@@ -1,6 +1,6 @@
-<definitions name='RpcArrayEndpointService'
targetNamespace='http://jbws871.jaxws.ws.test.jboss.org/jaws'
xmlns='http://schemas.xmlsoap.org/wsdl/'
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:tns='http://jbws871.jaxws.ws.test.jboss.org/jaws'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+<definitions name='RpcArrayEndpointService'
targetNamespace='http://jbws871.jaxws.ws.test.jboss.org/'
xmlns='http://schemas.xmlsoap.org/wsdl/'
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:tns='http://jbws871.jaxws.ws.test.jboss.org/'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
<types>
- <schema elementFormDefault='qualified'
targetNamespace='http://jbws871.jaxws.ws.test.jboss.org/jaws'
xmlns='http://www.w3.org/2001/XMLSchema'
xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:tns='http://jbws871.jaxws.ws.test.jboss.org/jaws'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
+ <schema elementFormDefault='qualified'
targetNamespace='http://jbws871.jaxws.ws.test.jboss.org/'
xmlns='http://www.w3.org/2001/XMLSchema'
xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:tns='http://jbws871.jaxws.ws.test.jboss.org/'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<complexType name='Integer.Array'>
<sequence>
<element maxOccurs='unbounded' minOccurs='0' name='value'
nillable='true' type='int'/>
@@ -26,10 +26,10 @@
<operation name='intArr'>
<soap:operation soapAction=''/>
<input>
- <soap:body
namespace='http://jbws871.jaxws.ws.test.jboss.org/jaws'
use='literal'/>
+ <soap:body
namespace='http://jbws871.jaxws.ws.test.jboss.org/'
use='literal'/>
</input>
<output>
- <soap:body
namespace='http://jbws871.jaxws.ws.test.jboss.org/jaws'
use='literal'/>
+ <soap:body
namespace='http://jbws871.jaxws.ws.test.jboss.org/'
use='literal'/>
</output>
</operation>
</binding>
Modified:
trunk/src/test/resources/jaxws/jsr181/complex/META-INF/wsdl/RegistrationService.wsdl
===================================================================
---
trunk/src/test/resources/jaxws/jsr181/complex/META-INF/wsdl/RegistrationService.wsdl 2006-11-04
14:49:44 UTC (rev 1369)
+++
trunk/src/test/resources/jaxws/jsr181/complex/META-INF/wsdl/RegistrationService.wsdl 2006-11-04
15:38:09 UTC (rev 1370)
@@ -6,8 +6,8 @@
$Id$
-->
<definitions name="RegistrationServiceService"
targetNamespace="http://org.jboss.ws/jaxws/complex"
xmlns="http://schemas.xmlsoap.org/wsdl/"
-
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:ns1="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws"
-
xmlns:ns2="http://extra.complex.jsr181.jaxws.ws.test.jboss.org/jaws&...
xmlns:tns="http://org.jboss.ws/jaxws/complex"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:ns1="http://complex.jsr181.jaxws.ws.test.jboss.org/"
+
xmlns:ns2="http://extra.complex.jsr181.jaxws.ws.test.jboss.org/"
xmlns:tns="http://org.jboss.ws/jaxws/complex"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb">
<jaxws:bindings>
@@ -16,7 +16,7 @@
<types>
<schema elementFormDefault="qualified"
targetNamespace="http://org.jboss.ws/jaxws/complex"
xmlns="http://www.w3.org/2001/XMLSchema"
-
xmlns:ns2="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws"
xmlns:ns3="http://extra.complex.jsr181.jaxws.ws.test.jboss.org/jaws&...
+
xmlns:ns2="http://complex.jsr181.jaxws.ws.test.jboss.org/"
xmlns:ns3="http://extra.complex.jsr181.jaxws.ws.test.jboss.org/"
xmlns:tns="http://org.jboss.ws/jaxws/complex"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
jaxb:version="2.0">
<xsd:annotation>
@@ -27,8 +27,8 @@
</xsd:appinfo>
</xsd:annotation>
- <import
namespace="http://extra.complex.jsr181.jaxws.ws.test.jboss.org/jaws&...
- <import
namespace="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws"/...
+ <import
namespace="http://extra.complex.jsr181.jaxws.ws.test.jboss.org/"...
+ <import
namespace="http://complex.jsr181.jaxws.ws.test.jboss.org/"/>
<complexType name="AlreadyRegisteredException">
<complexContent>
@@ -116,9 +116,9 @@
<element name="ValidationException"
type="tns:ValidationException"/>
</schema>
- <schema elementFormDefault="qualified"
targetNamespace="http://extra.complex.jsr181.jaxws.ws.test.jboss.org...
xmlns="http://www.w3.org/2001/XMLSchema"
- xmlns:ns1="http://org.jboss.ws/jaxws/complex"
xmlns:ns2="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws"
-
xmlns:tns="http://extra.complex.jsr181.jaxws.ws.test.jboss.org/jaws&...
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
jaxb:version="2.0">
+ <schema elementFormDefault="qualified"
targetNamespace="http://extra.complex.jsr181.jaxws.ws.test.jboss.org...
xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:ns1="http://org.jboss.ws/jaxws/complex"
xmlns:ns2="http://complex.jsr181.jaxws.ws.test.jboss.org/"
+
xmlns:tns="http://extra.complex.jsr181.jaxws.ws.test.jboss.org/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
jaxb:version="2.0">
<xsd:annotation>
<xsd:appinfo>
@@ -129,7 +129,7 @@
</xsd:annotation>
<import namespace="http://org.jboss.ws/jaxws/complex"/>
- <import
namespace="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws"/...
+ <import
namespace="http://complex.jsr181.jaxws.ws.test.jboss.org/"/>
<complexType name="Statistics">
<sequence>
@@ -139,9 +139,9 @@
</complexType>
</schema>
- <schema elementFormDefault="qualified"
targetNamespace="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&...
xmlns="http://www.w3.org/2001/XMLSchema"
- xmlns:ns1="http://org.jboss.ws/jaxws/complex"
xmlns:ns3="http://extra.complex.jsr181.jaxws.ws.test.jboss.org/jaws&...
-
xmlns:tns="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
jaxb:version="2.0">
+ <schema elementFormDefault="qualified"
targetNamespace="http://complex.jsr181.jaxws.ws.test.jboss.org/"
xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:ns1="http://org.jboss.ws/jaxws/complex"
xmlns:ns3="http://extra.complex.jsr181.jaxws.ws.test.jboss.org/"
+
xmlns:tns="http://complex.jsr181.jaxws.ws.test.jboss.org/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
jaxb:version="2.0">
<xsd:annotation>
<xsd:appinfo>
@@ -152,7 +152,7 @@
</xsd:annotation>
<import namespace="http://org.jboss.ws/jaxws/complex"/>
- <import
namespace="http://extra.complex.jsr181.jaxws.ws.test.jboss.org/jaws&...
+ <import
namespace="http://extra.complex.jsr181.jaxws.ws.test.jboss.org/"...
<complexType name="Address">
<sequence>
Modified: trunk/src/test/resources/jaxws/jsr181/complex/jaxrpc-mapping.xml
===================================================================
--- trunk/src/test/resources/jaxws/jsr181/complex/jaxrpc-mapping.xml 2006-11-04 14:49:44
UTC (rev 1369)
+++ trunk/src/test/resources/jaxws/jsr181/complex/jaxrpc-mapping.xml 2006-11-04 15:38:09
UTC (rev 1370)
@@ -2,15 +2,15 @@
<java-wsdl-mapping
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
<package-mapping>
<package-type>org.jboss.test.ws.jaxws.jsr181.complex.client</package-type>
-<namespaceURI>http://complex.jsr181.jaxws.ws.test.jboss.org/jaws</namespaceURI>
+<namespaceURI>http://complex.jsr181.jaxws.ws.test.jboss.org/</namespaceURI>
</package-mapping>
<package-mapping>
<package-type>org.jboss.test.ws.jaxws.jsr181.complex.client</package-type>
-<namespaceURI>http://extra.complex.jsr181.jaxws.ws.test.jboss.org/jaws</namespaceURI>
+<namespaceURI>http://extra.complex.jsr181.jaxws.ws.test.jboss.org/</namespaceURI>
</package-mapping>
<java-xml-type-mapping>
<java-type>org.jboss.test.ws.jaxws.jsr181.complex.client.Register</java-type>
-<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&quo...
+<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"&g...
<qname-scope>complexType</qname-scope>
<variable-mapping>
<java-variable-name>customer</java-variable-name>
@@ -23,7 +23,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>org.jboss.test.ws.jaxws.jsr181.complex.client.Statistics</java-type>
-<root-type-qname
xmlns:typeNS="http://extra.complex.jsr181.jaxws.ws.test.jboss.org/ja...
+<root-type-qname
xmlns:typeNS="http://extra.complex.jsr181.jaxws.ws.test.jboss.org/&q...
<qname-scope>complexType</qname-scope>
<variable-mapping>
<java-variable-name>activationTime</java-variable-name>
@@ -36,7 +36,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>org.jboss.test.ws.jaxws.jsr181.complex.client.InvoiceCustomer</java-type>
-<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&quo...
+<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"&g...
<qname-scope>complexType</qname-scope>
<variable-mapping>
<java-variable-name>address</java-variable-name>
@@ -65,7 +65,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>org.jboss.test.ws.jaxws.jsr181.complex.client.BulkRegister</java-type>
-<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&quo...
+<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"&g...
<qname-scope>complexType</qname-scope>
<variable-mapping>
<java-variable-name>customers</java-variable-name>
@@ -78,7 +78,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>org.jboss.test.ws.jaxws.jsr181.complex.client.ValidationException</java-type>
-<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&quo...
+<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"&g...
<qname-scope>complexType</qname-scope>
<variable-mapping>
<java-variable-name>message</java-variable-name>
@@ -91,7 +91,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>org.jboss.test.ws.jaxws.jsr181.complex.client.Address</java-type>
-<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&quo...
+<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"&g...
<qname-scope>complexType</qname-scope>
<variable-mapping>
<java-variable-name>city</java-variable-name>
@@ -112,7 +112,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>org.jboss.test.ws.jaxws.jsr181.complex.client.Name</java-type>
-<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&quo...
+<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"&g...
<qname-scope>complexType</qname-scope>
<variable-mapping>
<java-variable-name>firstName</java-variable-name>
@@ -129,7 +129,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>org.jboss.test.ws.jaxws.jsr181.complex.client.BulkRegisterResponse</java-type>
-<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&quo...
+<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"&g...
<qname-scope>complexType</qname-scope>
<variable-mapping>
<java-variable-name>registeredIDs</java-variable-name>
@@ -138,7 +138,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>org.jboss.test.ws.jaxws.jsr181.complex.client.PhoneNumber</java-type>
-<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&quo...
+<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"&g...
<qname-scope>complexType</qname-scope>
<variable-mapping>
<java-variable-name>areaCode</java-variable-name>
@@ -155,7 +155,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>org.jboss.test.ws.jaxws.jsr181.complex.client.RegisterForInvoiceResponse</java-type>
-<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&quo...
+<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"&g...
<qname-scope>complexType</qname-scope>
<variable-mapping>
<java-variable-name>done</java-variable-name>
@@ -164,7 +164,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>org.jboss.test.ws.jaxws.jsr181.complex.client.RegisterForInvoice</java-type>
-<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&quo...
+<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"&g...
<qname-scope>complexType</qname-scope>
<variable-mapping>
<java-variable-name>invoiceCustomer</java-variable-name>
@@ -173,7 +173,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>org.jboss.test.ws.jaxws.jsr181.complex.client.RegisterResponse</java-type>
-<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&quo...
+<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"&g...
<qname-scope>complexType</qname-scope>
<variable-mapping>
<java-variable-name>registeredID</java-variable-name>
@@ -182,7 +182,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>org.jboss.test.ws.jaxws.jsr181.complex.client.GetStatistics</java-type>
-<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&quo...
+<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"&g...
<qname-scope>complexType</qname-scope>
<variable-mapping>
<java-variable-name>customer</java-variable-name>
@@ -191,7 +191,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>org.jboss.test.ws.jaxws.jsr181.complex.client.GetStatisticsResponse</java-type>
-<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&quo...
+<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"&g...
<qname-scope>complexType</qname-scope>
<variable-mapping>
<java-variable-name>statistics</java-variable-name>
@@ -200,7 +200,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>org.jboss.test.ws.jaxws.jsr181.complex.client.Customer</java-type>
-<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&quo...
+<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"&g...
<qname-scope>complexType</qname-scope>
<variable-mapping>
<java-variable-name>address</java-variable-name>
@@ -225,7 +225,7 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>org.jboss.test.ws.jaxws.jsr181.complex.client.AlreadyRegisteredException</java-type>
-<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&quo...
+<root-type-qname
xmlns:typeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"&g...
<qname-scope>complexType</qname-scope>
<variable-mapping>
<java-variable-name>message</java-variable-name>
@@ -238,22 +238,22 @@
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>org.jboss.test.ws.jaxws.jsr181.complex.client.Customer[]</java-type>
-<anonymous-type-qname>http://complex.jsr181.jaxws.ws.test.jboss.org/jaws:BulkRegister>Customers[0,unbounded]</anonymous-type-qname>
+<anonymous-type-qname>http://complex.jsr181.jaxws.ws.test.jboss.org/:BulkRegister>Customers[0,unbounded]</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>long[]</java-type>
-<anonymous-type-qname>http://complex.jsr181.jaxws.ws.test.jboss.org/jaws:BulkRegisterResponse>RegisteredIDs[0,unbounded]</anonymous-type-qname>
+<anonymous-type-qname>http://complex.jsr181.jaxws.ws.test.jboss.org/:BulkRegisterResponse>RegisteredIDs[0,unbounded]</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>org.jboss.test.ws.jaxws.jsr181.complex.client.Customer[]</java-type>
-<anonymous-type-qname>http://complex.jsr181.jaxws.ws.test.jboss.org/jaws:Customer>referredCustomers[0,unbounded]</anonymous-type-qname>
+<anonymous-type-qname>http://complex.jsr181.jaxws.ws.test.jboss.org/:Customer>referredCustomers[0,unbounded]</anonymous-type-qname>
<qname-scope>complexType</qname-scope>
</java-xml-type-mapping>
<exception-mapping>
<exception-type>org.jboss.test.ws.jaxws.jsr181.complex.client.ValidationException</exception-type>
-<wsdl-message
xmlns:exMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&qu...
+<wsdl-message
xmlns:exMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"&...
<constructor-parameter-order>
<element-name>message</element-name>
<element-name>failiedCustomers</element-name>
@@ -261,7 +261,7 @@
</exception-mapping>
<exception-mapping>
<exception-type>org.jboss.test.ws.jaxws.jsr181.complex.client.AlreadyRegisteredException</exception-type>
-<wsdl-message
xmlns:exMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&qu...
+<wsdl-message
xmlns:exMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"&...
<constructor-parameter-order>
<element-name>message</element-name>
<element-name>existingId</element-name>
@@ -269,7 +269,7 @@
</exception-mapping>
<service-interface-mapping>
<service-interface>org.jboss.test.ws.jaxws.jsr181.complex.client.RegistrationServiceService</service-interface>
-<wsdl-service-name
xmlns:serviceNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&...
+<wsdl-service-name
xmlns:serviceNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"...
<port-mapping>
<port-name>RegistrationServicePort</port-name>
<java-port-name>RegistrationServicePort</java-port-name>
@@ -277,8 +277,8 @@
</service-interface-mapping>
<service-endpoint-interface-mapping>
<service-endpoint-interface>org.jboss.test.ws.jaxws.jsr181.complex.client.RegistrationService</service-endpoint-interface>
-<wsdl-port-type
xmlns:portTypeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws...
-<wsdl-binding
xmlns:bindingNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&...
+<wsdl-port-type
xmlns:portTypeNS="http://complex.jsr181.jaxws.ws.test.jboss.org/&quo...
+<wsdl-binding
xmlns:bindingNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"...
<service-endpoint-method-mapping>
<java-method-name>bulkRegister</java-method-name>
<wsdl-operation>BulkRegister</wsdl-operation>
@@ -287,7 +287,7 @@
<param-position>0</param-position>
<param-type>org.jboss.test.ws.jaxws.jsr181.complex.client.Customer[]</param-type>
<wsdl-message-mapping>
-<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&...
+<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"...
<wsdl-message-part-name>Customers</wsdl-message-part-name>
<parameter-mode>IN</parameter-mode>
</wsdl-message-mapping>
@@ -296,14 +296,14 @@
<param-position>1</param-position>
<param-type>java.util.Calendar</param-type>
<wsdl-message-mapping>
-<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&...
+<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"...
<wsdl-message-part-name>When</wsdl-message-part-name>
<parameter-mode>IN</parameter-mode>
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
<method-return-value>long[]</method-return-value>
-<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&...
+<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"...
<wsdl-message-part-name>RegisteredIDs</wsdl-message-part-name>
</wsdl-return-value-mapping>
</service-endpoint-method-mapping>
@@ -315,14 +315,14 @@
<param-position>0</param-position>
<param-type>org.jboss.test.ws.jaxws.jsr181.complex.client.Customer</param-type>
<wsdl-message-mapping>
-<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&...
+<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"...
<wsdl-message-part-name>Customer</wsdl-message-part-name>
<parameter-mode>IN</parameter-mode>
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
<method-return-value>org.jboss.test.ws.jaxws.jsr181.complex.client.Statistics</method-return-value>
-<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&...
+<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"...
<wsdl-message-part-name>Statistics</wsdl-message-part-name>
</wsdl-return-value-mapping>
</service-endpoint-method-mapping>
@@ -334,7 +334,7 @@
<param-position>0</param-position>
<param-type>org.jboss.test.ws.jaxws.jsr181.complex.client.Customer</param-type>
<wsdl-message-mapping>
-<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&...
+<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"...
<wsdl-message-part-name>Customer</wsdl-message-part-name>
<parameter-mode>IN</parameter-mode>
</wsdl-message-mapping>
@@ -343,14 +343,14 @@
<param-position>1</param-position>
<param-type>java.util.Calendar</param-type>
<wsdl-message-mapping>
-<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&...
+<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"...
<wsdl-message-part-name>When</wsdl-message-part-name>
<parameter-mode>IN</parameter-mode>
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
<method-return-value>long</method-return-value>
-<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&...
+<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"...
<wsdl-message-part-name>RegisteredID</wsdl-message-part-name>
</wsdl-return-value-mapping>
</service-endpoint-method-mapping>
@@ -362,14 +362,14 @@
<param-position>0</param-position>
<param-type>org.jboss.test.ws.jaxws.jsr181.complex.client.InvoiceCustomer</param-type>
<wsdl-message-mapping>
-<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&...
+<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"...
<wsdl-message-part-name>InvoiceCustomer</wsdl-message-part-name>
<parameter-mode>IN</parameter-mode>
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
<method-return-value>boolean</method-return-value>
-<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/jaws&...
+<wsdl-message
xmlns:wsdlMsgNS="http://complex.jsr181.jaxws.ws.test.jboss.org/"...
<wsdl-message-part-name>done</wsdl-message-part-name>
</wsdl-return-value-mapping>
</service-endpoint-method-mapping>
Modified: trunk/src/test/resources/jaxws/jsr181/webresult/jaxrpc-mapping.xml
===================================================================
--- trunk/src/test/resources/jaxws/jsr181/webresult/jaxrpc-mapping.xml 2006-11-04 14:49:44
UTC (rev 1369)
+++ trunk/src/test/resources/jaxws/jsr181/webresult/jaxrpc-mapping.xml 2006-11-04 15:38:09
UTC (rev 1370)
@@ -5,7 +5,7 @@
<package-mapping>
<package-type>org.jboss.test.ws.jaxws.jsr181.webresult</package-type>
-
<
namespaceURI>http://webresult.jsr181.jaxws.ws.test.jboss.org/jaws</...
+
<
namespaceURI>http://webresult.jsr181.jaxws.ws.test.jboss.org/</name...
</package-mapping>
</java-wsdl-mapping>
Copied: trunk/src/test/resources/jaxws/wrapped (from rev 1366,
branches/JEE5_TCK/src/test/resources/jaxws/wrapped)
Copied: trunk/src/test/resources/jaxws/wrapped/accessor (from rev 1366,
branches/JEE5_TCK/src/test/resources/jaxws/wrapped/accessor)
Copied: trunk/src/test/resources/jaxws/wrapped/accessor/WEB-INF (from rev 1366,
branches/JEE5_TCK/src/test/resources/jaxws/wrapped/accessor/WEB-INF)
Deleted: trunk/src/test/resources/jaxws/wrapped/accessor/WEB-INF/web.xml
===================================================================
--- branches/JEE5_TCK/src/test/resources/jaxws/wrapped/accessor/WEB-INF/web.xml 2006-11-04
13:15:18 UTC (rev 1366)
+++ trunk/src/test/resources/jaxws/wrapped/accessor/WEB-INF/web.xml 2006-11-04 15:38:09
UTC (rev 1370)
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<web-app
xmlns="http://java.sun.com/xml/ns/j2ee"
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
- version="2.4">
-
- <servlet>
- <servlet-name>AccessorService</servlet-name>
-
<servlet-class>org.jboss.test.ws.jaxws.wrapped.accessor.AccessorImpl</servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>AccessorService</servlet-name>
- <url-pattern>/AccessorService</url-pattern>
- </servlet-mapping>
-</web-app>
Copied: trunk/src/test/resources/jaxws/wrapped/accessor/WEB-INF/web.xml (from rev 1366,
branches/JEE5_TCK/src/test/resources/jaxws/wrapped/accessor/WEB-INF/web.xml)
Modified: trunk/version.properties
===================================================================
--- trunk/version.properties 2006-11-04 14:49:44 UTC (rev 1369)
+++ trunk/version.properties 2006-11-04 15:38:09 UTC (rev 1370)
@@ -17,7 +17,8 @@
apache-xmlsec=1.3.0
ibm-wsdl4j=1.5.2jboss
javassist=3.3.0.GA
-jboss-common=1.0.2
+jboss-common-core=2.0.2.CR1
+jboss-common-logging=2.0.1.GA
jboss-jbossxb=1.0.0.CR6
jboss-microcontainer=snapshot
jboss-remoting=2.2.0.Alpha2