Microsoft Developer Network >
Forums Home
>
Windows Live Developer Forums Forums
>
Bing Maps: Map Control Development
>
how to use Bing Map Web service Map point?
how to use Bing Map Web service Map point?
- Can anybody tell me the detail steps for how to use Bing Map Web service Map point?
Whatever i know is like this
1. Create developer account and password.(Created)
2. Add web reference for staging environment.
but facing problem when adding web reference.
Plz guide me by telling all the required steps with detail information from start to end.
Answers
- In the MWSFindGenerator method the following code needs to be updated:
//TODO: Change the following values to your username and password
These lines retrieve the user name and password from a web.config file. If you do not store your credentials in the web.config you will want to make MPUser and MPPAss equal to your Bing Maps username and password.
private String MPUser = ConfigurationManager.AppSettings["username"];
private String MPPass = ConfigurationManager.AppSettings["password"];
As for querying, MapPoint's POI data is a bit easier to filter but Bing Maps data is more up to date and the API is still being improved.
Windows Live Developer MVP - http://rbrundritt.spaces.live.com- Proposed As Answer byGuest11 Tuesday, November 10, 2009 9:51 AM
- Marked As Answer byRichard_BrundrittMVP, ModeratorFriday, November 20, 2009 5:16 AM
All Replies
- Bing Maps Web Services and MapPoint are two separate services. For information on how to create an application using the Bing Maps Web services, see this article:
http://msdn.microsoft.com/en-us/library/dd221354.aspx
For information on how to integrate Bing Maps with MapPoint and how to access MapPoint, see this article:
http://msdn2.microsoft.com/en-us/library/cc316940.aspx
Windows Live Developer MVP - http://rbrundritt.spaces.live.com - what is the main difference in both and which is best for categorywise search Map Point or bing map web services?
I want to do category wise search in my application. - i tried the example for map point in the url given by you but i got the error as :
"Alert('Error: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at MWSFind.net.mappoint.staging.FindServiceSoap.FindNearby(FindNearbySpecification specification) in C:\Documents and Settings\suman.gharge\My Documents\Visual Studio 2008\Projects\MWSFind\MWSFind\Web References\net.mappoint.staging\Reference.cs:line 576
at MWSFind.MWSFindGenerator.FindNearBy(Double latitude, Double longitude, String datasource, String entityName, Double distance) in C:\Documents and Settings\suman.gharge\My Documents\Visual Studio 2008\Projects\MWSFind\MWSFind\MWSFindGenerator.aspx.cs:line 56');"
Is there any setting required for running this application? - In the MWSFindGenerator method the following code needs to be updated:
//TODO: Change the following values to your username and password
These lines retrieve the user name and password from a web.config file. If you do not store your credentials in the web.config you will want to make MPUser and MPPAss equal to your Bing Maps username and password.
private String MPUser = ConfigurationManager.AppSettings["username"];
private String MPPass = ConfigurationManager.AppSettings["password"];
As for querying, MapPoint's POI data is a bit easier to filter but Bing Maps data is more up to date and the API is still being improved.
Windows Live Developer MVP - http://rbrundritt.spaces.live.com- Proposed As Answer byGuest11 Tuesday, November 10, 2009 9:51 AM
- Marked As Answer byRichard_BrundrittMVP, ModeratorFriday, November 20, 2009 5:16 AM
In the MWSFindGenerator method the following code needs to be updated:
//TODO: Change the following values to your username and password
private String MPUser = ConfigurationManager.AppSettings["username"];
private String MPPass = ConfigurationManager.AppSettings["password"];
Sorry but would you elaborate on how to do that?- Easiest way:
private string MPUser = "Your_user_Id";
private string MPPass = "Your_Account_Password";
Windows Live Developer MVP - http://rbrundritt.spaces.live.com

