Visual studio中不支持Ruby Soap Web服务错误

Visual studio中不支持Ruby Soap Web服务错误,ruby,web-services,visual-studio-2010,soap,soapui,Ruby,Web Services,Visual Studio 2010,Soap,Soapui,Visual studio在添加soap web引用时出错 the document at the url was not recognized as a known document type. The error message from each known type may help you fix the problem: - Report from 'XML Schema' is 'The root element of a W3C XML Schema should be <

Visual studio在添加soap web引用时出错

the document at the url was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'XML Schema' is 'The root element of a W3C XML Schema should be <schema> and its namespace should be 'http://www.w3.org/2001/XMLSchema'.'.
- Report from 'DISCO Document' is 'Discovery document at the URL could not be found.'.
  - The document format is not recognized.
- Report from 'WSDL Document' is 'There is an error in XML document (2, 55).'.
  - The string '' is not a valid Uri value.
Metadata contains a reference that cannot be resolved: 
The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly.
url处的文档未被识别为已知文档类型。
来自每种已知类型的错误消息可能有助于解决问题:
-来自“XML模式”的报告是“W3C XML模式的根元素应该是,其命名空间应该是”http://www.w3.org/2001/XMLSchema'.'.
-来自“DISCO Document”的报告是“找不到URL处的发现文档”。
-无法识别文档格式。
-来自“WSDL文档”的报告是“XML文档(2,55)中存在错误”。
-字符串“”不是有效的Uri值。
元数据包含无法解析的引用:
内容类型text/html;响应消息的charset=utf-8与绑定的内容类型不匹配(application/soap+xml;charset=utf-8)。如果使用自定义编码器,请确保正确实现IsContentTypeSupported方法。
这是要返回的内容:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="m:BillServiceSoap">
   <soap:Body>
      <tns:S3rdParty_PaymentRs>
         <PaymentRs xsi:type="tns:bill_payment_service_soap_types.payment_rs">
            <ChannelID xsi:type="xsd:string">1</ChannelID>
            <ResponseCode xsi:type="xsd:string">2</ResponseCode>
         </PaymentRs>
      </tns:S3rdParty_PaymentRs>
   </soap:Body>
</soap:Envelope>

1.
2.

那么,您是如何解决这个问题的呢?显然,您的web服务不起作用properly@NicoHaase我已经尝试过使用Soup UI,它正在工作。这就是我遇到的问题,不使用VSI的原因是什么根据错误消息,内容类型设置不正确。当您自己的代码更加严格时,Soup UI是否会忽略这一点?@NicoHaase。对令人困惑的是这和什么有关系?你能发布SoapUI返回的部分内容吗?