Re: c# .net client and complex arrays

Snorre Narum <[email protected]>
Newsgroups gmane.comp.windows.devel.soap.general
Message-ID <[email protected]>
>
> Mike,
>
> Will either .NET or STK 2/3 read the said schema without the
> required import of the soap encoding namespace?

.net doen't complain or anything, and other methods works flawlessly.
The import
statement you suggested did not change the behaviour though.
We'll try to change wasp to use single/multi-reference arrays now if
thats possible.

The exception details from VS:

Exception Details: System.InvalidOperationException: The specified type
was not recognized: name='ArrayOfResultStruct',
namespace='http://www.ejournal.no', at <searchResult xmlns=''>.

The soap envelope that is sent from our server looks like this:

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SE="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><ns0:
findTicketsResponse xmlns:ns0="http://tempuri.org/message/"><errorCode
xsi:type="xsd:integer">0</errorCode><searchResult
SE:arrayType="ns1:ArrayOfResultStruct[1]"
xmlns:ns1="http://www.ejournal.no"><item
SE:arrayType="ns1:ResultStruct[1]"><item
xsi:type="ns1:ResultStruct"><field
xsi:type="xsd:string">ticket.id</field><value
xsi:type="xsd:string">1379</value><type
xsi:type="xsd:string">TypeInteger</type></item></item></searchResult></n
s0:findTicketsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

Any help is appreciated.

Snorre Narum/eJournal

>
> Thx,
>
> -Matt Long
> Phalanx System, LLC
>
>
> > -----Original Message-----
> > From: Discussion of implementing SOAP applications today
> > [mailto:[email protected]] On Behalf Of Michael Wooten
> > Sent: Wednesday, August 28, 2002 2:42 PM
> > To: [email protected]
> > Subject: Re: [SOAP] c# .net client and complex arrays
> >
> > 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.
>
> You can read messages from the
> SOAP archive, unsubscribe from SOAP, or subscribe to other
> DevelopMentor lists at http://discuss.develop.com.
>

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.