PCL 프로젝트로 .netstandard 2.0을 사용하여 Xamarin.Forms 프로젝트를 만들었습니다. 해당 프로젝트에서 WCF 서비스를 사용하려고합니다. WCF 서비스에 연결된 서비스를 추가했습니다.Xamarin.Forms 프로젝트에서 .netstandard의 WCF 서비스를 사용하는 방법은 무엇입니까?
System.ServiceModel.FaultException`1[[System.ServiceModel.ExceptionDetail, System.ServiceModel, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Error in deserializing body of request message for operation 'GetData'. OperationFormatter encountered an invalid Message body. Expected to find node type 'Element' with name 'GetData' and namespace ' http://tempuri.org/ '. Found node type 'Element' with name 'GetDataAsync' and namespace ' http://tempuri.org/ '
가 나는 또한 이전 버전에 .netstandard 버전을 변경하려고했지만이 같은 오류를 제공합니다 : I는 서비스에서 제공하는 메소드를 호출하기 위해 노력하고있어 때 아래와 같은 오류를 제공합니다.
오류는 몸의 모양이 잘못된 것이 아니라하지 구현하는 방법입니다 제안한다. 모델이 맞습니까? – Neil
@ 네일 예. 모델이 정확합니다. 사실 GetData 메서드는 Visual Studio의 WCF 서비스 공급자에 의해 생성 된 프록시 클래스에 문제가있을 수 있습니다. – vishgarg
안녕하세요! Xamarin이 작업 기반 비동기 WCF 프록시 메서드와 호환되는지 알고있는 사람 있습니까? 고맙습니다. – Ignacio