开发者

Passing a parameter from the Telerik RadToolTipManager to a WCF service fails

When the RadToolTipManager calls the WCF web service it fails when trying to cast to an IDictionary contextDictionary where as when the web service is just a pure webservice the parameter correctly casts.

Why is this?

The code in questi开发者_StackOverflow中文版om

[WebMethod]
public string WebServiceMethodName(object context)
{
    // works
    IDictionary<string, object> contextDictionary = (IDictionary<string, object>) context;

}

[OperationContract]
public string WebServiceMethodName(object context)
{
    // fails
    IDictionary<string, object> contextDictionary = (IDictionary<string, object>) context;

}


Use Fiddler (http://www.fiddler2.com/fiddler2) to see the exact error message returned.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜