开发者

Invoking web service methods from code-behind

开发者 https://www.devze.com 2022-12-29 02:32 出处:网络
The application on which I am working has a web service exposing various methods. Most of these methods use WebOperationContext.Current to set headers up to prevent cacheing. This works fine when the

The application on which I am working has a web service exposing various methods. Most of these methods use WebOperationContext.Current to set headers up to prevent cacheing. This works fine when the service methods are consumed in AJAX via the generated proxy, but when I attempt to do the same thing fr开发者_如何学JAVAom code-behind, WebOperationContext.Current is null.

Can anyone tell me how to confer appropriate call context on the method invocation?

0

精彩评论

暂无评论...
验证码 换一张
取 消