Re: c# .net client and complex arrays
Michael Wooten <[email protected]>
| Newsgroups | gmane.comp.windows.devel.soap.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Snorre, .NET (and the SOAP Toolkit) uses single-reference or a multi-reference constructs (i.e. <item href="#array-1"/>) with Arrays :-) See http://www.w3.org/TR/SOAP/#_Toc478383517, for specifics. Make sure the WASP C++ SOAP processor can handle this (single and multi-reference). Regards, Mike Wooten >From: Snorre Narum <[email protected]> >Reply-To: Discussion of implementing SOAP applications today ><[email protected]> >To: [email protected] >Subject: [SOAP] c# .net client and complex arrays >Date: Wed, 28 Aug 2002 20:35:27 +0200 > >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. _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com You can read messages from the SOAP archive, unsubscribe from SOAP, or subscribe to other DevelopMentor lists at http://discuss.develop.com.