Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have Xamarin forms cross platform project and I need to call WCF web service in PCL project but I am not able to add web service in PCL project. The code below is tried for windows phone application because I am able to add same WCF web service in that project.

What I have tried:

ServiceReference1.Service1Client client = new
ServiceReference1.Service1Client();
string returnString;

returnString = client.GetData(textBox1.Text);
label1.Text = returnString;
Posted

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