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.

inside custom component

Web and WebWorks Development

Reply
Contributor
marschne
Posts: 21
Registered: ‎01-13-2011
My Device: 9700 / Playbook
My Carrier: Vodafone

Accessing an internal webservice with the playbook results http 403

Hi @ll,

 

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):

 

1)

I passed the url with the GET paramters in the Playbook browser

Result: The requested URL could not be retrieved (...bacause access was denied)

 

2)

I passed the url with the GET paramters in the bridge browser on the Playbook

Result: success... the bridge browser displays the json string

 

3)

I pass the URL with the GET paramters in the browser of my Bold 9700:

Result: success... the browser displays the json string

 

4)

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:

 

<rim:permissions>
   <rim:permit>read_device_identifying_information</rim: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 2.0.1.358

BlackBerry WebWorks SDK for TabletOS 2.2.0.5

 

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!!

 

Please use plain text.
BlackBerry Development Advisor (Retired)
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Accessing an internal webservice with the playbook results http 403

Hello,

 

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.

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.
Contributor
marschne
Posts: 21
Registered: ‎01-13-2011
My Device: 9700 / Playbook
My Carrier: Vodafone

Re: Accessing an internal webservice with the playbook results http 403

Hi,

 

Playbook OS: 2.0.1.358

 

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.

 

 

 

 

Please use plain text.
BlackBerry Development Advisor (Retired)
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Accessing an internal webservice with the playbook results http 403

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.

 

 

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.
Contributor
marschne
Posts: 21
Registered: ‎01-13-2011
My Device: 9700 / Playbook
My Carrier: Vodafone

Re: Accessing an internal webservice with the playbook results http 403

[ Edited ]

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??

 

 

 

Please use plain text.
Contributor
marschne
Posts: 21
Registered: ‎01-13-2011
My Device: 9700 / Playbook
My Carrier: Vodafone

Re: Accessing an internal webservice with the playbook results http 403

I updated my Playbook to OS 2.1.0.560... still not working (http 403).

Please use plain text.