Hi there,
I m trying to return an object (of my own written class) from a web
service that contains jagged Arrays as public variables. Asp.Net is
showing me the its serialized version on the browser when i invoke the
service during test.
Code:
public class returnType
{
[System.Xml.Serialization.XmlElementAttribute("chas sisdata")]
public _chassisdata[] chassisdata;
[XmlArray(),XmlArrayItem("wheel", typeof(_wheel[]),IsNullable=false)]
public _wheel[][] upsteps;
[XmlArray(),XmlArrayItem("wheelsize",
typeof(_wheelsize[]),IsNullable=false)]
public _wheelsize[][] alloywheel;
[System.Xml.Serialization.XmlAttributeAttribute()]
public string id;
}
Result:
<upsteps>
<wheels>
<_wheel>
....
....
</_wheel>
<_wheel>
....
....
</_wheel>
</wheel>
</upsteps>
<alloywheels>
<wheelsize>
<wheelsize size="">
....
....
</wheelsize>
<wheelsize size="">
....
....
</wheelsize>
</wheelsize>
</alloywheels>
--------------------------------------------------------
The Problem is,I want to change the serialized xml as follows
<upsteps>
<_wheel>
....
....
</_wheel>
<_wheel>
....
....
</_wheel>
</upsteps>
<alloywheels>
<wheelsize size="">
....
....
</wheelsize>
<wheelsize size="">
....
....
</wheelsize>
</alloywheels>
Can any body help me?
thanx in Advance.