1.

How Does Xml-rpc.net Represent Xml-rpc Requests And Responses?

Answer»

XML-RPC.NET represents an XML-RPC endpoint as a .NET interface whose methods map onto the corresponding XML-RPC methods.

For example:

using CookComputing.XmlRpc;

public struct SumAndDiffValue 

{

public int SUM

public int difference; 

}

[XmlRpcUrl("http://www.wisdomjobs.com/sumAndDiff.rem")] 

public interface ISumAndDiff

[XmlRpcMethod] 

SumAndDiffValue SumAndDifference(int X, int y);

A server implementation implements these methods. A CLIENT implementation automatically generates a proxy class which derives from the interface.

XML-RPC.NET represents an XML-RPC endpoint as a .NET interface whose methods map onto the corresponding XML-RPC methods.

For example:

using CookComputing.XmlRpc;

public struct SumAndDiffValue 

{

public int sum; 

public int difference; 

}

[XmlRpcUrl("http://www.wisdomjobs.com/sumAndDiff.rem")] 

public interface ISumAndDiff

[XmlRpcMethod] 

SumAndDiffValue SumAndDifference(int x, int y);

A server implementation implements these methods. A client implementation automatically generates a proxy class which derives from the interface.



Discussion

No Comment Found