Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Trusted Contributor
Posts: 184
Registered: ‎11-26-2010
My Device: Not Specified

Bing map reverse Geocode REST API - HTTP 400 error - Bad Request

I had a requirement to replace Google reverse geo code api with Bing reverse geo code api due to company standards. When  I am trying to make HTTP Connection using the http://msdn.microsoft.com/en-us/library/ff701710.aspx  I am getting HTTP 400 error, Bad Request.

The link I am trying to establish connection is http://dev.virtualearth.net/REST/v1/Locations/13.010133000000000000,80.211216400000010000?o=xml&key=...


OS: 5.0+


Help of any sort is appreciated!!!


A Y. Smiley Happy

Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: Bing map reverse Geocode REST API - HTTP 400 error - Bad Request

[ Edited ]

Hi @avi_yach,


I suggest you do the following:


1. Check out the ErrorDetails in the response XML.


2. If you have the same problem when using a simulator, use a sniffer to compare the requests. Since the URL you posted works on browser, the problem can be in the http request (a missing/bad header, wrong content type, etc.).

If you can't reproduce the problem with a simulator, try connecting to your own local page just to see the request.


Hope that helps,



Trusted Contributor
Posts: 184
Registered: ‎11-26-2010
My Device: Not Specified

Re: Bing map reverse Geocode REST API - HTTP 400 error - Bad Request

Thanks a lot for yur reply Erez, that helped me in understanding more. The problem is with my development environement. It doesn't allow me to connect to outside netowrk from my Simulator.


I will check in a live device or outside and will post here if I have any doubts.



A Y.