As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am trying to set up a push notification service for my WP7 app.
I have followed the guides and built a WCF service with WPF front end based on the code provided by the Channel9 WP7 jump start guide (Weather Service exmaple) ; http://channel9.msdn.com/Learn/Courses/WP7TrainingKit/WP7Silverlight/UsingPushNotificationsLab/Exercise-2-Introduction-to-the-Toast-and-Tile-Notifications-for-Alerts
This all works locally with the address "http://localhost:8000/RegirstatorService"
The part I am cluless about is how I translate this app to my server and make it work in the real world.
I have a basic public facing server 2008 setup with a domain and IIS7 running.
What do I do with the WPF app to make it work on my server? Is it just a case of changing the endpoint address so somehwere on my server, and where do i locate it on my server.
any pointers would be helpful. i have had a good read around the web but still cant understand this part of the whole PN process. I ahve never dealt with WCF before and dont have much expreirence with web servers or IIS.
Many thanks.
You might to check out these posts for a more real world example:
http://benjii.me/2010/12/push-notifications-in-windows-phone-7-1-code-on-the-device/
http://benjii.me/2011/01/push-notifications-in-windows-phone-7-2-code-on-the-server/
http://benjii.me/2011/04/push-notifications-in-windows-phone-7-3-push-that-notification/
You're probably most interested in the second one.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I would like to make an app that get data from web site for windows 8 Metro which I already have a couple of offline apps there ,but I really don't have an idea where to start and what to study to know with online applications.
Should I learn WCF or ASP.Net or something else?
I know this didn't work with Metro but I just wanna to learn the best way to work with servers from an app.
My programming language is C#.
Thnx.
WCF is overkill and is on the way out anyway - SOAP is dead, long-live REST!
Anyway, depending on what web-service you want to talk to you can use either a pre-written client or write your own. If it's a RESTful service then you can easily write your own client using HttpWebRequest, if it's a SOAP/WCF service then you'll probably want to use VS's client proxy generator to save you the pain.
...and yes, all this works with Metro (or rather, Tifkam) because you can do it in pure C# using classes made available to these kinds of applications.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am following this guide here. P2P
One of the advantages I had thought P2P would bring is the fact that it is a serverless setup.
Now that I have this working I noticed that you do need a resolver to keep track of who is connected.
To me this is really does require a server as you need a resolver to make P2P work in the first place.
Ami missing something?
It depends on your definition of a server I suppose. Using a P2P game for example most players will connect to a central point, be matched up and will then communicate between themselves with no involvement from the server.
This means the server doesn't have to host any data it simply has to coordinate those who do. It keeps resources down (as each client only needs to connect once) and the infrastructure is often more robust.
Do you need a central application to coordinate peers? Yes
Does that application need to stream content/data to each peer? No
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have about a year and half experience in C# (win forms, XNA, WP7) and I want to take my education to the next level.
I have an idea I want to make for the WP7 that uses Azure but I have very little knowledge in web based programming.
My question is, what would be a good learning path so I can get up to learning Azure? I have tried jumping right into Windows Azure but had a very difficult time understanding most of it and was jumping around researching various aspects of what I was originally trying to learn.
EDIT:
Wasn't satisfied with my old answer, so I'd just suggest downloading the Azure Training Kit and practicing because experience is the best teacher.
Get yourself a copy of Windows Azure Platform too, it will give you a good general understanding of how Azure works and expose all the gotchas and limitations.
If you want to test your code in a real environment (you should, because it works differently locally) then you should sign-up for the free 3 month Azure trial.
This will help you in the right way
Windows Azure
Operating system as a service
Microsoft SQL Azure
Fully relational database in the cloud
Windows Azure platform AppFabric
Easy to connect cloud and on-premises applications
http://msmvps.com/blogs/abu/archive/2010/01/06/learning-windows-azure-complete-tutorial-cum-getting-started-windows-azure-platform-training-kit-december-update.aspx
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
Hey guys, I'm starting the development of a native iPhone app which will implement a chat interface. So far the implementation seems to be pretty complicated, I've read of Websockets, XMPP/Jabber and raw TCP/IP sockets, but have no idea which to use. The client will be programmed in Objective-C, and I would like to program the server in C# (and not have to pay $100/month for a hosting service).
What would you guys suggest?
I would suggest using something like XMPP/Jabber as there are already a ton of libraries in existence for pretty much every language under the sun. That would allow you to focus on the unique aspects of your app rather than having to worry about implementing a protocol. Check out the XMPP website for a list of libraries for both clients and servers.
With regards to hosting, C# might be difficult to find free hosting simply because it requires a Windows installation which requires a non-free license. You can find cheap Windows hosting through somebody like GoDaddy, but you won't be able to find free (at least I doubt it).
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
How can i use Server Push with my WCF web service to communicate with the asp.net clients and push the data to the browser? Can i implement BOSH with WCF?
Thank you.
NLV
Hi
You can use the attached example I have made.
If you sent it to be a public push server - i.e available via WebService - you will have to add a webservice that will use the MSMQ.
The problem is that you will need to have an IIS installed on both the server and the client.
If you use it internally then MSMQ will be enough.
http://www.codeproject.com/KB/WCF/WcfMsmqServerPush.aspx
There is a sample here
Another alternative is signalR