使用soapUI提取和解析数据

发布于 2024-08-29 06:28:22 字数 305 浏览 2 评论 0原文

所以我需要快速学习如何使用soapUI。我发现开始很乏味,所以我希望我能在这里得到一些帮助。这就是我需要做的。

假设我们有公司 A 和公司 B,公司 B 是公司 B 的子集。现在公司 A 提供了公司 B 可以访问的 Web 服务,这样公司 B 就可以从公司 A 的数据库收集每日汇总数据。现在 B 公司想要获取这些数据并将其发布在他们的网站上。

我想要的是一个非常基本的概述,了解我需要做什么来提取和解析网站上的数据。只是流程的概要,以便我可以开始。

在什么阶段我应该使用什么语言,什么时候不应该使用什么语言。

任何帮助将不胜感激。

So I am in need to learn how to use soapUI pretty quick. I'm finding it pretty tedious to start so I was hoping I might be able to get some help here. Here's what I need to do.

Lets say we have Company A and Company B which is a subset of Company B. Now Company A offers a webservice accessible by Company B such that Company B can gather daily aggregated data from Company A's database. Now Company B wants to take this data and publish it on their website.

What I'd like is a very basic overview of what I need to do to extract and parse the data onto a website. Just the outline of the process so I can get started.

What languages should I be using at what stages and what not.

Any help would be highly appreciated.

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

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

发布评论

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

评论(1

如梦亦如幻 2024-09-05 06:28:22

这不是 SoapUI 问题,而是您需要开始使用 SOA/SOAP。没关系,SoapUI 是解决这个问题的好方法。
A 公司发布的 SOAP Web 服务将具有允许访问数据或让您添加/更新数据的“方法”。假设他们是二手车登记处。它们可能具有 GetCarList、GetCarData、SubmitBid 等方法。您可以通过 SOAP 调用这些方法,并获得响应。请求和响应都是 XML。
CompanyA 将发布一个描述该接口的“wsdl”。将其插入 SoapUI,您应该能够发出示例请求。可能会有空字段,带有 ?其中,它们是数据的占位符(carID、VIN、MaxRecords 等)。看看您是否可以修改请求足以满足服务器的要求,按下“GO”按钮,然后看看您会得到什么。如果幸运的话,您会取回数据,然后就可以上路了。

当您开始构建应用程序时,您几乎可以使用您选择的语言。 .Net、PHP、Java、本机 C,甚至 Delphi...SOAP 被设计为与平台/语言无关。如果您可以通过 HTTP/HTTPS 进行通信,那么您应该可以正常工作了。

This isn't a SoapUI question, rather, you need to get started with SOA/SOAP. That's fine, and SoapUI is a good way to figure it out.
The SOAP webservice published by company A will have "methods" that allow access to data, or let you add/update data. Suppose they're a used car registry. They may have methods such as GetCarList, GetCarData, SubmitBid, etc.. You call those via SOAP, and get a response. Both the request and response are XML.
CompanyA will publish a "wsdl" that describes the interface. Plug that into SoapUI, and you should be able to make sample requests. There will probably be empty fields, with ? in them, which are placeholders for data (carID, VIN, MaxRecords, etc..). See if you can modify the request enough to satisfy the server, press the GO button, and see what you get back. If you're lucky, you'll get data back, and you're on your way.

When you get down to building your app, you can pretty much use the language of your choice. .Net, PHP, Java, native C, even Delphi... The SOAP is designed to be platform/language agnostic. If you can talk via HTTP/HTTPS, you should be in business.

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