For Programmers: Free Programming Magazines  


Home > Archive > Microsoft Webservices > October 2005 > exposing an array of structs









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author exposing an array of structs
Javier Martínez

2005-10-03, 7:03 pm

Hi
I would like exposes a array of compound objets(structs) in rpc encoded:
[WebMethod]
[SoapRpcMethod]
public void Method(Point [] pt)
{
}
public class Point //runtime error
{
public int X;
public int Y;
}
But in .net it is a fail, the CLR force me to use Point like class instead
structs.
Why it is happend? I throught in soap it was correctly


Best regards
Javier


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com