You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2002/11/12 19:06:43 UTC
DO NOT REPLY [Bug 14484] -
Deserialization of complex classes throws SAXException
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14484>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14484
Deserialization of complex classes throws SAXException
karthik.jayaprakasham@ldc.lu.se changed:
What |Removed |Added
----------------------------------------------------------------------------
OS/Version|Other |Windows NT/2K
------- Additional Comments From karthik.jayaprakasham@ldc.lu.se 2002-11-12 18:06 -------
Here's the mapping part of the source code of the java class implementing SOAP
1.1.
ErrorObject[] errorObject = new ErrorObject[10];
smr.mapTypes(
Constants.NS_URI_SOAP_ENC,
new QName("http://x.y.z", "errorObject"),
errorObject.getClass(),
beanSer,
beanSer);
Here's a section of the java bean that holds this "errorObject" property.
public ErrorObject[] errorObject;
/** Getter for property errorObject.
* @return Value of property errorObject.
*/
public ErrorObject[] getErrorObject() {
return this.errorObject;
}
/** Setter for property errorObject.
* @param errorObject New value of property errorObject.
*/
public void setErrorObject(ErrorObject[] errorObject) {
this.errorObject = errorObject;
}
Here's the WSDl descriptor part of the AXIS webservice that describes the error
object
<element name="errorObject" nillable="true"
type="intf:ArrayOf_tns2_ErrorObject" />
And the ErrorObject itself looks like
<complexType name="ArrayOf_tns2_ErrorObject">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="tns2:ErrorObject[]" />
</restriction>
</complexContent>
</complexType>