0
私のサーバーがPythonプログラミング言語で書かれた分散アプリケーションで作業していて、クライアントはC#で書かれています。クライアントとサーバーの両方に通信するために、xml-rpcを使用することを選択しました。私はPython上で自分のサーバーを書いていますが、動作しますが、CookComputing.XmlRpc(私は参照を追加しました)ライブラリを使用してC#クライアントを作成しましたが、公式文書で提供されている例で提供されている多くの機能は存在せず、コンパイラを混乱させました。ここ は、コードは次のとおりです。CookComputing.XmlRpcと重複した定義の機能がありません
using CookComputing.XmlRpc;
public struct SumAndDiffValue
{
public int sum;
public int difference;
}
[XmlRpcUrl("http://www.cookcomputing.com/sumAndDiff.rem")]
public interface ISumAndDiff : IXmlRpcProxy
{
[XmlRpcMethod]
SumAndDiffValue SumAndDifference(int x, int y);
}
私はこのエラーを取得:
The type or namespace name 'XmlRpcUrl' could not be found (are you missing a using directive or an assembly reference?)
The type 'CookComputing.XmlRpc.XmlRpcUrlAttribute' exists in both 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\CookComputing.XmlRpcV2.dll' and 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\CookComputing.XmlRpcSilverlight.dll'
The type 'CookComputing.XmlRpc.IXmlRpcProxy' exists in both 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\CookComputing.XmlRpcV2.dll' and 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\CookComputing.XmlRpcSilverlight.dll'
The type or namespace name 'XmlRpcMethod' could not be found (are you missing a using directive or an assembly reference?)
The type 'CookComputing.XmlRpc.XmlRpcMethodAttribute' exists in both 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\CookComputing.XmlRpcV2.dll' and 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\CookComputing.XmlRpcSilverlight.dll'
間違っているものを私がやっていますか?