我为SharePoint QueryService编写了一个WCF客户端。
总之,它编写了一个正确形成的SOAP查询。但是当它被执行时,http请求会在SOAP信封之前“忘记”XML声明。 QueryService does not like that。
如何强制WCF客户端使用以下命令启动请求:
<?xml version="1.0">
答案 0 :(得分:2)
这是WCF client does not include XML declaration in HTTP POST message的重复(虽然是其他一些网络服务)。
您似乎需要实现自定义编码器。有关详细信息,请参阅上面的链接。