G
Guest
Q: Does functionality exist within the .NET CF 2 to invoke a method where the
call is specified in XML? I mean where the XML is automatically translated to
the method call. Where is it and how do I use it?
Suppose I have the following class:
public class Adder
{
public bool Add(int a, int b, out int result)
{
result = a + b;
return true;
}
}
Now I would like to invoke the method from XML that looks like this:
<Adder>
<Add>
<a>10</a>
<b>20</b>
</Add>
</Adder>
....and when it's done the XML will change to this:
<Adder>
<Add returnValue="true">
<a>10</a>
<b>20</b>
<result>30</result>
</Add>
</Adder>
So, can I write a few lines of code, supplying XML and XSD and then the
function is called? I assume this is done behind the scenes in SOAP and
remoting somehow, right?
Thanks!
- Kristoffer -
call is specified in XML? I mean where the XML is automatically translated to
the method call. Where is it and how do I use it?
Suppose I have the following class:
public class Adder
{
public bool Add(int a, int b, out int result)
{
result = a + b;
return true;
}
}
Now I would like to invoke the method from XML that looks like this:
<Adder>
<Add>
<a>10</a>
<b>20</b>
</Add>
</Adder>
....and when it's done the XML will change to this:
<Adder>
<Add returnValue="true">
<a>10</a>
<b>20</b>
<result>30</result>
</Add>
</Adder>
So, can I write a few lines of code, supplying XML and XSD and then the
function is called? I assume this is done behind the scenes in SOAP and
remoting somehow, right?
Thanks!
- Kristoffer -