Hi,
in my webservice I have a Webmethod wich returns a list of Objects to my C++
Application.
C# code:
public class Contact
{
public string FirstName;
public string LastName;
}
[XmlRoot("Result")]
public class ContactList
{
public ContactList()
{
m_listOfContacts = new ArrayList();
}
[XmlArray("ContactList"), XmlArrayItem("Contact", typeof(Contact))]
public ArrayList m_listOfContacts;
}
// Service.asmx.cs
[WebMethod]
[XmlInclude(typeof(ContactList))]
public ContactList GetContactList()
{
ContactList cl = new ContactList();
// Fill in some contacts....
return cl;
}
The code works fine, and there is no problem with the generated Proxy class
within my C++
Project.
But the struct for the ContactList generated from SPROXY.exe is not very
readable.
C++ code:
struct ContactList
{
Contact *ContactList144;
int __ContactList144_nSizeIs;
};
Is there any Attribute for the ArrayList, that I can define, that SPROXY.exe
generate more
readable names for the struct variables?
Thank you
Frank