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=18530>. 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=18530 org.xml.sax.SAXException: No deserializer defined for array type AcnInfoRow Summary: org.xml.sax.SAXException: No deserializer defined for array type AcnInfoRow Product: Axis Version: 1.0 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Blocker Priority: Other Component: Serialization/Deserialization AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I have a web service that returns an array of objects, each object consists of three strings and one array of strings (.wsdl file included below). WSDL2Java runs just fine, creating (among other things) AcnInfoRow.java. The soap messages between my java client and the service look fine, and all services that return single objects (such as strings or ints), or arrays of simply objects (array of string, in this case), work fine. However, when I try to invoke the service that returns an AcnInfoRow[], I get the exception below. I have searched the archive and tried all the suggestions I found... to no avail. I really appreciate your help, Michael ======================Exception================================= - Exception: org.xml.sax.SAXException: No deserializer defined for array type AcnInfoRow at org.apache.axis.encoding.ser.ArrayDeserializer. onStartElement(ArrayDeserializer.java:303) at org.apache.axis.encoding.DeserializerImpl. startElement(DeserializerImpl.java:428) at org.apache.axis.encoding.DeserializationContextImpl. startElement(DeserializationContextImpl.java:934) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder. java:198) at org.apache.axis.message.MessageElement. publishToHandler(MessageElement.java:699) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:224) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:331) at org.apache.axis.client.Call.invoke(Call.java:2200) at org.apache.axis.client.Call.invoke(Call.java:2099) at org.apache.axis.client.Call.invoke(Call.java:1622) at schaat_allenm.HandTest.main(HandTest.java:61) =======================WSDL====================== <?xml version="1.0" encoding="UTF-8"?> <definitions name="ACNInfoWebServer" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://schaat-allenm:8080/ACNInfoWebServer.wsdl" xmlns:tns="http://schaat-allenm:8080/ACNInfoWebServer.wsdl" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:iw="urn:acn-infoserver-webservice"> <types> <schema targetNamespace="urn:acn-infoserver-webservice" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:iw="urn:acn-infoserver-webservice" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified" attributeFormDefault="unqualified"> <complexType name="ArrayOfstring"> <complexContent> <restriction base="SOAP-ENC:Array"> <sequence> <element name="item" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/> </sequence> <attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="xsd:string[]"/> </restriction> </complexContent> </complexType> <complexType name="AcnInfoRow"> <sequence> <element name="market" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/> <element name="product" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/> <element name="period" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/> <element name="facts" type="iw:ArrayOfstring" minOccurs="1" maxOccurs="1" nillable="true"/> </sequence> </complexType> <complexType name="ArrayOfAcnInfoRow"> <complexContent> <restriction base="SOAP-ENC:Array"> <sequence> <element name="item" type="iw:AcnInfoRow" minOccurs="0" maxOccurs="unbounded"/> </sequence> <attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="iw:AcnInfoRow[]"/> </restriction> </complexContent> </complexType> <complexType name="getAcnInfoTableResult"> <all> <element name="foo" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/> <element name="table" type="iw:ArrayOfAcnInfoRow" minOccurs="1" maxOccurs="1" nillable="true"/> </all> </complexType> <complexType name="AcnDbInfo"> <sequence> <element name="physicalName" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/> <element name="numberDims" type="xsd:int" minOccurs="1" maxOccurs="1"/> <element name="logicalName" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/> <element name="factDims" type="xsd:int" minOccurs="1" maxOccurs="1"/> <element name="timeDims" type="xsd:int" minOccurs="1" maxOccurs="1"/> </sequence> </complexType> </schema> </types> <message name="getDbInfoRequest"> <part name="db" type="xsd:string"/> <part name="usr" type="xsd:string"/> <part name="passwd" type="xsd:string"/> </message> <message name="AcnDbInfo"> <part name="physicalName" type="xsd:string"/> <part name="numberDims" type="xsd:int"/> <part name="logicalName" type="xsd:string"/> <part name="factDims" type="xsd:int"/> <part name="timeDims" type="xsd:int"/> </message> <message name="getFirstRowRequest"> <part name="db" type="xsd:string"/> <part name="usr" type="xsd:string"/> <part name="passwd" type="xsd:string"/> <part name="get-name" type="xsd:string"/> <part name="get-string" type="xsd:string"/> </message> <message name="AcnInfoRow"> <part name="market" type="xsd:string"/> <part name="product" type="xsd:string"/> <part name="period" type="xsd:string"/> <part name="facts" type="iw:ArrayOfstring"/> </message> <message name="getTableRequest"> <part name="db" type="xsd:string"/> <part name="usr" type="xsd:string"/> <part name="passwd" type="xsd:string"/> <part name="get-name" type="xsd:string"/> <part name="get-string" type="xsd:string"/> </message> <message name="getTableResponse"> <part name="result" type="iw:ArrayOfAcnInfoRow"/> </message> <message name="getTable2Request"> <part name="db" type="xsd:string"/> <part name="usr" type="xsd:string"/> <part name="passwd" type="xsd:string"/> <part name="get-name" type="xsd:string"/> <part name="get-string" type="xsd:string"/> </message> <message name="getAcnInfoTableResult"> <part name="foo" type="xsd:string"/> <part name="table" type="iw:ArrayOfAcnInfoRow"/> </message> <portType name="ACNInfoWebServerPortType"> <operation name="getDbInfo"> <documentation>Service definition of function iw__getDbInfo</documentation> <input message="tns:getDbInfoRequest"/> <output message="tns:AcnDbInfo"/> </operation> <operation name="getFirstRow"> <documentation>Service definition of function iw__getFirstRow</documentation> <input message="tns:getFirstRowRequest"/> <output message="tns:AcnInfoRow"/> </operation> <operation name="getTable"> <documentation>Service definition of function iw__getTable</documentation> <input message="tns:getTableRequest"/> <output message="tns:getTableResponse"/> </operation> <operation name="getTable2"> <documentation>Service definition of function iw__getTable2</documentation> <input message="tns:getTable2Request"/> <output message="tns:getAcnInfoTableResult"/> </operation> </portType> <binding name="ACNInfoWebServerBinding" type="tns:ACNInfoWebServerPortType"> <SOAP:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="getDbInfo"> <SOAP:operation soapAction=""/> <input> <SOAP:body use="encoded" namespace="urn:acn-infoserver-webservice" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <SOAP:body use="encoded" namespace="urn:acn-infoserver-webservice" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="getFirstRow"> <SOAP:operation soapAction=""/> <input> <SOAP:body use="encoded" namespace="urn:acn-infoserver-webservice" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <SOAP:body use="encoded" namespace="urn:acn-infoserver-webservice" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="getTable"> <SOAP:operation soapAction=""/> <input> <SOAP:body use="encoded" namespace="urn:acn-infoserver-webservice" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <SOAP:body use="encoded" namespace="urn:acn-infoserver-webservice" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> <operation name="getTable2"> <SOAP:operation soapAction=""/> <input> <SOAP:body use="encoded" namespace="urn:acn-infoserver-webservice" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <SOAP:body use="encoded" namespace="urn:acn-infoserver-webservice" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> </binding> <service name="ACNInfoWebServer"> <documentation>gSOAP 2.2.3 generated service definition</documentation> <port name="ACNInfoWebServer" binding="tns:ACNInfoWebServerBinding"> <SOAP:address location="http://schaat-allenm:8080"/> </port> </service> </definitions>
