Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Contributor
hakanson
Posts: 36
Registered: ‎04-06-2010
My Carrier: AT&T

Problems using proxy with MDS simulator and Widget SDK

I ran accross a couple issues following the steps in How to configure the BlackBerry MDS simulator to work behind a proxy.  I am running the MDS 4.1.2 and 9700 simulators.  During web development, I often use Fiddler as a web debugging proxy and I have it set to run on port 8888 of localhost.

 

First, the PDF document says to set these properties in the [HTTP HANDLER] section.

 

http.proxyHost=localhost
http.proxyPort=8888

 

However, what finally worked (after some googling) was these settings:

 

application.handler.http.proxyEnabled=true
application.handler.http.proxyHost=localhost
application.handler.http.proxyPort=8888

 

It seems like the documentation needs to be updated.

 

Second, I ran into the issue that it still didn't work for my Widget.  I confirmed that using the Browser, it was using the proxy, but not http requests comming from the Widget.  Do I have additional setup to do, or is this the expected behavior?

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,693
Registered: ‎10-16-2008
My Carrier: Rogers

Re: Problems using proxy with MDS simulator and Widget SDK

[ Edited ]

Have you configured your config.xml file to white list the domains you wish to communicate with?  This configuration is done in the <access> elements contained in the config.xml file.

 

Some more information on <access> element configuration can be found here:

http://docs.blackberry.com/en/developers/deliverables/15369/Using_a_whitelist_to_secure_device_data_...

 

 

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Contributor
hakanson
Posts: 36
Registered: ‎04-06-2010
My Carrier: AT&T

Re: Problems using proxy with MDS simulator and Widget SDK

I just tried this again to verify.  I have the <access uri=> element configured correctly.  When I run my widget, it loads <content src=> just fine, and I can see the web page on the 9700 simulator screen.  However, I don't see a log of the traffic in Fiddler.  When I quit out of the widget, and put the same URL as from my <content src=> in the browser, I see traffic in Fiddler.  I am suspicious that the Widgets don't honor the [HTTP HANDLER] section.

Please use plain text.
Developer
pravipravi
Posts: 38
Registered: ‎06-03-2009
My Carrier: Verizone

Re: Problems using proxy with MDS simulator and Widget SDK

The link is not available . Could you please provide a valid Link ?

Is there any way to configure a Fiddler Web Debugging Proxy with BlackBerry simulator ?
Please use plain text.