肥皂API“反向工程师”
我试图找出一些肥皂API的东西。
我最近进行了一个成功的电话。它的soapaction
是http://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 SOPAction
s 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 SOAPAction
s need?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
下载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.