09-14-2011 05:10 AM
I'm developing an application where I have to send a SOAP request to remote webserver. Through forums I have learned that I need to install MDS for accessing internet in the simulator.
I downloaded "BlackBerry Email and MDS Services Simulator Package" and installed it, successfully configured the proxy and i can access internet through the browser of the blackberry simulator.
But still I;m unable to connect to the webserver.
Simulator is giving this error "Could not select proper Transport Descriptor for :<server address>".
I even allowed access to everything in my config.xml file
here is how it looks
<?xml version="1.0" encoding="UTF-8"?> <widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="18.104.22.168" rim:backButton="exit"> <name>Sample Application</name> <access subdomains="false" uri="*"/> <icon rim:hover="false" src="ext/icon_launcher.png"/> <icon rim:hover="true" src="ext/icon_launcher.png"/> <content src="index.html"/> <rim:loadingScreen backgroundImage="ext/LadyOnPhone.png" foregroundImage="ext/loadingicon.gif" onRemotePageLoad="true" onLocalPageLoad="true" onFirstLaunch="true"/> <rim:navigation mode="focus"/> </widget>
When I tried to run the same html page in the Internet Explorer I'm getting the correct response. So the code regarding sending XmlHttpRequest is correct.
Am I missing something here?? Do I have to register my application to MDS or is there some procedure I have to follow to give my application access to internet???
I can access the internet through the browser of the simulator but cannot access internet in my application.
09-14-2011 10:17 PM
Are you accessing a URL on your machine or local LAN or a publicly available domain? If you are accessing a URL on your machine or local LAN be sure to use the fully qualified domain name for the machine on your network.
Sometimes the MDS can have difficulty resolving local domains.
09-15-2011 01:50 AM
Its remote server not local..... It is a publicly available domain
I read many forums and came to know that many are having same problem that I have
They are unable to access the network on their office network because of proxies
So I took .cod file to my home and checked it at my home it worked perfectly I got the response
This might be some issue that you guys have to look into
because i can access internet through browser and I'm able to open the page to which i'm sending request to in the browser of the simulator but in application i'm unable to access (if there are proxies)
And if there are no proxies I'm able to get the expected response
the same problem this one is face
09-15-2011 02:39 AM
I contacted my office system admin and asked him to add me into exception on proxy and now its working
That's the solution I came up with for this problem
If anyone is having the same problem I hope this thread might help them
Thanks for your time
09-15-2011 07:28 AM
The browser does "its own special thing" on the BlackBerry platform and goes through entirely different communications than any other application on the device.
WebWorks applications communicate the same way as other Java applications and unfortunately are thus subject to the same quirks.
09-16-2011 03:48 AM
In that case are you implying that if any user who is connected to internet through wi-fi which uses proxy wont be able to use my application since it cannot go through the proxy
is there any way to detect the proxy and make way through the proxy in webworks???
09-16-2011 08:59 AM
WebWorks does not have a problem with proxies.. the MDS simulator that is installed on your desktop or in a corporate environment needs to be configured to allow for proxy access.