cURL-如何使用内部wsdl(脚本)成功完成校准

问题描述 投票:0回答:1

因此,我试图通过cURL中断呼叫,但是此端点不同,我无法通过浏览器连接,即使我看不到WSDL的结构。

如果我尝试通过浏览器使用它,则会收到以下答案:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<env:Fault>
<faultcode>env:Client</faultcode>
<faultstring>Internal Error</faultstring>
</env:Fault>
</env:Body>
</env:Envelope>

并且我通过cURL得到相同的响应

cURL activity V 7.69

enter image description here

我可以成功地通过SoapUi发出请求,因为我确实需要从公司的Intranet下载WSDL和XSD文件,并且该文件位于我的桌面上,如下所示:enter image description hereenter image description here

有一种无需通过WSDL在线就能完成请求并通过cURL接收响应的方法吗?

curl soap wsdl soapui
1个回答
0
投票

我做到了,有些愚蠢的事情:D这是因为可能会请求xml,所以应该使用@而不是路径,在我使用cURL的地方,它应该位于请求的相同路径。

© www.soinside.com 2019 - 2024. All rights reserved.