1.

What If The Xml-rpc Method Name Is Not Valid In My Programming Language?

Answer»

Sometimes the XML-RPC method NAME cannot be used as a method name in the proxy class. For EXAMPLE, it is common practice for XML-RPC method NAMES to have the form namespace.methodname, such as sample.SumAndDifference In these cases a different constructor is used for the XmlRpcMethod attribute, taking a string which specifies the XML-RPC method name.

For example:

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

public interface ISumAndDiff : IXmlRpcProxy

[XmlRpcMethod("sample.sumAndDifference")]

SumAndDiffValue SumAndDifference(int x, int y);

}

Sometimes the XML-RPC method name cannot be used as a method name in the proxy class. For example, it is common practice for XML-RPC method names to have the form namespace.methodname, such as sample.SumAndDifference In these cases a different constructor is used for the XmlRpcMethod attribute, taking a string which specifies the XML-RPC method name.

For example:

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

public interface ISumAndDiff : IXmlRpcProxy

[XmlRpcMethod("sample.sumAndDifference")]

SumAndDiffValue SumAndDifference(int x, int y);

}



Discussion

No Comment Found