WCF REST ATOM Feed 中的特殊字符 [英] Special Characters in WCF REST ATOM Feed

查看:32
本文介绍了WCF REST ATOM Feed 中的特殊字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 WCF ATOM Feed 服务,它使用 WCF REST 工具包和以下 UriTemplate

I have a WCF ATOM Feed Service using the WCF REST Toolkit with the following UriTemplate

[WebGet(UriTemplate = "{category}/?numItems={numItems}")]
public Atom10FeedFormatter GetFeedByCategory(string category, int numItems)

大多数情况下都有效,优势是当我尝试根据带有 # 符号的类别加载提要时.我正在加载 category='C#' 的课程,所有服务看到的都是C".这两个链接都在这样做.有谁知道是否有一些特殊的方法可以在 WCF 中转义此字符?

Most cases work, the edge is when I try to load the feed based on the category with a # sign. I am loading courses for category='C#' and all the service ever sees is 'C'. Both of these links are doing that. Does anyone know if there is some special way to escape this character in for WCF?

推荐答案

在 MSDN 论坛上回答 http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/d03c8331-1e98-4d5d-82a7-3909122a/一个>

Answered on MSDN Forums http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/d03c8331-1e98-4d5d-82a7-390942a93012/

这篇关于WCF REST ATOM Feed 中的特殊字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆