Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - WEBService

WEBService

Put your problem here if it does not fit any of the other categories.

WEBService

Postby AleRossi » Fri Jun 07, 2013 7:10 pm

Hi all,
I'm new with android stuff..
I'm implementing a app which connect to a Jasper Server, and have to retrieve the reports list/folders/dashboard in repository.

So i did 3 Classes, Main Activity, Connection and Browsing.
1)Connection ( Host, User, Pass).
With method Connect(), which perform the connection and return an int which is the status code as Server Response (200-400-500)..

2) Browsing( Connection C)
Method browse which do connection.connect()..and the other actions that GET XML as response, returns string(the xml) that Will be parsed

3)Then i put in my main Activity, in the AsyncTask ...in the method onCreate, i inizialize connection obj... Forward it throught the task.execute() to the AsyncTask .
In the AsyncTask i inizialize browse obj, and try to retrieve the XML String with browse method.
Now, if i print results of the method , i GET 401 error from server (unauthorizated) but if i try connection.connect() on it self it works perfectly (code 200).

Why?
Or how can i do Rest Operationwithout login everytime?

The best would be if some1 knows how to use JasperReport classes for Android!
AleRossi
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Jun 07, 2013 9:07 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 11 guests