Select to view content in your preferred language

Bing Service

743
4
05-14-2010 08:20 AM
HeatherHainsworth
Deactivated User
I am just curious has anyone had any luck with setting up connecting to bing services, when they dont' start with the sample that is provided on the resource centers?

I have downloaded that and got BING Map and Geocoder working. However when I tried to move it to a pre-existing application I can't get it to add the web Service Reference.

So I followed the steps here
http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/help/Using_VEtokenservice.htmhttp://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/help/Using_VEtokenservice.htm

And can't get step 2 to work. VS2008 either doesn't prompt me for a password or prompts me 3 times then nothing. I have logged into Bing's developer centre and tested the password and they say it is valid. But yet I continue to get the following error.

There was an error downloading 'http://staging.common.virtualearth.net/find-30/common.asmx?wsdl'.
The request failed with HTTP status 400: Bad Request.
There was an error downloading 'http://staging.common.virtualearth.net/find-30/common.asmx?wsdl/$metadata'.
The request failed with HTTP status 4

I am using the staging url with out the s, although I have tried it with the s also.

Also I am using a service reference then goign to web reference to add it.

Is it me or is something up with VS? I have seen other posts on Microsoft sites but never saw a solution....
0 Kudos
4 Replies
dotMorten_esri
Esri Notable Contributor
The staging servers has been deprecated by Microsoft, including their token service. The good news is that it has gotten a lot simpler now. Instead, go to www.bingmapsportal.com sign up, log in and generate a token/app id. This token doesn't expire.
Now all you need to do is set the token property on the layer:
<bing:TileLayer Token="[your token goes here]" />

You do not need to do anything on the server to generate a token. Also note that staging server is not supported with these new tokens.
0 Kudos
nicogis
MVP Frequent Contributor
I am just curious has anyone had any luck with setting up connecting to bing services, when they dont' start with the sample that is provided on the resource centers?

I have downloaded that and got BING Map and Geocoder working. However when I tried to move it to a pre-existing application I can't get it to add the web Service Reference.

So I followed the steps here
http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/help/Using_VEtokenservice.htmhttp://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/help/Using_VEtokenservice.htm

And can't get step 2 to work. VS2008 either doesn't prompt me for a password or prompts me 3 times then nothing. I have logged into Bing's developer centre and tested the password and they say it is valid. But yet I continue to get the following error.

There was an error downloading 'http://staging.common.virtualearth.net/find-30/common.asmx?wsdl'.
The request failed with HTTP status 400: Bad Request.
There was an error downloading 'http://staging.common.virtualearth.net/find-30/common.asmx?wsdl/$metadata'.
The request failed with HTTP status 4

I am using the staging url with out the s, although I have tried it with the s also.

Also I am using a service reference then goign to web reference to add it.

Is it me or is something up with VS? I have seen other posts on Microsoft sites but never saw a solution....



you try this step:

1) Select the �??Add Service Reference�?��?� item from the Website menu.
2) Click on the �??Advanced�?��?� button.
3) Click on the �??Add Web Reference�?��?� button.
4) Enter http://staging.common.virtualearth.net/find-30/common.asmx?wsdl for the URL and then hit the �??Go�?� button.
When prompted, enter your Virtual Earth Developer Account ID and password.
Once WSDL has been downloaded, give the web reference a meaningful name like �??TokenService�?� then click the �??Add Reference�?� button.
0 Kudos
HeatherHainsworth
Deactivated User
Morten,

I did get it to work with just a token but question for you does this mean that you cannot use staging at all anymore? As before you could build a number of applications using staging, now you have up to 5 you can build using production only. Is that right?
0 Kudos
dotMorten_esri
Esri Notable Contributor
I suggest you contact Microsoft Bing and ask them. I don't know their licensing well enough. Their contact information is at the front page for their portal.

But you are correct that you shouldn't be using Staging anymore.
0 Kudos