Serialization problem with arrays when consuming java webservice i

  • Thread starter Thread starter Guest
  • Start date Start date
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>
 
You might want to post this in microsoft.public.dotnet.framework.webservices
area. There might be someone who can help you there.

Can you get Java webservice to send the data as doc/literal (or at least
rpc/literal) instead of rpc/encoding.. It might be hard to do interop with
encoding enables.
Look into WS-I BasicProfile 1.0 which talks about some of the basic rules
for interop.
 
Back
Top