This is a migrated thread and some comments may be shown as answers.

clarify how to use a web service

1 Answer 49 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 1
Roger asked on 10 Oct 2008, 05:26 PM
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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Roger
Top achievements
Rank 1
answered on 10 Oct 2008, 07:54 PM
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.
Tags
TreeView
Asked by
Roger
Top achievements
Rank 1
Answers by
Roger
Top achievements
Rank 1
Share this question
or