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 7924043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:31:34+00:00 2026-06-03T17:31:34+00:00

In my Sencha touch app. i use .net websevice to get data in xml

  • 0

In my Sencha touch app. i use .net websevice to get data in xml format.
I call it using Ext.Ajaxrequest as bellow

var frmurl ='http://Server/sencha/WS/web.asmx/GetData';
Ext.Ajax.request({
     url: frmurl,
     method: 'post',
     params: {
                       whereCondition :WhereCond,
                       ReportName:rptname
         },                                 
    success: function(Response) {
                 renderReport(Response.responseText,'1');
    }
    , failure: function (Response, request)
    {
       Ext.MessageBox.alert('Error, unable to load data');
    } //</failure> 

});

Its working fine and giving me correct result but i need to add below tag in web.config to make it working

<webServices>
  <protocols>
    <add name="HttpGet"/>
    <add name="HttpPost"/>
  </protocols>
</webServices>

But due to this anyone can invoke webmethods which is major security issue.
if i remove this tags then unable to call webservice and gives internal server error.

Please help me.
thanks

  • 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-06-03T17:31:36+00:00Added an answer on June 3, 2026 at 5:31 pm

    What you’re finding is that you need to enable at least one “protocol” in order for a client system to communicate with your Web Service, so you could enable HttpSoap if your client device supported SOAP or enable HttpPostLocalhost if your client and server were always on the same machine (which yours won’t be as your clearly building a mobile site).

    However, what you’ve also discovered is that Web Services by their very definition can be accessible by anyone when they are published, unless you setup some kind of authentication, or restrict access to the Web Service by some other means, like restricting by IP address etc.

    You might not know it yet, but this question/answer is similar to yours and should help you come to a fairly standard way of achieving what you’re after.

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

Sidebar

Related Questions

I'm using Sencha Touch (ExtJS) to get a JSON message from the server. The
I have a MVC-styled sencha touch app and normally I used Ext.apply(app.views, { loginPage:
I am using Sencha Touch with Phonegap to bring my app to iOS. When
I have a Sencha Touch App that loads data from a REST service into
I have an app that has several different pages that use Sencha Touch. Ocassionally
I'm programming a Sencha Touch app with a moderately complex composition of Ext.TabBar with
I am developing an app using Sencha Touch 1.1.1. I would like to create
I use Sencha Touch and Phonegap to build a small app. In this app
I am writing a native iPhone and Android app using Sencha Touch inside Phonegap
I'm calling a web service with my Sencha Touch mobile app: Ext.regModel('BaseResponse', { idProperty:

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.