Binding to an external web service

2 posts, 0 answers
  1. Fraser Tustian
    Fraser Tustian avatar
    18 posts
    Member since:
    Sep 2012

    Posted 04 Nov 2013 Link to this post


    I'm having trouble binding the RadAutoCompleteBox to an external web service (ie one residing on a different domain).

    I notice that when the AutoCompleteBox calls a local web service, it uses POST. But it seems to change that to a GET when the web service is on a different domain, which means that the call is being rejected when I try it to both an .asmx and a .svc.

    I've tested this repeatedly and note that when I change from to then Chrome's Developer Tools are reporting that the service call changes from POST to GET.

    I've tried experimenting with getting the .asmx and .svc methods to support GET, but that's causing other problems, so my first approach is to see if it's possible to force a POST, which seems to work.

    My questions are:

    1. Is it possible to support POST for external web service calls, or would that require JSONP (which I gather is not supported)?
    2. If not (or perhaps, either way), is there any way to connect to an external web service .asmx (for example) and - if so - could you post a small demo of it? When I try connecting to an external .asmx via GET, I'm getting an error 500 because the ASMX isn't liking the URL sent by the RadAutoCompleteBox (Request format is unrecognized for URL unexpectedly ending in '/GetResourcePickerAutoCompleteSearchResults'.)

    Please note that by "external web service", I do control that web service and can set it up any way required.


  2. Nencho
    Nencho avatar
    1666 posts

    Posted 07 Nov 2013 Link to this post

    Hello Fraser,

    I am afraid that the RadAutoCompleteBox can only be bound to local web services (in the same domain) using the HTTP POST method. Therefore, I would suggest you to implement the Web Service in the same domain as explained above.

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top