Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/310.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 向邮递员请求wcf Web服务_C#_Soap_Soapui_Postman - Fatal编程技术网

C# 向邮递员请求wcf Web服务

C# 向邮递员请求wcf Web服务,c#,soap,soapui,postman,C#,Soap,Soapui,Postman,我试图请求WCF web服务,但收到此消息时出现错误500 格式化程序在尝试反序列化消息时引发异常:尝试反序列化参数时出错。命名空间中的InnerException消息为“元素值”,不能将子内容反序列化为对象。请使用XmlNode[]反序列化此XML模式 如果你知道我该怎么做,请帮忙 谢谢 ? ::1 用户名 蒂佩克斯 密码 123456 证明…是真实的 ? ? 答:反序列化失败 格式化程序在尝试反序列化消息时引发异常:尝试反序列化参数时出错http://tempuri.org/:me

我试图请求WCF web服务,但收到此消息时出现错误500

格式化程序在尝试反序列化消息时引发异常:尝试反序列化参数时出错。命名空间中的InnerException消息为“元素值”,不能将子内容反序列化为对象。请使用XmlNode[]反序列化此XML模式

如果你知道我该怎么做,请帮忙 谢谢


?
::1
用户名
蒂佩克斯
密码
123456
证明…是真实的
?
?


答:反序列化失败
格式化程序在尝试反序列化消息时引发异常:尝试反序列化参数时出错http://tempuri.org/:messageSet. InnerException消息是“命名空间中的元素值”http://schemas.datacontract.org/2004/07/Sanay.Suip.Library 不能将子内容反序列化为对象。请使用XmlNode[]反序列化此XML模式。“。有关更多详细信息,请参阅InnerException。

您好,您能将您的问题包括在您发布的XML中吗?是的,我现在就做,请稍候。此图像链接显示请求xmlImage链接不好-在问题中发布XML(不是图像)。嗯。。。棘手的也许你应该联系供应商。。。。他们应该能给你举个例子
<x:Envelope xmlns:x="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:san="http://schemas.datacontract.org/2004/07/Sanay.Suip.Library">
<x:Header/>
<x:Body>
    <tem:QueryMessage>
        <tem:messageSet>
            <san:ActionId>?</san:ActionId>
            <san:Ip>::1</san:Ip>
            <san:Parameters>
                  <san:Parameter>
                    <san:Name>Username</san:Name>
                    <san:Value>tipex</san:Value>
                </san:Parameter>

                 <san:Parameter>
                    <san:Name>Password</san:Name>
                    <san:Value>123456</san:Value>
                </san:Parameter>

            </san:Parameters>
            <san:Title>Authenticate</san:Title>
            <san:Token>?</san:Token>
            <san:Username>?</san:Username>
        </tem:messageSet>
    </tem:QueryMessage>
</x:Body>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
    <s:Fault>
        <faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:DeserializationFailed</faultcode>
        <faultstring xml:lang="en-US">The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:messageSet. The InnerException message was 'Element Value from namespace http://schemas.datacontract.org/2004/07/Sanay.Suip.Library cannot have child contents to be deserialized as an object. Please use XmlNode[] to deserialize this pattern of XML.'.  Please see InnerException for more details.</faultstring>
    </s:Fault>
</s:Body>