c# .net client and complex arrays

Snorre Narum <[email protected]>
Newsgroups gmane.comp.windows.devel.soap.general
Message-ID <[email protected]>
I'm developing an application where I use Wasp 4.0 c++ as a soap server.
One of my methods return
an array of an array of a complex type (the essential parts of the wsdl
is listed below). When using wasp 4.0 java as a
client this works very well, but I'm not able to get this to work using
.net and c#. All I get is an exception.
Does .net support complex arrays like this? according to the
documentation on the soap .net toolkit 2.0
this should be supported, but I've found others having similar problems.
I'm happy for any hint or tips as
to how to solve this or make a workaround.


<definitions name ='customerService'
targetNamespace ='http://www.ejournal.no'
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ej='http://www.ejournal.no'
xmlns='http://schemas.xmlsoap.org/wsdl/'>


<types>
<schema targetNamespace='http://www.ejournal.no'
xmlns='http://www.w3.org/2001/XMLSchema'>

<complexType name='ResultStruct'>
<sequence>
<element name='field' type='xsd:string'/>
<element name='value' type='xsd:string'/>
<!--element name='type' type='ej:FieldType'/-->
<element name='type' type='xsd:string'/>
</sequence>
</complexType>

<complexType name='ArrayOfResultStruct'>
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name='item' type='ej:ResultStruct'/>
</sequence>
<attribute ref="SOAP-ENC:arrayType"
wsdl:arrayType="ej:ResultStruct[]"/>
</restriction>
</complexContent>
</complexType>

<complexType name='ArrayOfArrayOfResultStruct'>
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name='atam' type='ej:ArrayOfResultStruct'/>
</sequence>
<attribute ref="SOAP-ENC:arrayType"
wsdl:arrayType="ej:ArrayOfResultStruct[]"/>
</restriction>
</complexContent>
</complexType>

</schema>
</types>

You can read messages from the SOAP archive, unsubscribe from SOAP, or subscribe to other
DevelopMentor lists at http://discuss.develop.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.