2 |
using System.Web.Services; |
using System.Web.Services; |
3 |
using DotGNU.XmlRpc; |
using DotGNU.XmlRpc; |
4 |
|
|
|
struct mystruct { |
|
|
int v1; |
|
|
long v2; |
|
|
public int val1 { |
|
|
get { return v1; } |
|
|
set { v1 = value; } |
|
|
} |
|
|
public long val2 { |
|
|
get { return v2; } |
|
|
set { v2 = value; } |
|
|
} |
|
|
}; |
|
|
|
|
5 |
namespace SomeServiceTest |
namespace SomeServiceTest |
6 |
{ |
{ |
7 |
|
|
41 |
{ |
{ |
42 |
return "Goodbye " + ToWho; |
return "Goodbye " + ToWho; |
43 |
} |
} |
|
|
|
|
[WebMethod(Description="Test Struct Return.. It is doubtful this will ever work because of the problems of inspecting the struct contents.")] |
|
|
public mystruct RetStruct( int i, long l ) |
|
|
{ |
|
|
mystruct str = new mystruct(); |
|
|
str.val1 = i; |
|
|
str.val2 = l; |
|
|
|
|
|
return str; |
|
|
} |
|
|
|
|
|
[WebMethod(Description="Test XmlRpcStruct Return. We cannot document what the struct contents will be as it gets populated at runtime")] |
|
|
public XmlRpcStruct RetXmlRpcStruct( int i, long l ) |
|
|
{ |
|
|
XmlRpcStruct str = new XmlRpcStruct(); |
|
|
str.Add( "Value1", i ); |
|
|
str.Add( "Value2", l ); |
|
|
|
|
|
return str; |
|
|
} |
|
44 |
} |
} |
45 |
} |
} |