.Net remote debug web api with iOS app - ios

I built a Web API service that's hosted on Server in IIS. My company's project is mainly based on iOS App that runs on iPhone, it calls the web api method and retrieve JSON format data.
Here's the problem. I can't simulate data because there are codes which shows if you are not using iPhone then you get WrongParameter Exception, and the payment module must debug on the server because it's a tranfer from server 2 server.
So is there any ways that I can debug these methods by using iPhone with Visual Studio?

Related

Use generated java sdk for web portal?

I am creating a web portal that controls the devices (like switching it on/off), visualize the data sent by those devices(endpoints). I have generated a java sdk. Do i use that sdk in my web portal or is it just for a device that sends telemetry data?
It is desirable to use generated sdk only for device that sends telemetry data.
There is no point in attaching sdk to your web application, as far as this part of the system doesn't treated as endpoint. It is bad practice to include endpoint sdk into the places, where lion's share of functionality would be ignored.

Web Service accessible by most browsers but Safari and iOS app

A short version of my current problem:
Our service
https://staging.apps.wv.gov/dhhr/cjtf/HelpMeWV/api/contacts
is accessible in Windows browsers, android app, Chrome in Mac, but not accessible in iOS app, Safari, or Chrome in iOS.
error Code: WebException
message: The remote name could not be resolved: ‘wwwnew.wv.gov’.
Some more detailed info:
HelpMeWV is a .NET application translating SharePoint wcf service (http://wwwnew.wv.gov/services/HelpMeWV/_vti_bin/ListData.svc/$metadata) into RESTful API using ServiceStack. Here wwwnew.wv.gov is parsed in the hosts file on my staging server.
I would assume a web browser visiting the .NET REST API would have no need to be aware of the location of SharePoint service. Further, if my Android app and other browsers to access the API and obtain data, there is no reason a Safari or an iOS app cannot visit.
I have added the wwwnew.wv.gov entry to my Mac's hosts file. Still get the same error.

iOS Cloud Storage API for Visual Studio 2010

I have created a WPF application using Visual Studio 2010 that receives data and sends the same to a Windows Azure Server (where the data is stored in tables). I am able to send and receive data on my Windows Phone 7 using the same using a service function I created.
However, I now need to send data from this application and receive it on an iOS device (in an iOS app). Are there any APIs for Visual Studio that let you send data to an iOS cloud storage space.
If not, are there any APIs that enable an iPhone app to receive/pull data from an Azure Server.
Windows Azure Mobile Services includes an iOS SDK (along with Android, Windows Phone, Windows 8, and JavaScript) for storing data (as well as authentication and push notifications on those platforms). That presumes though that you're leveraging the storage that's part of Windows Azure Mobile Services, and it sounds like you've already got an alternative storage solution in Azure - though it wasn't clear if you were using SQL Database or table storage.
By leveraging WCF Data Services or the Web API you could expose your existing Azure data via OData which is an open protocol (REST-ful) for which there are many client libraries including iOS. Since you already have an existing storage solution, this service wrapper approach may be easier and quicker than migrating to Azure Mobile Services.

Azure emulator web site is not visible by Facebook

My ASP.Net MVC3 web site that logs into Facebook is no longer working after moving to an Azure based cloud project. I am using the Azure SDK 1.6 and fail during the the OAuth steps.
I had a working site that ran locally at http://localhost:1200 which matched the Application Url setting that was registered for the application on Facebook. Now when I try to start the project in debug mode, it goes through the Azure emulator which maps the web site (role) to http://127.0.0.1:82/. I've tried updating the Facebook app url to the same address but it fails.
I've been investigating this and I've noticed that the Azure emulator automatically creates on the fly a new IIS web site and employs a load balancer for its created virtual IPs for the individual projects within the cloud solution. Is there a way to get a project to debug successfully and still talk to Facebook when running the Azure emulator within Visual Studio?
Any insight is greatly appreciated.
I would not use localhost for Facebook applications.
What I did, I had registered my real domain in Facebook (such as myapp.com)
Then I created a record in my hosts file (Windows\system32\drivers\etc\hosts)
127.0.0.1 dev.myapp.com
which is sub-domain of my production domain, so it's allowed by FB;
And then I used dev.myapp.com as callback address for Facebook; I also setup Visual Studio to run http://dev.myapp.com:anyport on start application debugging.

Receive /Send data through Wifi under Windows Mobile 7.5

I have a desktop client application build under .net 4.0 and WPF.
In this application I need to send /Receive data from a client app on a Windows Mobile, this would be through Wifi.
I have no deep experience on this and would like to here your advise or approach on how to do it.
I already done such scenario throuh a wire network between different client through a WCF service hosted under a Server2008 but would like to do a be directionnal sync app between phone and my client.
Could you post me some ideas or sample approach?
thnaks for help
sergeenter code here
Check out servicestack. http://servicestack.net/. Pretty simple to get up and running on the server and client side. There isn't a WP7 client for it, yet but RestSharp works fine.
Sample of how you might host in a WPF app:

Resources