Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2011

    Unhappy Problem with user authentication XML

    I have a problem with parsing xml with user basic authentication. The client give me some RSS feed that need user and password to access it.

    At first, i was able to parse the information based on the rss. It displayed well in the simulator and also in the device. But in the next week. There was a problem. There isn't any displayed information based on the RSS feed. Only a blank screen on my device and simulator. when I access directly to the xml URL with user authentication, there is some data. But it doesn't displayed on the application.

    So i try to make sample xml with user authentication on my own server. I tested it. AND I MADE it. There isn't any error and problem.

    here is my code:
    function showFeeds(url, id, actionId, ContId) {
    var xhr;
    var rssfeed = url;

    //call the right constructor for the browser being used
    if (window.ActiveXObject)
    xhr = new ActiveXObject("Microsoft.XMLHTTP");
    if (window.XMLHttpRequest)
    xhr = new XMLHttpRequest();
    alert("AJAX request not supported");

    //prepare the xmlhttprequest object
    xhr.open("GET", rssfeed, true, "some_user", "some_password");
    xhr.setRequestHeader("Cache-Control", "no-cache");
    xhr.setRequestHeader("Pragma", "no-cache");
    xhr.onreadystatechange = function(){
    if (xhr.readyState == 4) {
    if (xhr.status == 200) {
    if (xhr.responseText != null) {
    processRSS(xhr.responseXML, id, actionId, ContId, url);
    else {
    mwl.insertHTML( '#container_home', "Failed to receive RSS file from the server - response text is null." );
    return false;
    else {
    mwl.insertHTML( '#container_home', "Error code " + this.status + " received: " + this.statusText );

    //send the request
    Anyone can fix these problem?? Help me please....

    Last edited by kusumaedi; 2011-07-29 at 05:04. Reason: add some sample code

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003

    Re: Problem with user authentication XML


    Could you kindly send the complete problematic code to my email petro dot soininen at nokia dot com?


Similar Threads

  1. XML parsing of string with user defined tags
    By dilipsinh in forum Symbian
    Replies: 4
    Last Post: 2011-07-04, 16:14
  2. Proxy server user authentication on Nokia N-8
    By girishpadia in forum Wired and Wireless interfaces (Closed)
    Replies: 0
    Last Post: 2011-04-13, 06:03
  3. Wireless with WPA and user authentication
    By peroo-nokia in forum Wired and Wireless interfaces (Closed)
    Replies: 0
    Last Post: 2006-11-27, 10:03
  4. Replies: 3
    Last Post: 2006-09-29, 08:37
  5. Problem with SPP and InputStream. Problem 2 how to get around authentication
    By Jossnaz in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2006-09-24, 13:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts