clarify how to use a web service

2 posts, 1 answers
  1. Roger
    Roger avatar
    40 posts
    Member since:
    May 2008

    Posted 10 Oct 2008 Link to this post

    In attempting to use a treeview control that will use LoadOnDemand and get data from a web service that I have written, I tried to point the treeview to a web service in a different domain. Since I was attempting a cross-domain request, I got an error.

    So, I have been researching proxy services, and how to use them.

    I have created a web reference in my application that is using the treeview. That web reference points to the web service I created. But, how do I hook this to the treeview? Do I have to create an .asmx file in my application, and use that to "wrap" the functionality of the web service (then point the Path property of the treeview's WebServiceSettings entry to the new asmx file).

    Or, is this approach completely wrong?

    I haven't found a good explaination for this but, I hope it isn't too dumb of a question.

    Thanks.
  2. Answer
    Roger
    Roger avatar
    40 posts
    Member since:
    May 2008

    Posted 10 Oct 2008 Link to this post

    I seem to have this working now.

    I created an asmx file in my client application and pointed it to the web service. I made the asmx file accessible from script with the ScriptService attribute, etc. and pointed the treeview control to the "local" asmx file.

    It works very well.

    Thanks.

    I don't see any way to mark this as answered, or I would do it.
Back to Top