开发者

WCF client forgets XML declaration

I have written a WCF client for the SharePoint QueryService.

In a word, it writes a correctly-formed SOAP query. But when it is executed, the http request "forgets" the XML D开发者_JAVA技巧eclaration before the SOAP Envelope. The QueryService does not like that.

How can I force the WCF client to start the request with:

<?xml version="1.0">


This is a duplicate (although some other web service) to WCF client does not include XML declaration in HTTP POST message .

It seems that you need to implement a custom encoder. See link above for more information.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜