Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have followed below process

1) Right Click on PCL project add service reference - completed process - reference file has been generated successfully.

2) while create instance of client class below exception has been thrown.

MonoTouch does not support dynamic proxy code generation. Override this method or its caller to retu…...



Please guide me how i can consume WCF service in Xamarin forms application

What I have tried:

-Try to generate proxy using silverlight and general svcutil.exe
-Generated class library dll - which working on Console applications.
Posted
Updated 5-Jul-18 5:09am

1 solution

Second hit from pasting the error message into Google:
xamarin.ios - Monotouch/WCF: How to consume the wcf service without svcutil - Stack Overflow[^]

You need to override the CreateChannel method in the ChannelFactory<T> class. The StackOverflow thread has an example.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900