SoapException:服务器无法读取请求
我使用 Microsoft C# 创建了一个 Web 服务,并且能够将其托管在远程服务器中,使用 C# 桌面客户端 使用它,
但是使用 的最终客户端SAP 接口无法使用此 Web 服务并出现以下错误。
作为输入参数,用户必须输入一个类复合体,如下所示:
这是 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>
可能出现什么问题?
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
But end client who uses a SAP interface is unable to use this web service and getting the following errors.
As the input parameters user has to input a class complex as this :
This is the SOAP 1.1 request and response
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 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它在日期时间字段之一上令人窒息。尝试发送当前具有日期时间文本的有效日期时间。
It is choking on one of the datetime fields. Try sending a valid datetime where you currently have dateTime text.