I am new to windows phone 7. Is anyone have any idea of how to send dictionary data to webservices using HttpWebReqest.
Any help is appreciated thanks in advance.
There are two methods,
1) Urlappending the data (this is possible only if your server accepts it).
2) Sending data through the body
For Further Reference Click here
Related
Has anyone had any luck using ColdFusion as a way to collect data via streaming APIs?
i.e. - https://dev.twitter.com/docs/streaming-api
I know the best option is to use an app that literally sits on the server monitoring these portals. Just curious if anyone has done anything using CF yet.
Aaron Longnion built refynr.com using CF9. It's a service that collects users' Twitter streams based on supplied criteria. I imagine he's down something like you describe.
However, I'd look into the new web socket functionality built into ColdFusion 10 and see if that makes consuming streaming APIs any easier.
http://labs.adobe.com/technologies/coldfusion10/
If you know a bit of Java, it may not be too difficult to use Twitter4J, and build an event gateway for your CF app to consume the stream.
If you want to go the web socket route, see: Twitter + HTML5 webSocket API
Hi my question is this: I want to add a push notification to my WP7 application, and have read the A Really Long Post About the Windows Phone 7 Push Notification System explination. Now this is pretty to-the-point stuff, except for this little part, where the line
var svc = new NotificationService.NotificationServiceClient();
is added. I think that this is just a reference to the web application of the developer. Is that correct, is this indeed a reference to the web application? And if so, how to implement that in the VS express for WP7, if indeed possible
I have already created a web application, but this is in the VS Web Development Express IDE, and working in the VS Express for WP7 IDE, want to add a reference to this web application.
Thanks in advance!
It looks like in the blog post the code you listed is intended to be called from an application other than the one on the phone. There are other ways of sending a tile update from within the phone.
Clarification after comments...
In the majority of cases, sending notifications to the device is handled by server-side or desktop application code and not from the device itself. If you have a service which is sending out notifications to the devices with the app installed, then you should ideally follow the patterns laid out by MS themselves. In short, the steps are as follows.
1) The phone app registers itself with the MPNS (Microsft Push Notification Service) servers.
2) The phone app receives a unique URL to which notifications are sent.
3) The phone app sends this url to your service by whatever means are best for the app (usually a call to a WCF service) *
4) Your service calls the MPNS service to send the notification to the phone
5) The phone app receives the message and acts upon it as appropriate.
The bit you are probably thinking about is the highlighted step (3). This is usually the only call out to an external source that you need to code manually in the notification scenario (registering with MPNS is handled by internal classes).
Given that this is the bit that you need to put most thought into, and that your question is about adding a reference to a web application there may be a bit of confusion here. The two ways I have seen this data get passed around are
1) Call a WCF service (which may b hosted in a web application, and can be added with "Add Service Reference in VS), or
2) Posting data directly to a web page that deals with the posted data and stores it for later us.
In either case, you won't need to "add a reference" to a web app. 1) means adding a service reference in VS, which I believe you can do in the free dev environment, and 2) involves hand crafting an HttpWebRequest to post the data.
I have been trying to upload an image from WP7 to a server for a few days now but it's not going too well.
I can easily get the input stream for the image and convert it to a byte array but I can't figure out how to send the byte array...Does it have to be done using a web service?
I've been struggling to send the byte array using the web service because the maxReceivedMessageSize is always set to 65536 and I have tried so many ways to increase the size of it.
The maxReceivedMessageSize is easy to fix in the configuration on the server.
Another way you could do it is to just make an asp.net mvc action which accepts a post, and just post it as a file.
Have a look at these other questions on the same subject:
Uploading an image using C# and WebRequest?
and
Upload files with HTTPWebrequest (multipart/form-data)
Hi can anybody direct me on this and how does this get setup. I basically have an application that I want users to be automatically logged into when logging in windows using there id and password so basically they get authenticated to using my coldfusion application ? Any pointers would be greatly appreciated.
Thanks :)
see: <cfNTauthenticate> tag
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7c23.html
I have tried this example http://www.bennadel.com/blog/1056-ColdFusion-CFPOP-My-First-Look.htm, but it retrieve emails from POP server. Is there any similar way to do for IMAP mail server?
I know there is new tag in Coldfusion 9 but I can't use it as I am working in Coldfusion 7.
Thanks in advance!!
How about this? http://imapwatcher.riaforge.org/
I am not sure, but I found this imap.cfc which should work with your coldfusion version. It is no longer under active development but maybe it just work ;)
http://sourceforge.net/projects/cfimap-cfc/
HTH!