0
내 서버가 파이썬 프로그래밍 언어로 작성되고 클라이언트가 C#으로 작성된 분산 응용 프로그램을 만들고 있습니다. 클라이언트와 서버 모두에게 통신하기 위해 xml-rpc를 사용하도록 선택했습니다. 필자는 Python에 서버를 작성했지만 작동하지만 C# 클라이언트를 작성하기 위해 CookComputing.XmlRpc (참조를 추가했습니다) 라이브러리를 사용하기 시작했을 때 공식 문서에 제공된 예제에서 제공된 많은 기능이 존재하지 않고 일부는 복제되었습니다 컴파일러를 혼란스럽게 만들었다.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'
여기 코드인가?