Web服务 - CURL vs VS2008 vs SoapUI

时间:2013-03-15 19:22:32

标签: ruby-on-rails xml web-services visual-studio-2008 curl

使用CURL ...我能够运行以下命令

 C:\curl>curl -H  "SOAPAction: http://172.16.255.7:5000/client_smart/"
 --data @soap.xml http://172.16.255.7:5000/client_smart

在我的C:\驱动器中,我有一个如下定义的soap.xml文件:

<?xml version="1.0" encoding="utf-8" ?>
<env:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
  <env:Body>
    <n1:get_client env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
        xmlns:n1="urn:ActionWebService">
      <client_id xsi:type="xsd:int">1</client_id>
    </n1:get_client>
  </env:Body>
</env:Envelope

当我运行命令时,它会按预期执行并返回信息。



但是,当我打开Visual Studio 2008并尝试将其添加为参考时,我收到此消息

 The document at the url http://172.16.255.7:5000/client_smart/wsdl was
 not recognized as a known document type. The error message from each
 known type may help you fix the problem:
 - Report from 'DISCO Document' is 'Discovery document at the URL 
 http://172.16.255.7:5000/client_smart/wsdl could not

enter image description here

我也在VS2008的URL中没有/ wsdl的情况下尝试了...但是“无法显示页面”。



使用SoapUI作为URL,我收到消息“无法确定'action_web_service / xsd:string'的命名空间”

知道为什么Web服务可以在CURL中工作,但不能在VS2008或SoapUI中工作吗?

该服务是在Ruby on Rails中开发的。

0 个答案:

没有答案