G
Guest
My college and I are writing a class library (in C#) that consumes a java
webservice. This webservice contains several objects which holds request and
response properties and an object that has the method to invoke the
webservice. This method has a parameter which holds the request object and,
when it's done, returns the response object.
Both the request and response objects have a property that contains an array
of objects. When calling the invoke method, whe get the error "No
Deserializer found to deserialize a ':CA' using encoding stye
'http://schemas/xmlsoap.org/soap/encoding/"
When we get rid of the arrays in the request and response objects, the call
returns perfect data.
Can anyone help us?
Below is a part of the request schema which contains the array:
<complexType name ="RequestObject">
<all>
<element name="CA" type="xsd1:ArrayOfMotor.CACover"/>
</all>
</complexType>
<complexType name="Motor.CACover">
<all>
<element name="CA_CODE" type="string"/>
<element name="CA_ERA" type="string"/>
<element name="CA_Z_PERCLOA" type="double"/>
<element name="CA_Z_PERCCOL" type="double"/>
</all>
</complexType>
<complexType name="ArrayOfMotor.CADekking">
<complexContent>
<restriction base="soapenc:Array">
<sequence/>
<attribute ref="soapenc:arrayType"
wsdl:arrayType="xsd1:Motor.CADekking[]"/>
</restriction>
</complexContent>
</complexType>
webservice. This webservice contains several objects which holds request and
response properties and an object that has the method to invoke the
webservice. This method has a parameter which holds the request object and,
when it's done, returns the response object.
Both the request and response objects have a property that contains an array
of objects. When calling the invoke method, whe get the error "No
Deserializer found to deserialize a ':CA' using encoding stye
'http://schemas/xmlsoap.org/soap/encoding/"
When we get rid of the arrays in the request and response objects, the call
returns perfect data.
Can anyone help us?
Below is a part of the request schema which contains the array:
<complexType name ="RequestObject">
<all>
<element name="CA" type="xsd1:ArrayOfMotor.CACover"/>
</all>
</complexType>
<complexType name="Motor.CACover">
<all>
<element name="CA_CODE" type="string"/>
<element name="CA_ERA" type="string"/>
<element name="CA_Z_PERCLOA" type="double"/>
<element name="CA_Z_PERCCOL" type="double"/>
</all>
</complexType>
<complexType name="ArrayOfMotor.CADekking">
<complexContent>
<restriction base="soapenc:Array">
<sequence/>
<attribute ref="soapenc:arrayType"
wsdl:arrayType="xsd1:Motor.CADekking[]"/>
</restriction>
</complexContent>
</complexType>