Mantis Bug 跟踪器 API 集成?
我刚刚安装了 Mantis bug tracker 与 Eclipse IDE 一起使用,并且也开始发现它的优点。真的很棒。
由于 Eclipse 通过 PHP Soap API 与 Mantis 进行通信,我想知道是否有一些文档可以说明我如何自己进行调用,从我的 PHP 应用程序到 API 来添加新错误并获取现有错误的状态。
多谢!
I have just installed the Mantis bug tracker to use together with Eclipse IDE and have started too found out the advantages of it. Really great.
Since Eclipse communicates with Mantis through an PHP soap API, I wonder if there's some documentation available on how I can myself make calls, from my PHP application to the API to add new bugs and get statuses of existing ones.
Thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我也在寻找这个问题的答案,并认为我应该将我的发现添加到这个问题中,以便以后可以再次找到它们(希望它们对其他人也有用)
SOAP API 的 URL 是
$(MANTIS_URI)/api/soap/mantisconnect.php
(例如,如果您的 Mantis 通常通过http://localhost/mantis/
访问,则转到http:// localhost/mantis/api/soap/mantisconnect.php
)它使用 NuSOAP,这意味着如果您将 Web 浏览器指向该 URL,您将获得 Web 服务的 HTML 文档;大多数操作似乎都有合理的名称和对其作用的一行描述。 WSDL 可以在
$(MANTIS_URI)/api/soap/mantisconnect.php?wsdl
下载,并且因为我使用的是 C#,所以在该 URL 上运行wsdl.exe
为我提供了一个基本的强类型服务客户端库,看起来很容易使用。I too was looking for an answer to this and thought I'd add my findings to this question so I can find them again later (and hopefully they're of use to someone else too)
The URL of the SOAP API is
$(MANTIS_URI)/api/soap/mantisconnect.php
(e.g. if your Mantis is usually accessed athttp://localhost/mantis/
then go tohttp://localhost/mantis/api/soap/mantisconnect.php
)It uses NuSOAP which means that if you point your web browser at that URL you get HTML documentation of the web service; most of the actions seem to have sensible names and a one-line description of what it does. The WSDL can be downloaded at
$(MANTIS_URI)/api/soap/mantisconnect.php?wsdl
and, because I'm using C#, runningwsdl.exe
on that URL gives me a basic strongly-typed client library for the service that seems pretty easy to work with.我能够在使用 phpsoapCall 函数并逐步浏览代码时自己解决这个问题。虽然花了很长时间,但至少成功了……
I was able to sort it out myself while using php soapCall functions and going through the code, step by step. Took really long time, but It worked out at least...