简体   繁体   English

SoapException:服务器无法读取请求

[英]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.

相关问题 SoapException Server无法在MVC站点中处理ASMX Web服务上的请求 - SoapException Server was unable to process request on ASMX webservice in MVC site System.Web.Services.Protocols.SoapException:服务器无法处理请求。 ---&gt; System.ArgumentNullException - System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ArgumentNullException Windows 2008 R2企业版问题(消息:System.Web.Services.Protocols.SoapException:服务器无法处理请求) - Windows 2008 R2 Enterprise Edition Issues(Message:System.Web.Services.Protocols.SoapException: Server was unable to process request) 从SoapException读取XMLNode错误 - Read XMLNode errors from SoapException SoapException的通用服务器错误消息的可能原因 - Possible causes of Generic Server Error message for SoapException 服务器无法处理请求 - Server was unable to process request SoapException ---&gt;无法将类型为&#39;x&#39;的对象转换为类型&#39;x&#39; - SoapException ---> Unable to cast object of type 'x' to type 'x' 无法读取Request.Form变量 - Unable to read Request.Form variables 由于内部错误,服务器无法处理请求 - The server was unable to process the request due to an internal error .Net Web请求-无法连接到远程服务器 - .Net Web Request - Unable to connect to the remote server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM