07-08-2012 06:12 AM
i'm developing an application for the Playbook using webworks sdk. This application will do the following:
- you enter a search phrase and hit a button
- the app consumes a webservice (using GET) on the internal network. this webservice is now searching in our CRM using the given search phrase and gives the result back in a json string.
- the json string get's parsed and the result is displayed in an image-list
So far, so good...and here comes the problem:
I can only consume the webservice and get a result, when I'm connected to our company wlan (wifi) with my playbook! If I'm not connected to our wlan (switching of wifi on the playbook or not in coverage of the wlan) I get an error http 403! (The Playbook is always connected to a Bold 9700 (OS6) via the BlackBerry Bridge).
I tried following (the Playbook is conntected to the bridge, wifi is switched off):
I passed the url with the GET paramters in the Playbook browser
Result: The requested URL could not be retrieved (...bacause access was denied)
I passed the url with the GET paramters in the bridge browser on the Playbook
Result: success... the bridge browser displays the json string
I pass the URL with the GET paramters in the browser of my Bold 9700:
Result: success... the browser displays the json string
When I call an external URL with my app instead of consuming the internal webservice (this URL points to a text file (.txt) in the www), I can receive the text and display it on the Playbook!
I use the following settings in my config.xml:
im:permit> <rim:permit>access_shared</rim:permit> </rim:permissions> <rim:connection timeout="25000"> <id>MDS</id> <id>TCP_WIFI</id> <id>BIS-B</id> <id>TCP_CELLULAR</id> <id>WAP2</id> <id>WAP</id> </rim:connection> <rim:orientation mode="auto" /> <access uri="*" subdomains="true"/>
Connected to BES
Playbook: OS 220.127.116.118
BlackBerry WebWorks SDK for TabletOS 18.104.22.168
Now, why I can't consume the internal webservice when the Playbook is only connected to the bridge?
I'm looking forward to any help!!
07-09-2012 02:43 PM
What version of the PlayBook Tablet OS are you using? I believe apps could only begin using the bridge network transport as of Tablet OS 1.0.8.
Otherwise, what types of credentials (if any) does your company wlan require? It could be that these values are not being passed from the WebWorks app.
07-09-2012 04:02 PM
Playbook OS: 22.214.171.1248
The most usage of the app is when NOT connected to any wlan!! It should (must) work using the bridge!
If I'm connected to our company wlan, it works.
07-10-2012 12:47 PM
When you are not connected to a wlan, can the Smartphone device access the wlan resources? Since that is the network transport that the PlayBook bridge is receiving its information from, there is a dependancy on the BlackBerry Smartphone itself having access to these resources.
07-12-2012 02:21 PM - edited 07-13-2012 07:31 AM
Sorry, but i can't understand why a wlan should be 'in the boat'!!
WLAN is switched OFF!!!
ONLY the bridge is activated and the Playbook is connected to the bridge (via Bluetooth)!!!
Ok, I compiled the app for my Bold 9700 (OS6)... WLAN IS SWITCHED OFF... here it works... I can access the webservice and receive a result!! (remember... I'm on a BES).
If I run the app on my Playbook, I receive a http 403!! (WLAN IS SWITCHED OFF here also).
What can I do??