1

I am trying to generate WCF Services Xamarin Cross platform ( PCL ) project based on the sample giving by xamarin itself i.e. TodoWCF

I found few issues wile generating WCF Services in xamarin using VS2015

1) I don't see Add service option to add WSDL file

to resolve this i found this thread and i tried to remove windows phone 8.1 after removing Xamarin.Forms and adding it again.

enter image description here

2) After that i tried to tap on Add Services and entered the WSDL

but VS2015 is constantly getting restarted when it tries to generate code for service endpoint.

3) I dont see any of the dependency added in TodoWFC sample provided by xamarin itself in my project

enter image description here

and really dont know how did they manage to generate WCF code inside it.

I read WCF Walkthrough in Xamarin and Consuming WCF in Xamarin but no where they have specified how to add WCF Service and System.ServiceModel dependencies.

hence i fill this topics are still not resolved

Community
  • 1
  • 1
Hunt
  • 7,357
  • 26
  • 104
  • 238

1 Answers1

0

From the updates of Xamarin and .Net Framework it is not possible to add the service references as WCF from the solution explorer, you can verify this post where they proposed how to solve it

https://github.com/dotnet/wcf/issues/2464#event-1474936235

If you are still using PCL, it is possible to change the ProfileTarget, you can see this post

https://luisdavidxamshap.wordpress.com/2018/01/26/consumir-web-service-wcf-con-xamarin-forms-pcl-paso-a-paso/

  • In order to be immediately helpful to readers (and avoid [Linkrot](https://en.wikipedia.org/wiki/Link_rot)), we prefer answer that provide at least a solid summary of the solution directly, with links used to offer additional information. [More info on link only answers](https://meta.stackoverflow.com/tags/link-only-answers/info). – Stefan Crain Apr 19 '18 at 21:03