axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blake biesecker <bla...@Snapnames.com>
Subject RE: How to deserialize java.util.Vector in .NET??
Date Thu, 20 Jun 2002 16:56:57 GMT
Yes, they need to be fixed length per call, but you don't
need to define the length in the WSDL. We do things like:

	MyClass[] getInfo();

instead of:

	Vector getInfo();

or
	Collection getInfo();

Once the client gets the SOAP packet, it can do whatever it
wants with the XML. With .NET, my experience is it will 
convert to the XML to the expected typed array with no
problem. If you need a vector on the client, you can convert
the C# array.

Not sure if this works for you, but if you search this list,
I think you'll find known problems with Vectors and .NET.
I like the arrays because they work and you can see from 
the WSDL what will be in the collection.

Blake

> -----Original Message-----
> From: Christian Schmitz [mailto:cschmitz@pironet-ndh.com]
> Sent: Thursday, June 20, 2002 9:47 AM
> To: 'axis-user@xml.apache.org'
> Subject: RE: How to deserialize java.util.Vector in .NET??
> 
> 
> Hi Blake,
> 
> thank you for your answer. 
> But I think typed arrays must have a fix length and the 
> Client must know
> this length. Isn't it so?
> The can have a variable number of objects, this is why I want 
> to use it.
> 
> Christian
> 
>  -----Original Message-----
> From: 	blake biesecker [mailto:blakeb@Snapnames.com] 
> Sent:	Donnerstag, 20. Juni 2002 18:45
> To:	'axis-user@xml.apache.org'
> Subject:	RE: How to deserialize java.util.Vector in .NET??
> 
> Christian,
> 
> I've found you get better results if you can use a typed
> array instead of a Vector. 
> 
> Blake
> 
> > -----Original Message-----
> > From: Christian Schmitz [mailto:cschmitz@pironet-ndh.com]
> > Sent: Thursday, June 20, 2002 9:26 AM
> > To: 'axis-user@xml.apache.org'
> > Subject: How to deserialize java.util.Vector in .NET??
> > 
> > 
> > Hi,
> >  
> > I want to publish Web Services with AXIS and consume them with .NET
> > C#-Client.
> > My Service sends a java.util.Vector, but I can't deserialize 
> > it in .NET
> > 
> > Please help me, 
> > Thanks
> > Christian
> > 
> 

Mime
View raw message