C# WCF无法序列化已包装的消息

C# WCF无法序列化已包装的消息,c#,wcf,web-services,serialization,soap,C#,Wcf,Web Services,Serialization,Soap,简而言之,我尝试用WCF手动构建一个web服务消费者;以下是SOAP响应: <s:Body xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <AMethodResponse xmlns="http://v_namespace"> <ReturnObjectHeader> <Field5>V5</Field5>

简而言之,我尝试用WCF手动构建一个web服务消费者;以下是SOAP响应:

<s:Body xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <AMethodResponse xmlns="http://v_namespace">
        <ReturnObjectHeader>
            <Field5>V5</Field5>
            <Field3>V5</Field3>
            <Field4>V5</Field4>
        </ReturnObjectHeader>
    </AMethodResponse>
</s:Body>
以下是跟踪结果:

Description: An unrecognized element was encountered in the XML during deserialization which was ignored.
Element: http://v_namespace:Field5
NOTE: Same for Field4 and 3
我做错了什么?

在上找到;添加
ServiceBehavior
属性对我有效,即:

[ServiceBehavior(Namespace="http://v_namespace")]
[ServiceBehavior(Namespace="http://v_namespace")]