How to consume a web service using mono for android - web-services

I'm using xamarin to develop an android APP and need to consume a webservice provided by others.I can consume the web service successfully in a ASP.NET application but in a mono for android app I always got a exception showed "NameResolutionFailure"...
I'm a beginer in mono for android, the following is the steps I try to consume a web service in a android app
Step 1: Add web reference:
Step 2: Consume the web service(http://www.citysupermarket.com.cn/MobileAppService.asmx)
AppService.MobileAppService service=new ServiceTest.AppService.MobileAppService();
service.CreateUser("test#gmail.com","123","victor");
I got a exception like this
Can anyone provide some suggetion about this or show me some guides about how to comsue a SOAP web service in a mono for android APP?
I really get stucked!

NameResolution Failure means that
http://www.citysupermarket.com.cn/MobileAppService.asmx \
can't be reached, Can you access the url at All ?
Regarding:
How to consume a web service using mono for android
I'll say this DOC is quite clear
docs.xamarin.com/guides/cross-platform/application_fundamentals/introduction_to_web_services

Related

cordova: How to develop web services for cordova mobile application

i am developing mobile application for one of my web app. After long search on google i found cordova to be the best for cross platform mobile app development. I am developing cordova based front end with ionic framework. I want to know which web service is the best one to communicate between mobile app & server. I am familier with REST for webapp but have no idea for mobile.
Note: My database is on server & i am communicating through web services only so no local database resides on mobile.
Thanks in advance for quick response.
Well angularJS with PHP & JSON object combination would be the best combination for the web services to develop for cordova application. Angular js used for cordova is the best to put at web service level too with PHP.
I found my answer after long search....:-)

CORS issues with RESTful service and Mobile Application

I have created a RESTful service currently hosted on http://mydomain:8000, whereas my mobile application is on http://mydomain:80. Unfortunately this is causing problems.
The RESTful service is running in Django REST Framework, whereas the mobile application is in Sencha Touch 2.
I attempted on using Ext.data.JsonP.request but, this only allows GET where as i need POST.
Is it possible somehow to use JsonP in Ext.Ajax.request?
After spending a few hours searching more around i came to this solution: https://github.com/OttoYiu/django-cors-headers

When to use standalone web service approach

I just started learning web services. In bottom up approach, I have found some examples without being deployed in any application server. I mean a standalone web service application.
Here is an example of such type.
I have also given a try and done a walk-through of deployable simple web service examples.
So far to my learning of web services, I got to know that firstly, bottom-up- approach is not recommended. Now, in bottom-up approach, this standalone web service. When is it applicable to follow standalone web service procedure?
Endpoint.publish();
I guess, this approach is provided just for beginners and not to follow as a real-time practice. Is my interpretation correct?
I would make my application as a standalone web service if it will have multiple clients like:
Web Client via a web browser
Mobile App Client
Desktop Client
Then I could build every one of them alone using whatever the technology I prefer, and make it consumes my standalone web service.
For example, You could imagine the guys behind Twitter started developing it by building their core system as web service, then they build an independent web interface application for it, then they built the Twitter Android and iPhone APP, and another one came and introduced a Twitter Desktop client like Tweetbot and TweetDeck ... etc

Mobile application in flash builder with web service

I am trying to create an application in flash builder 4.5.1 and try to access web service from it can anyone guide me how to do this ? I have created a simple helloworld webservice in netbeans.
Thank you everybody for your time I found the solution how to access web service from flash builder i found the perfect example in the following link
http://tv.adobe.com/watch/adc-presents/complex-web-services-in-flash-builder-4/

Asp.net web services videos or tutorials

I am developing an asp.net web services.
I am new to asp.net but I want to make a web service in .net 3.5.
I want some video tutorial or step by step tutorial that can show me how to develop , test and then publish the web service to use it in another application.
OK- look into WCF. Here is Microsoft's getting started guide. Do not use ASMX Web services- they are now regarded as legacy.
What sort of other applications are you referring about? More detail on those might get a more in depth answer.
This is a good one: http://www.w3schools.com/webservices/default.asp
www.asp.net should be your starting point.
http://www.asp.net/learn/ has tons of videos. On http://www.asp.net/learn/3.5-videos/, video #13 is about "Creating and Using an AJAX-enabled Web Service in a Web Site".