肥皂 API "reverse engineer"

SOAP API "reverse engineer"

我正在尝试计算一些 SOAP API 的东西。

我最近进行了一次成功的呼叫。它的 SOAPActionhttp://EDPS.ServiceModel.Terminals/ITerminalOperations/DoTransaction,正文是:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<DoTransaction xmlns="http://EDPS.ServiceModel.Terminals">
<request i:type="a:FinancialRequest" xmlns:a="http://schemas.datacontract.org/2004/07/EDPS.ServiceModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<a:MessageType>FinancialTransaction</a:MessageType>
<a:Amount>100</a:Amount>
<a:AuthId i:nil="true"/>
<a:Cashier>1234</a:Cashier>
<a:ECRReferenceNumber i:nil="true"/>
<a:InstPart>0</a:InstPart>
<a:Installments>0</a:Installments>
<a:PostDating>0</a:PostDating>
<a:ReceiptNumber i:nil="true"/>
<a:TipAmount>0</a:TipAmount>
<a:UseTerminalPrinter>false</a:UseTerminalPrinter>
<a:TransactionType>Sale</a:TransactionType>
</request>
</DoTransaction>
</s:Body>
</s:Envelope>

url 在本地服务 http://localhost:8000/EDPOS/service?wsdl 上。当我尝试使用浏览器访问该位置时,它会打开一个包含一些定义的 xml 文件。我可以看到里面有很多SOPAction,其中一个是我用过的。

问题:我是否可以遍历xml,或者里面的各种链接,或者其他任何东西,找出什么样的body 其他 SOAPAction 需要吗?

下载 SoapUI (https://www.soapui.org/) 它是我最喜欢的此类工具,将您的 wsdl (http://localhost:8000/EDPOS/service?wsdl) 加载到新项目中,然后让 SoapUI 为您分解所有调用、属性、方法等 - 它将为您提供可视化地图和一种非常简单的方法来了解与服务交互的可能性。