[英]SoapException: Server was unable to read request
I have created a web service using Microsoft C# and i was able to hosted it in a remote server consume it using a C# Desktop client 我已经使用Microsoft C#创建了Web服务,并且能够将其托管在远程服务器中,并使用C#Desktop客户端使用它
But end client who uses a SAP interface is unable to use this web service and getting the following errors. 但是使用SAP界面的最终客户端无法使用此Web服务,并出现以下错误。
As the input parameters user has to input a class complex as this : 作为输入参数,用户必须输入如下复杂类:
This is the SOAP 1.1 request and response 这是SOAP 1.1的请求和响应
POST Webservice.asmx HTTP/1.1
Host: 122.255.30.74
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "xxxx"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<SendEmail xmlns="xxxx">
<toDetails>
<EmailAddress>
<Email>string</Email>
<Name>string</Name>
</EmailAddress>
<EmailAddress>
<Email>string</Email>
<Name>string</Name>
</EmailAddress>
</toDetails>
<CC>
<EmailAddress>
<Email>string</Email>
<Name>string</Name>
</EmailAddress>
<EmailAddress>
<Email>string</Email>
<Name>string</Name>
</EmailAddress>
</CC>
<BCC>
<EmailAddress>
<Email>string</Email>
<Name>string</Name>
</EmailAddress>
<EmailAddress>
<Email>string</Email>
<Name>string</Name>
</EmailAddress>
</BCC>
<subject>string</subject>
<Item>
<Items>
<ID>DateTime</ID>
<Key>string</Key>
<ChangedUser>string</ChangedUser>
</Item>
<Items>
<ID>DateTime</ID>
<Key>string</Key>
<ChangedUser>string</ChangedUser>
</Item>
</Items>
</SendEmail>
</soap:Body>
What might be the problem ? 可能是什么问题?
It is choking on one of the datetime fields. 它阻塞了datetime字段之一。 Try sending a valid datetime where you currently have dateTime text.
尝试在当前具有dateTime文本的地方发送有效的datetime。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.