TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mushtaq M A
117
15.5k
3.2m
WCF service methods not connected with Xamarin.Forms app
May 18 2019 10:21 AM
Hi,
I have created a WCF service and called the same from Xamarin Cross-Platform with Dot Net Standard 2 (UWP, iOS, Android), an app using Connected Service approach.
I checked this service approach in UWP and it works fine. But in Android and iOS project, the service is not connected.
Connected service call
IMobileservice mobileservice =
new
MobileserviceClient();
try
{
ValidateCredentials validateCredentials = await mobileservice.ValidateLoginCredentialsAsync(_param);
label.Text = validateCredentials.p_UserGroupCodeDesc;
}
catch
(Exception ex)
{
}
Android runtime error after clicked button :
Unhandled Exception:
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/'
iOS runtime error after clicked button :
Unhandled Exception:
System.InvalidOperationException: MonoTouch does not support dynamic proxy code generation. Override this method or its caller to return specific client proxy instance
Funny thing is UWP work fine and return method string just fine.
This is my first experience to consume WCF in xamarin.forms and I feel maybe I do something wrong.
I have posted this to Github and no solution. Kindly help me to resolve the issue.
Reply
Answers (
1
)
how to make Theme.Splash in xamarin
Navigation Page in Splash screen using Xamarin.Forms