Using BING Maps SOAP Services in WP7 application - windows-phone-7

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

Related

Cloud Provider SLAs exposed via RESTful APIs

I was wondering if any of the major cloud providers (AWS, Azure, Google) exposed their SLAs for virtual machines via a RESTful API.
Basically, I am looking for the information available on these pages:
https://aws.amazon.com/compute/sla/
https://cloud.google.com/compute/sla
https://azure.microsoft.com/en-gb/support/legal/sla/virtual-machines/v1_8/
Does anyone know if this information is exposed by any of these providers via a RESTful API?
Many thanks.
I was informed by Azure Support that this service is not provided by them.
On Google Cloud Platform there is no way to check the information that you are asking via REST API.
Can you explain your use case and maybe we can find a workaround?
Best regards

Does Google Container Engine SDK/API exist?

I am planning to launch container cluster from an SDK/API. Presently, I am fine with any language, but I prefer NodeJS SDK. As far as I have seen, I could not find any Container engine SDK. Here is the NodeJS SDK for GCP which does not contain container engine. In fact it contains SDK only for very few GCP services.
I came across OAuth API for container engine but it involves human intervention to launch it. I am looking for service account based authentication for the SDK.
Are there container engine SDKs available ?
Update after discussion with Robert Lacok:
This is the code I tried to use for container APIs with API-key, it does not work. It expects Oauth 2 token, or some other credentials other than Service account. I tried API-key it didnt work. I dont know how to use Service account authentication with the API.
Here is my source code:
Here is the error:
I see a method for Application Default credentials. But I dont think so it will be useful for my use-case. I am trying to create container cluster from AWS Lambda. So, I cant use application default credentials. Is there any other options ?
The API for Google Container Engine is very limited at the moment as all the features are in Alpha status and because they can change not many people are incorporating them into the SDKs they are developing.
These are the current available APIs: https://cloud.google.com/sdk/gcloud/reference/container/
And here is the Alpha APIs: https://cloud.google.com/sdk/gcloud/reference/alpha/container/
What you probably want to do is making calls to the REST API and using the client library for OAuth2 authentication.
You can browse the API documentation and see that every method has a short how-to for a number of languages, NODE.JS being one of them. Have a look here for an example on how to create a container cluster.
You also mentioned service account authentication. The preferred way to do this is to use the application default credentials, you can have a little read about them here.
In short, you want to set an environment variable GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json which is a key to service account you generated in console.
Then the client library will take care of the rest (getting the OAuth tokens and what not).

How to call webservice in 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

Azure + Windows phone 7

I am planning on a photo app, and want to know how I could upload/ download images from windows phone 7 to the blob storage as well as access the table storage. I don't mind placing the access key on the application, since the app is planned to be distributed internally only.
Since the Azure API is not available can somebody tell me how I can do the same ?
You can:
use Azure BLOB API directly (including key on the phone)
Abstract Blob operations behind a server-side web service
I also recommend to check out article by Steve Marx on accessing Azure Blob from Silverlight. It covers a wide range of topics including Shared Access Signatures and how to actually work with Azure Blob API.
I would not place the Access key into any client device. You should think about creating a webservice which can handle the upload for you. That way your phone has not to know about the Azure API.
Try to decouple your Phone 7 application from the backend implementation. Windows Phone 7 supports XNA and Silverlight applications so I guess you're going for the latter. That implies that you need to connect to a service anyway. I would suggest that you put all the backend and Azure specific logic behind a WCF service and call that from within your application.

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