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

How do I assign WebService Proxy?

2 Answers 66 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Bharat
Top achievements
Rank 1
Bharat asked on 13 Oct 2010, 05:41 PM
I am using the Scheduler with the WebService for all the data binding. I have custom data provider that talks to the database and used into the contoller for the webservice. It works fine when it is used with the setting: ResourcePopulationMode="ClientSide". When I change it to ResourcePopulationMode="ServerSide", I get the error. The reason is that webservice is secured by forms authentication and I need to pass in the credentials before I make calls to the webservice. I tried to see if I can create and assign proxy myself with no success. Looks like it only takes the path to the webservice url. How would I solve this problem?

Thanks a lot...

2 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 19 Oct 2010, 04:14 PM
Hello Bharat,

Currently, there's no way to set a proxy for this web service call.

We'll add such functionality for the next release (Q3 2010) , but for the moment the only option is to set the ResourcePopulation mode to Manual and call the web service manually.

Apologies for the caused inconvenience.

Greetings,
Tsvetomir Tsonev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
T. Tsonev
Telerik team
answered on 20 Oct 2010, 12:14 PM
Hello Bharat,

A quick follow-up. It turns out you can still use a proxy by setting a default one. Here's an example:

protected void Page_Load(object sender, EventArgs e)
{
        WebProxy.GetDefaultProxy().Address = new Uri("http://localhost:8888");
}

I hope this helps.

Greetings,
Tsvetomir Tsonev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Scheduler
Asked by
Bharat
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or