web service client i/o class generation

B

Brendan C

Hi,

I am using Visual Studio .NET 2003 and am adding a web reference to a
web service. One of the fields in a web service method output classes
is defined as:

[System.Xml.Serialization.XmlArray("Sensitivities"),
System.Xml.Serialization.XmlArrayItem(typeof(Sensitivity))]
public System.Collections.ArrayList sensitivity;


However when I add a web reference from the client, the field in the
generated class gets defined as:

public Sensitivity[] Sensitivities;

- ie. it gets generated as an Array, and not as an ArrayList.

How do I specify to generate the client class field as an ArrayList
and not an Array?

thanks,
Brendan
 
D

Dan Rogers

WIthout creating a custom proxy that uses the same type information markup
on the server (and creating implementations that are serializable) you
cannot. The client side proxy is giving you enough to fulfil the wire
contract - the array of repeating sensitivity elements .


--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top