肥皂API“反向工程师”

发布于 2025-01-20 12:08:26 字数 1393 浏览 3 评论 0原文

我试图找出一些肥皂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 s,其中之一是我使用的。

问题:我能够穿越XML或其中的各种链接,或其他任何链接,以找出哪种body其他soapaction代码>需要?

I am trying to figure some SOAP API stuff.

I recently performed a successful call. Its SOAPAction was http://EDPS.ServiceModel.Terminals/ITerminalOperations/DoTransaction, and the body was:

<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>

The url was on a local service, http://localhost:8000/EDPOS/service?wsdl. When I try to access that location with a browser, it opens an xml file with some definitions. I can see numerous SOPActions in there, one of which is the one I used.

Question: Am I able to traverse through the xml, or the various links inside it, or anything else, to figure what kind of body the other SOAPActions need?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

咋地 2025-01-27 12:08:26

下载soapui( https://www.soapui.org/ )这是我最喜欢的工具,将WSDL(http:// localhost:8000/edpos/service?wsdl)加载到一个新项目中,然后让SOAPUI分解所有调用,属性,方法等。了解与服务互动的可能性非常简单的方法。

Download SoapUI (https://www.soapui.org/) it's my favorite tool for these kind of things, load your wsdl (http://localhost:8000/EDPOS/service?wsdl) into a new project, and let SoapUI breakdown all the calls, attributes, methods, etc. for you - It will provide you a visual map and a very easy way to understand what possibilities there are of interacting with the service.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文