Joh*_*son 6 .net xslt rest wcf web-services
我有一个WCF REST服务,它返回使用XmlSerializer序列化的对象.如何将WSL样式表信息(如下所示)添加到WCF服务返回的输出中?
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="transforms/Customer.xsl"?>
<Customer>
    <Name>Foo</Name>
</Customer>
我目前的业务合同:
[OperationContract, XmlSerializerFormat]
[WebGet( UriTemplate = "{id}" )]
Customer GetById( string id );
我希望能够做什么,以便控制样式表参考:
[OperationContract, XmlSerializerFormat]
[XslStylesheet( Href = "transforms/Customer.xsl" )]
[WebGet( UriTemplate = "{id}" )]
Customer GetById( string id );
    | 归档时间: | 
 | 
| 查看次数: | 1324 次 | 
| 最近记录: |