Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Wcf webservice using proxy

$
0
0

Hello,

I successfully setup a Wcf proxy for use in my Xamarin project. Now I can call the web service functions like in the official guide(http://developer.xamarin.com/guides/cross-platform/application_fundamentals/web_services/walkthrough_working_with_WCF/).

My question is: should I create a soap client(the class generated by the proxy) in every ViewModel where I wish to use it or simply use the same instance application-wide?
Creating an instance on every page where it is needed seems easier to manage, but is it a good thing to create more than one instance of the client?
I'm new to using webservices.

Thanks!


Viewing all articles
Browse latest Browse all 58056

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>