You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by gd...@apache.org on 2004/02/23 15:17:43 UTC
cvs commit: ws-axis/java/test/wsdl/types VerifyTestCase.java
gdaniels 2004/02/23 06:17:43
Modified: java/src/org/apache/axis/encoding/ser
Base64Deserializer.java BeanDeserializer.java
HexDeserializer.java SimpleDeserializer.java
java/src/org/apache/axis/wsdl/symbolTable SymbolTable.java
java/test/wsdl/types VerifyTestCase.java
Log:
Fix bug #25486 (and perhaps others) by cleaning
up some simple type deserialization problems.
* Base64Deserializer and HexDeserializer now both extend
SimpleDeserializer, so that the system can tell they
are simple types.
* BeanDeserializer now uses the XMLType information
available in the TypeDesc in order to find the right
deserializer for attribute values.
* Make error for missing message attribute in WSDL2Java
much clearer.
* Fix some formatting problems.
Revision Changes Path
1.11 +22 -47 ws-axis/java/src/org/apache/axis/encoding/ser/Base64Deserializer.java
Index: Base64Deserializer.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/encoding/ser/Base64Deserializer.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- Base64Deserializer.java 22 Apr 2003 19:34:27 -0000 1.10
+++ Base64Deserializer.java 23 Feb 2004 14:17:42 -0000 1.11
@@ -56,9 +56,6 @@
package org.apache.axis.encoding.ser;
import org.apache.axis.encoding.Base64;
-import org.apache.axis.encoding.DeserializationContext;
-import org.apache.axis.encoding.DeserializerImpl;
-import org.xml.sax.SAXException;
import javax.xml.namespace.QName;
@@ -69,60 +66,38 @@
* Modified by @author Rich scheuerle <sc...@us.ibm.com>
* @see <a href="http://www.w3.org/TR/xmlschema-2/#base64Binary">XML Schema 3.2.16</a>
*/
-public class Base64Deserializer extends DeserializerImpl {
-
- public QName xmlType;
- public Class javaType;
-
- StringBuffer buf = null;
+public class Base64Deserializer extends SimpleDeserializer {
public Base64Deserializer(Class javaType, QName xmlType) {
- this.xmlType = xmlType;
- this.javaType = javaType;
+ super(javaType, xmlType);
}
/**
- * Handle any characters found in the data
- */
- public void characters(char [] chars, int start, int end)
- throws SAXException
- {
- // Characters are collected in a buffer because
- // SAX may chunk the data.
- if (buf == null) {
- buf = new StringBuffer();
- }
- buf.append(chars, start, end);
- }
-
- /**
- * Return something even if no characters were found.
+ * Convert the string that has been accumulated into an Object. Subclasses
+ * may override this. Note that if the javaType is a primitive, the returned
+ * object is a wrapper class.
+ * @param source the serialized value to be deserialized
+ * @throws Exception any exception thrown by this method will be wrapped
*/
- public void onEndElement(String namespace, String localName,
- DeserializationContext context)
- throws SAXException
- {
- // Decode the collected characters
- if (buf != null) {
- value = Base64.decode(buf.toString());
+ public Object makeValue(String source) throws Exception {
+ byte [] value = Base64.decode(source);
+
+ if (value == null) {
if (javaType == Byte[].class) {
- Byte[] data = new Byte[ ((byte[])value).length ];
- for (int i=0; i<data.length; i++) {
- byte b = ((byte[]) value)[i];
- data[i] = new Byte(b);
- }
- value = data;
+ return new Byte[0];
+ } else {
+ return new byte[0];
}
}
-
- super.onEndElement(namespace,localName, context);
- // If no value was specified, return a zero length byte or Byte array
- if (value == null) {
- if (javaType == byte[].class) {
- value = new byte[0];
- } else {
- value = new Byte[0];
+
+ if (javaType == Byte[].class) {
+ Byte[] data = new Byte[ value.length ];
+ for (int i=0; i<data.length; i++) {
+ byte b = value[i];
+ data[i] = new Byte(b);
}
+ return data;
}
+ return value;
}
}
1.63 +6 -2 ws-axis/java/src/org/apache/axis/encoding/ser/BeanDeserializer.java
Index: BeanDeserializer.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/encoding/ser/BeanDeserializer.java,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- BeanDeserializer.java 8 Dec 2003 16:03:06 -0000 1.62
+++ BeanDeserializer.java 23 Feb 2004 14:17:42 -0000 1.63
@@ -384,6 +384,8 @@
if (fieldName == null)
continue;
+ FieldDesc fieldDesc = typeDesc.getFieldByName(fieldName);
+
// look for the attribute property
BeanPropertyDescriptor bpd =
(BeanPropertyDescriptor) propertyMap.get(fieldName);
@@ -391,8 +393,10 @@
if (!bpd.isWriteable() || bpd.isIndexed() ) continue ;
// Get the Deserializer for the attribute
- Deserializer dSer = getDeserializer(null, bpd.getType(),
- null, context);
+ Deserializer dSer = getDeserializer(fieldDesc.getXmlType(),
+ bpd.getType(),
+ null,
+ context);
if (dSer == null) {
dSer = context.getDeserializerForClass(bpd.getType());
}
1.9 +16 -38 ws-axis/java/src/org/apache/axis/encoding/ser/HexDeserializer.java
Index: HexDeserializer.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/encoding/ser/HexDeserializer.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- HexDeserializer.java 22 Apr 2003 19:34:29 -0000 1.8
+++ HexDeserializer.java 23 Feb 2004 14:17:42 -0000 1.9
@@ -55,10 +55,7 @@
package org.apache.axis.encoding.ser;
-import org.apache.axis.encoding.DeserializationContext;
-import org.apache.axis.encoding.DeserializerImpl;
import org.apache.axis.types.HexBinary;
-import org.xml.sax.SAXException;
import javax.xml.namespace.QName;
@@ -69,46 +66,27 @@
* Modified by @author Rich scheuerle <sc...@us.ibm.com>
* @see <a href="http://www.w3.org/TR/xmlschema-2/#hexBinary">XML Schema 3.2.16</a>
*/
-public class HexDeserializer extends DeserializerImpl {
-
- public QName xmlType;
- public Class javaType;
-
- StringBuffer buf = null;
+public class HexDeserializer extends SimpleDeserializer {
public HexDeserializer(Class javaType, QName xmlType) {
- this.xmlType = xmlType;
- this.javaType = javaType;
+ super(javaType, xmlType);
}
+
/**
- * Handle any characters found in the data
- */
- public void characters(char [] chars, int start, int end)
- throws SAXException
- {
- // Characters are collected in a buffer because
- // SAX may chunk the data.
- if (buf == null) {
- buf = new StringBuffer();
- }
- buf.append(chars, start, end);
- }
-
- /**
- * Return something even if no characters were found.
+ * Convert the string that has been accumulated into an Object. Subclasses
+ * may override this. Note that if the javaType is a primitive, the returned
+ * object is a wrapper class.
+ * @param source the serialized value to be deserialized
+ * @throws Exception any exception thrown by this method will be wrapped
*/
- public void onEndElement(String namespace, String localName,
- DeserializationContext context)
- throws SAXException
- {
- if (buf != null) {
- if (javaType == byte[].class) {
- value = HexBinary.decode(buf.toString());
- } else {
- value = new HexBinary(buf.toString());
- }
+ public Object makeValue(String source) throws Exception {
+ Object result;
+ if (javaType == byte[].class) {
+ result = HexBinary.decode(source);
+ } else {
+ result = new HexBinary(source);
}
- super.onEndElement(namespace,localName, context);
- if (value == null) value = new HexBinary("");
+ if (result == null) result = new HexBinary("");
+ return result;
}
}
1.36 +103 -98 ws-axis/java/src/org/apache/axis/encoding/ser/SimpleDeserializer.java
Index: SimpleDeserializer.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/encoding/ser/SimpleDeserializer.java,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- SimpleDeserializer.java 29 Nov 2003 16:12:05 -0000 1.35
+++ SimpleDeserializer.java 23 Feb 2004 14:17:42 -0000 1.36
@@ -1,57 +1,57 @@
/*
- * The Apache Software License, Version 1.1
- *
- *
- * Copyright (c) 2001-2003 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- * if any, must include the following acknowledgment:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowledgment may appear in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The names "Axis" and "Apache Software Foundation" must
- * not be used to endorse or promote products derived from this
- * software without prior written permission. For written
- * permission, please contact apache@apache.org.
- *
- * 5. Products derived from this software may not be called "Apache",
- * nor may "Apache" appear in their name, without prior written
- * permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- * ====================================================================
- *
- * This software consists of voluntary contributions made by many
- * individuals on behalf of the Apache Software Foundation. For more
- * information on the Apache Software Foundation, please see
- * <http://www.apache.org/>.
- */
+* The Apache Software License, Version 1.1
+*
+*
+* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
+* reserved.
+*
+* Redistribution and use in source and binary forms, with or without
+* modification, are permitted provided that the following conditions
+* are met:
+*
+* 1. Redistributions of source code must retain the above copyright
+* notice, this list of conditions and the following disclaimer.
+*
+* 2. Redistributions in binary form must reproduce the above copyright
+* notice, this list of conditions and the following disclaimer in
+* the documentation and/or other materials provided with the
+* distribution.
+*
+* 3. The end-user documentation included with the redistribution,
+* if any, must include the following acknowledgment:
+* "This product includes software developed by the
+* Apache Software Foundation (http://www.apache.org/)."
+* Alternately, this acknowledgment may appear in the software itself,
+* if and wherever such third-party acknowledgments normally appear.
+*
+* 4. The names "Axis" and "Apache Software Foundation" must
+* not be used to endorse or promote products derived from this
+* software without prior written permission. For written
+* permission, please contact apache@apache.org.
+*
+* 5. Products derived from this software may not be called "Apache",
+* nor may "Apache" appear in their name, without prior written
+* permission of the Apache Software Foundation.
+*
+* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+* SUCH DAMAGE.
+* ====================================================================
+*
+* This software consists of voluntary contributions made by many
+* individuals on behalf of the Apache Software Foundation. For more
+* information on the Apache Software Foundation, please see
+* <http://www.apache.org/>.
+*/
package org.apache.axis.encoding.ser;
@@ -87,17 +87,17 @@
* Modified for JAX-RPC @author Rich Scheuerle (scheu@us.ibm.com)
*/
public class SimpleDeserializer extends DeserializerImpl {
-
+
private final CharArrayWriter val = new CharArrayWriter();
private Constructor constructor = null;
private Map propertyMap = null;
private HashMap attributeMap = null;
-
+
public QName xmlType;
public Class javaType;
-
+
private TypeDesc typeDesc = null;
-
+
protected SimpleDeserializer cacheStringDSer = null;
protected QName cacheXMLType = null;
/**
@@ -107,7 +107,7 @@
public SimpleDeserializer(Class javaType, QName xmlType) {
this.xmlType = xmlType;
this.javaType = javaType;
-
+
init();
}
public SimpleDeserializer(Class javaType, QName xmlType, TypeDesc typeDesc) {
@@ -117,10 +117,10 @@
init();
}
-
- /**
- * Initialize the typeDesc, property descriptors and propertyMap.
- */
+
+ /**
+ * Initialize the typeDesc, property descriptors and propertyMap.
+ */
private void init() {
// The typeDesc and map array are only necessary
// if this class extends SimpleType.
@@ -143,7 +143,7 @@
}
}
}
-
+
/**
* Reset deserializer for re-use
*/
@@ -153,7 +153,7 @@
isNil = false; // Don't know if nil
isEnded = false; // Indicate the end of element not yet called
}
-
+
/**
* Remove the Value Targets of the Deserializer.
* Simple deserializers may be re-used, so don't
@@ -165,7 +165,7 @@
// targets = null;
}
}
-
+
/**
* The Factory calls setConstructor.
*/
@@ -173,7 +173,7 @@
{
constructor = c;
}
-
+
/**
* There should not be nested elements, so thow and exception if this occurs.
*/
@@ -182,7 +182,7 @@
String prefix,
Attributes attributes,
DeserializationContext context)
- throws SAXException
+ throws SAXException
{
throw new SAXException(
Messages.getMessage("cantHandle00", "SimpleDeserializer"));
@@ -193,7 +193,7 @@
* by Deserializer.
*/
public void characters(char [] chars, int start, int end)
- throws SAXException
+ throws SAXException
{
val.write(chars,start,end);
}
@@ -203,10 +203,10 @@
* Deserializer.
*/
public void onEndElement(String namespace, String localName,
- DeserializationContext context)
- throws SAXException
+ DeserializationContext context)
+ throws SAXException
{
- if (isNil || (val.size() == 0 && javaType != java.lang.String.class)) {
+ if (isNil) {
value = null;
return;
}
@@ -215,9 +215,9 @@
} catch (InvocationTargetException ite) {
Throwable realException = ite.getTargetException();
if (realException instanceof Exception)
- throw new SAXException((Exception)realException);
+ throw new SAXException((Exception)realException);
else
- throw new SAXException(ite.getMessage());
+ throw new SAXException(ite.getMessage());
} catch (Exception e) {
throw new SAXException(e);
}
@@ -235,26 +235,31 @@
*/
public Object makeValue(String source) throws Exception
{
+ if (source.length() == 0 && typeDesc == null &&
+ javaType != java.lang.String.class) {
+ return null;
+ }
+
// If the javaType is a boolean, except a number of different sources
if (javaType == boolean.class || javaType == Boolean.class) {
// This is a pretty lame test, but it is what the previous code did.
switch (source.charAt(0)) {
case '0': case 'f': case 'F':
- return Boolean.FALSE;
-
+ return Boolean.FALSE;
+
case '1': case 't': case 'T':
- return Boolean.TRUE;
-
+ return Boolean.TRUE;
+
default:
- throw new NumberFormatException(
- Messages.getMessage("badBool00"));
+ throw new NumberFormatException(
+ Messages.getMessage("badBool00"));
}
}
-
+
// If expecting a Float or a Double, need to accept some special cases.
if (javaType == float.class ||
- javaType == java.lang.Float.class) {
+ javaType == java.lang.Float.class) {
if (source.equals("NaN")) {
return new Float(Float.NaN);
} else if (source.equals("INF")) {
@@ -264,7 +269,7 @@
}
}
if (javaType == double.class ||
- javaType == java.lang.Double.class) {
+ javaType == java.lang.Double.class) {
if (source.equals("NaN")) {
return new Double(Double.NaN);
} else if (source.equals("INF")) {
@@ -274,16 +279,16 @@
}
}
if (constructor == null) {
- try {
+ try {
constructor =
- javaType.getDeclaredConstructor(new Class [] {String.class});
- } catch (Exception e) {
+ javaType.getDeclaredConstructor(new Class [] {String.class});
+ } catch (Exception e) {
return null;
- }
+ }
}
return constructor.newInstance(new Object [] { source });
}
-
+
/**
* Set the bean properties that correspond to element attributes.
*
@@ -300,7 +305,7 @@
DeserializationContext context)
throws SAXException
{
-
+
// If we have no metadata, we have no attributes. Q.E.D.
if (typeDesc == null)
return;
@@ -313,13 +318,13 @@
String fieldName = typeDesc.getFieldNameForAttribute(attrQName);
if (fieldName == null)
continue;
-
+
// look for the attribute property
BeanPropertyDescriptor bpd =
(BeanPropertyDescriptor) propertyMap.get(fieldName);
if (bpd != null) {
if (!bpd.isWriteable() || bpd.isIndexed() ) continue ;
-
+
// determine the QName for this child element
TypeMapping tm = context.getTypeMapping();
Class type = bpd.getType();
@@ -327,7 +332,7 @@
if (qn == null)
throw new SAXException(
Messages.getMessage("unregistered00", type.toString()));
-
+
// get the deserializer
Deserializer dSer = context.getDeserializerForType(qn);
if (dSer == null)
@@ -336,9 +341,9 @@
if (! (dSer instanceof SimpleDeserializer))
throw new SAXException(
Messages.getMessage("AttrNotSimpleType00",
- bpd.getName(),
- type.toString()));
-
+ bpd.getName(),
+ type.toString()));
+
// Success! Create an object from the string and save
// it in our attribute map for later.
if (attributeMap == null) {
@@ -346,7 +351,7 @@
}
try {
Object val = ((SimpleDeserializer)dSer).
- makeValue(attributes.getValue(i));
+ makeValue(attributes.getValue(i));
attributeMap.put(fieldName, val);
} catch (Exception e) {
throw new SAXException(e);
@@ -354,14 +359,14 @@
} // if
} // attribute loop
} // onStartElement
-
+
/**
* Process any attributes we may have encountered (in onStartElement)
*/
private void setSimpleTypeAttributes() throws SAXException {
// if this isn't a simpleType bean, wont have attributes
if (! SimpleType.class.isAssignableFrom(javaType) ||
- attributeMap == null)
+ attributeMap == null)
return;
// loop through map
@@ -381,5 +386,5 @@
}
}
}
-
+
}
1.89 +24 -3 ws-axis/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java
Index: SymbolTable.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -r1.88 -r1.89
--- SymbolTable.java 6 Feb 2004 00:10:57 -0000 1.88
+++ SymbolTable.java 23 Feb 2004 14:17:43 -0000 1.89
@@ -1480,14 +1480,27 @@
}
Input input = operation.getInput();
-
+ Message message;
+
if (input != null) {
- ensureOperationMessageValid(input.getMessage());
+ message = input.getMessage();
+ if (message == null) {
+ throw new IOException(
+ "No 'message' attribute in <input> for operation '" +
+ operation.getName() + "'");
+ }
+ ensureOperationMessageValid(message);
}
Output output = operation.getOutput();
if (output != null) {
+ message = output.getMessage();
+ if (message == null) {
+ throw new IOException(
+ "No 'message' attribute in <output> for operation '" +
+ operation.getName() + "'");
+ }
ensureOperationMessageValid(output.getMessage());
}
@@ -1497,7 +1510,15 @@
Iterator it = faults.values().iterator();
while (it.hasNext()) {
- ensureOperationMessageValid(((Fault) it.next()).getMessage());
+ Fault fault = (Fault)it.next();
+ message = fault.getMessage();
+ if (message == null) {
+ throw new IOException(
+ "No 'message' attribute in <fault> named '" +
+ fault.getName() + "' for operation '" +
+ operation.getName() + "'");
+ }
+ ensureOperationMessageValid(message);
}
}
}
1.43 +6 -17 ws-axis/java/test/wsdl/types/VerifyTestCase.java
Index: VerifyTestCase.java
===================================================================
RCS file: /home/cvs/ws-axis/java/test/wsdl/types/VerifyTestCase.java,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- VerifyTestCase.java 19 Dec 2003 09:06:42 -0000 1.42
+++ VerifyTestCase.java 23 Feb 2004 14:17:43 -0000 1.43
@@ -30,14 +30,13 @@
import org.apache.axis.types.NonPositiveInteger;
import org.apache.axis.types.PositiveInteger;
import org.apache.axis.types.URI;
+import org.apache.axis.types.URI.MalformedURIException;
import org.apache.axis.types.UnsignedByte;
import org.apache.axis.types.UnsignedInt;
import org.apache.axis.types.UnsignedLong;
import org.apache.axis.types.UnsignedShort;
import org.apache.axis.types.Year;
import org.apache.axis.types.YearMonth;
-import org.apache.axis.types.URI.MalformedURIException;
-
import test.wsdl.types.comprehensive_service.TypeTest;
import test.wsdl.types.comprehensive_service.TypeTestServiceLocator;
import test.wsdl.types.comprehensive_types.Animal;
@@ -47,18 +46,10 @@
import test.wsdl.types.comprehensive_types.ComplexWComplex;
import test.wsdl.types.comprehensive_types.EmptyComplexType;
import test.wsdl.types.comprehensive_types.Enum;
-import test.wsdl.types.comprehensive_types.EnumByte;
-import test.wsdl.types.comprehensive_types.EnumDouble;
-import test.wsdl.types.comprehensive_types.EnumFloat;
-import test.wsdl.types.comprehensive_types.EnumInt;
-import test.wsdl.types.comprehensive_types.EnumLong;
-import test.wsdl.types.comprehensive_types.EnumShort;
-import test.wsdl.types.comprehensive_types.EnumString;
import test.wsdl.types.comprehensive_types.PersionCat;
-import test.wsdl.types.comprehensive_types._complexWComplex_stock_quote;
-import test.wsdl.types.comprehensive_types.StringParameter;
import test.wsdl.types.comprehensive_types.Time;
import test.wsdl.types.comprehensive_types.Yarn;
+import test.wsdl.types.comprehensive_types._complexWComplex_stock_quote;
import test.wsdl.types.comprehensive_types.holders.AnimalHolder;
import test.wsdl.types.comprehensive_types.holders.ArrayHolder;
import test.wsdl.types.comprehensive_types.holders.ArrayMHolder;
@@ -109,7 +100,7 @@
}
*/
- public void testTypeTest() {
+ public void testTypeTest() throws Exception {
TypeTest binding;
try {
binding = new TypeTestServiceLocator().getTypeTest();
@@ -421,11 +412,9 @@
ComplexWComplex complexWComplex = new ComplexWComplex();
complexWComplex.setStock_quote(stockQuote);
complexWComplex.setOutside(22);
- try {
- binding.complexWComplexIn(complexWComplex);
- } catch (java.rmi.RemoteException re) {
- throw new junit.framework.AssertionFailedError("complexWComplexIn Exception caught: " + re );
- }
+
+ binding.complexWComplexIn(complexWComplex);
+
try {
binding.complexWComplexInout(new ComplexWComplexHolder(complexWComplex));
} catch (java.rmi.RemoteException re) {