Hello
I have a tcl-webservice based on tclsoap/tclhttpd. A function returns an
array of structs.
The problem (someone from csharp.de ng told me): The Soap-functionality
of the .Net Framework does not support Arrays of Structures.. but it
would accept arrays of classes.
On tcl-side i have no classes.... any ideas?
I am almost sure that the xml received by the client is correct, but
..Net answers with an error.
xml:
<?xml version='1.0'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance'
xmlns:xsd='http://www.w3.org/1999/XMLSchema'
xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'><SOAP-ENV:Body><ns:getArrayOfSimpleStructResponse
xmlns:ns='Obu2is'
SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'><return
xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'
xsi:type='SOAP-ENC:Array' SOAP-ENC:offset='[0]'
SOAP-ENC:arrayType='Obu2is:SimpleStruct[1]'><item
xsi:type='Obu2is:SimpleStruct'><zeile1
xsi:type='xsd:string'>MeineZeile1</zeile1><zeile2
xsi:type='xsd:string'>MeineZeile2</zeile2><zeile3
xsi:type='xsd:string'>MeineZeile3</zeile3></item></return></ns:getArrayOfSimpleStructResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
error:
"An unhandled exception of type 'System.InvalidOperationException'
occurred in system.xml.dll Additional information: There is an error in
XML document (2, 373)."
Thanks in advance