For Programmers: Free Programming Magazines  


Home > Archive > Tcl > March 2006 > confused ------ .Net-Client using tcl-Webservice









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author confused ------ .Net-Client using tcl-Webservice
Pascal Flückiger

2006-03-25, 8:01 am

Hello

I have a tcl-webservice based on tclsoap/tclhttpd. A function should
return an array of structs.
The problem (someone from .net ng told me): The Soap-functionality of
..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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com