41 |
{ |
{ |
42 |
return "Goodbye " + ToWho; |
return "Goodbye " + ToWho; |
43 |
} |
} |
44 |
|
|
45 |
|
[WebMethod(Description="Test for DotGNU XmlRpcStruct - Recieving")] |
46 |
|
public XmlRpcStruct getAStruct( int value1, int value2 ) |
47 |
|
{ |
48 |
|
XmlRpcStruct s = new XmlRpcStruct(); |
49 |
|
s.Add( "Value1", value1 ); |
50 |
|
s.Add( "Value2", value2 ); |
51 |
|
|
52 |
|
return s; |
53 |
|
} |
54 |
|
|
55 |
|
[WebMethod(Description="Test for DotGNU XmlRpcStruct - Sending")] |
56 |
|
public int sendAStruct( XmlRpcStruct s ) |
57 |
|
{ |
58 |
|
int a = (int)s["Value1"]; |
59 |
|
int b = (int)s["Value2"]; |
60 |
|
|
61 |
|
return ( a * b ); |
62 |
|
} |
63 |
} |
} |
64 |
} |
} |
65 |
|
|
66 |
|
// end |