How to call webservice in Windows Phone 7? - windows-phone-7

I have a webservice in .NET and I need to call that webservice with methods from a Windows Phone 7 app. I don't have any idea about development for Windows Phone 7. I just started 2 days ago. So please help me. I've searched and tried with many links, but I didn't find a solution.

This is the best available video tutorial..
Webservices for Windows Phone 7 in 7 mins

You could start by looking up some articles and tutorials on development for Windows Phone 7 to get familiar with the platform. MSDN Code Samples can be found here, they're pretty basic but good enough to get you on the way. After that you could do a quick Google search for "windows phone 7 web services". One of the results is this article explaining how to make and consume a webservice. I hope this helps you get started!

You mean to say Consuming Web Service.
If it is based on SOAP then you can add Service reference into your project by providing the Service API link and it generates the automatic classes for you.
For Restful service you can use HTTP Client or Web Client to make the API call and you can get the response on call back functions.
Hope Its Trivial answer

Related

WebOS - Web application - screensaver turns on

Recently I am trying to make a WebOS application for my TV for our application https://castit.nl . It is a web hosted application, therefore all of the logic is on my server.
But the problem is - the application (digital signage that it is) is covered by the screensaver within a few minutes.
There needs to be an API endpoint somewhere - within JavaScript to turn off the screensaver.
I found this article:
https://blog.illixion.com/2022/10/webos-prevent-screensaver/
But this does not work. It is an unsupported API endpoint says the console, and for real because it is not in the documentation:
https://www.webosose.org/docs/reference/webosservicebridge-api/webosservicebridge-api-reference/
Please help as this is really a frustrating thing.
After looking for this for many hours, this seems to be impossible to do.
It does not exist in any API endpoint.

Recommended method for communicating with QuickBooks Pro 2012

I am attempting to integrate a web site with Quickbooks Pro 2012 and would like to know what the recommended method is as I'm having a hard time getting information from the Intuit site.
Can I use QBFC13 with Quickbooks 2012 or do I have to use QBFC12?
Since this is a website, I think the correct method is to use Web Connector, although the web server could have direct access to the QuickBooks company file.
I'm been looking for a recent Web Connector sample (one that doesn't use Microsoft.Jet.OLEDB)
1. Can I use QBFC13 with Quickbooks 2012 or do I have to use QBFC12?
To my knowledge, all newer version of the SDK should work fine on older version of Quickbooks. I believe I read somewhere that they make an effort to keep it backwards compatible.
2. Since this is a website, I think the correct method is to use Web Connector, although the web server could have direct access to the QuickBooks company file.
I personally did not go with the webconnector route, because I needed real time comms. The webconnector will periodically "connect" to your website, and ask if it has any work for it to do. I personally created my own WCF Self Hosted service, which the website conencts to when needed. This wcf service, then interfaces with the quickbooks SDK, and passes the required info back to my website, when it wants it.
3. I'm been looking for a recent Web Connector sample (one that doesn't
use Microsoft.Jet.OLEDB)
Cant help you out here, although the QB specific stuff should generally still apply? Can't see why an example using a Jet DB would make the QB part of it unclear?
You can use either. You just need to make sure the QBXML version used is supported by QB.
Yes, you will need to use the web connector since this is going to a web site.

Using BING Maps SOAP Services in WP7 application

Can anyone refer me to a tutorial or explain how to consume BING Maps SearchService (SOAP Webservice) to find nearby chemists / pharmacist. I could not find a single example for consuming the web service on a Windows Phone 7 app.
Also I intend to find the nearby results in India only. I think for this, the culture needs to be set to IN.
don't use the SOAP services they are not the preferred service any more, use the REST services instead:
http://msdn.microsoft.com/en-us/library/ff701713.aspx

how to dynamically invoke web service at runtime to window Phone 7

how to dynamically invoke web service at run time to window Phone 7.
It's hard to give any specific answer since the question is quite vague. However, download the Weather Forecast sample code from this page which focuses on consuming web services.
Depending on the web service and the handled data, you can use the good old WebClient and/or HttpWebRequest.

How to set up a web service to talk to my Windows Phone app?

Hi and thanks for looking. Is there a way I can take in parameters from the user in my Windows Phone app, and use something like SOAP to talk to a web service and have it return an xml file? How can I host that web service for the minimum possible cost and hassle? If you could even point me to a link/tutorial, that'd be great.
Yes, you can do this using a number of technologies. You can use WCF for example.
There's two things for you to look at.
First is implementing the service. Here's a quick walkthrough for that - refer the first screencast.
WCF Screencasts
Second is referencing the service from your WP7 app. Here's a quick walkthrough for that. Scroll right to his first tutorial.
AfricanGeek Silverlight 3 Video Tutorials
For hosting you can look at any of the many shared web service hosting providers.

Resources