Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6946557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:34:48+00:00 2026-05-27T13:34:48+00:00

I have recently started a project in Sencha touch with existing Web-services. Being very

  • 0

I have recently started a project in Sencha touch with existing Web-services.
Being very new to the technology, I am facing certain issues in accomplishing some functionality.

Problem
I have to call login service and the request goes like:

http://domain.sub.com/Service.asmx/LoginService?body={"Username":"maj@smaj.com","Password":"p12345","Token":122112321123212123,"Method":"Login","LabId":"(null)","Hash":"fr3f33f3334348u8yy8hfuhdu8bdy7y89u89x8998c89789c87d78r9","DeviceType":"iPhone Simulator","DeviceId":"91BF3299-A94C-5AD3-9C35-A5C9BBBB6AA8","ApplicationType":"iPhone","Id":"998390494"}

but the response is coming in XML format as:
RESPONSE:

<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://domain2.sub2.com/MobileWebService/">{"Id":"null","Message":"Logged In.","Status":true,"LoggedIn":true}</string>

I have to parse this xml to json to get : {"Id":"null","Message":"Logged In.","Status":true,"LoggedIn":true} out of the response.

then use the Status, LoggedIn and Id to verify the login.

My Idea
I am not sure whether its right, I am trying to create two stores, xmlStore and JsonStore.

??

  • How will I store the xml response inside a string.
  • How Will I pass this string to Json Store (at the place of url?)

I may sound very naive to this, but this is my problem 😉

Please guide.

EDIT:

I realized tha I am diving cross domain request.
is that what is causing problems or confusion. How to deal with it suppose I did not had cross domain requests?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:34:49+00:00Added an answer on May 27, 2026 at 1:34 pm

    If you are doing cross domain requests use scripttag in your proxy in place of ajax. Here is a json example

    ex.

    mApp.stores.onlineStore = new Ext.data.Store({
     model: 'XPosts',
     proxy: {
               type: 'scripttag',
               url : 'http://domain.com/data.json',
               reader: new Ext.data.JsonReader({
                   root: 'pages'
               }),
                timeout: 3000,
            listeners: {
                exception:function () {
                    console.log("onlineStore: failed");
                },
                    success: function(){
                        console.log("onlineStore: success");
                    }
                }
           },
        autoLoad: true
     });
    

    Offline store:

    mApp.stores.offlineStore = new Ext.data.Store({
        model: 'XPosts',
        proxy: {
            type: 'localstorage',
            id: 'appdata',
            reader: new Ext.data.JsonReader({
                root: 'pages'
            })
        },
        autoLoad: true
    });
    

    Then, in your launch :

    this.stores.onlineStore.addListener('load', function () {
           console.log("onlineStore: online");
           mApp.stores.offlineStore.proxy.clear();
            console.log("offlineStore: cleared");
            this.each(function (record) {
                console.log("offlineStore: adding record");
               mApp.stores.offlineStore.add(record.data)[0];
           });
           mApp.stores.offlineStore.sync();
            console.log("offlineStore: synced");
            mApp.stores.offlineStore.load();
        });
        this.stores.onlineStore.load();
    

    May have some bugs so beforewarned!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently started working on a very large C++ project that, after completing
I've recently started a new web development project for an embedded device and wanted
I'm fairly new to MVVM, and I have recently started a project cleaning up
I have recently started a new C++ project and I intend to make it
I've just recently started using VS2008 for a new tools project, and have been
I have recently started a fairly large web project which is going to use
I recently started at a new position where the project is being developed using
I have very recently started using a Bzr shared repository to manage my project.
I have recently started a project in Ruby on Rails. I used to do
I currently have a recently started project in development with a 2010 target date

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.