I'm planning to develop an app that consume REST services for Windows Phone 7 and came across two excellent framework, RestSharp and ServiceStack. I have no problem in consuming the web services through RestSharp but unable to do so using ServiceStack, primarily because ServiceStack.Common is not supported in WP. Any workarounds?
Yeah ServiceStack doesn't officially support Windows Phone 7 yet. There are some community Windows Phone projects of the ServiceStack JSON/JSV/CSV text serializers but none for ServiceStack.Common project which contains ServiceStack's C# Service Clients.
Until ServiceStack releases supported Windows Phone 7 client libraries, your best bet is to use a HTTP + JSON client that supports WP7 like RestSharp.
An alternative is to try the Windows Phone build of ServiceStack.Text and use its WebRequestExtensions e.g:
var json = "http://myhost/myservice/1".GetJsonFromString();
var dto = json.FromJson<MyResponseDto>();
Related
I would like to integrate Twilio VoIP capabilities in a Windows application developed in Delphi.
From this post Twilio - Making a call from .NET Windows application to a Phone it seems this is not viable directly. Is it still the case or there are further implementation for this ?
I have a relatively simple web application that I am currently porting to asp.net 5. The current version runs under IIS on some Windows 7 and Server 2008 machines.
With the next version of my software I would like to connect a C++ client via SignalR to the web application. The problem is that the current version of the new Signalr-Cpp client only supports SignalR via websockets.
IIS on Windows 7 and Server 2008 does not support websockets, though.
Since a self-hosting solution would be fine for me, my question is:
Is it possible to support Signalr via websockets on Windows 7 / Server 2008 when the web app is self-hosted?
Update:
I would accept
does self hosted signalr require windows server 2012 in order to use websockets? as an answer if there wasn't this small comment by Damian Edwards in the following Tweet by David Fowler which says
although, with v3, websockets in a self-hosted server (like Katana) is possible
Does this change the situation?
Final update
At least with beta 6 it works on Windows 7 when hosting the app with Kestrel and including the middleware Microsoft.AspNet.WebSockets.Server.
It's not possible...
SignalR Supported Platforms
for SignalR to use WebSockets, Windows Server 2012 or Windows 8 is
required
Does self hosted signalr require windows server 2012 in order to use websockets
HTTP.SYS prior to Windows 8/2012 has no built in support for
WebSockets, so although .NET 4.5 contains WebSocket classes, they
won't work unless you are running .NET 4.5+ on Windows 8/2012 and that
will affect self-hosting solutions running in Windows < 8.
UPDATE:
My answer is valid for current release version of SignalR (2.2). Tweets you included (quite old btw) suggest this will be possible in v3 but its not released yet, there is not much info on Internet about changes\features of this release and I even can't find anything about WebSocket support in Katana on Win < 8 in list of Github issues for v3
I wanted to use the new Mobile service available on Azure for my Windows Phone 7 project. But cannot figure out what to include in the project in order to make this work. The "new Windows Phone 8 app" option works fine, however I would like to get this service into a Windows Phone 7 app.
Although the Mobile Services team has not released an official WP7 SDK, you can find an unofficial one here: https://github.com/zaxy78/azure-mobile-wp7-sdk.
You can also access the REST API directly, reference is here http://msdn.microsoft.com/en-us/library/windowsazure/jj710108.aspx
Hope that helps.
"Azure Mobile Services" is just a set of Azure services packaged for mobile platforms. Right now Windows Phone 7 is not supported, considering it is a deprecated platform (for Windows Phone 8 and not backwards compatible) I would not expect it to be supported.
However, since "Azure Mobile Services" is just a "packaged set of services" you can absolutely use Azure services in a Windows Phone 7 app it is just not "packaged in one spot" for you.
You could use the Windows Phone Toolkit (open source) for Windows Phone 7 phones...
http://channel9.msdn.com/posts/Windows-Phone-Push-Notifications-and-Windows-Azure
However, most things in Azure expose RESTful APIs..so you could call the REST APIs for the specific Azure service. For example:
http://blogs.msdn.com/b/prathul/archive/2012/08/10/windows-phone-amp-azure-service-bus-rest-authentication-and-messaging.aspx
The latest pre-release version of the Windows Azure Mobile Services client (0.3.3-rc) on NuGet now supports both Windows Phone 8 and Windows Phone 7.1 apps, along with Windows Store apps.
I have the task to build an HTTP server with the HTTP API. Can I use the HTTP API in Windows XP or Windows 7?
I cannot find http.h as an include header.
Perhaps you are using old Windows SDK, as http.h is present in as old SDK as Windows Software Development Kit (SDK) for Windows Server 2008 and .NET Framework 3.5
HTTP API exists in versions 1 and 2, see availability details on MSDN: HTTP Server API Reference .
Does windows phone 7 series support the System.ServiceModel.Syndication.dll?
The Silverlight 3 version of System.ServiceModel.Syndication from the Silverlight 3 SDK should work on Windows Phone but is not officially supported. It may support the features you need from the .NET version.
If you are looking at building an application or two on the Windows Phone 7 to interface with RESTful services, you may look at RESTSharp, which now supports Windows Phone 7. Luke Lowrey's article is a good starting point on using RESTSharp in Windows Phone 7. In this article, Luke shows how he uses RESTSharp to consume the Google Weather XML feed.
Hope this helps.
No, I'm pretty sure for now if you want to parse feeds you just have to use Xml.