Java Client

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
Guest

Java Client

Post by Guest »

I've wrote a (very simple) java library to file a report in Mantis directly from java programs. It's freely available to anyone at http://rapidshare.de/files/9987069/java ... t.rar.html.

I'm sure that there are many more software developers out there thats too lazy (or already have too many work to be done) to design and code his own error reporting system. In this case i think application like mantis could be of big help (not that im promoting to help lazy programmers). It could provide some API to programmably file a report. Web service standard should be nice.

As to the absence of such interface, i was forced to make a quick and dirty resolution (i.e, using ugly regexes to extract error messages). So i dont think i will use this library for production deployment. But its sufficient for workable beta testing, and it have give me enough time to breath and recover.

N.p.: the gui client is _not_ tested (and i think its not working). write your own.[/url]
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

I suggest you have a look at MantisConnect (http://www.futureware.biz/mantisconnect). It consists of:

- A PHP webservice.
- A C# client that can be used from any .NET language
- A Java client (only available in CVS)
- Some sample .NET applications.

Several people have implemented applications based on MantisConnect including Eclipse add-in that is based on the Java client library.

Regards,
Victor
Mantis Blog
http://www.futureware.biz
hmackiernan
Posts: 18
Joined: 17 Feb 2006, 19:23
Location: San Francisco, CA

.NET? .NOT!

Post by hmackiernan »

I think the idea of MantisConnect is wonderful, but I don't want to (and in fact, cannot due to my environment) get within a billion miles of .NET

I would dearly, dearly love a completely open-source (more specifically, Perl/PHP/what have you)
solution for importing issues from flat-file or XML formats into Mantis.

If I've missed something in MantisConnect [and you can, in fact use it without a single shred of .NET) then please, by all means correct me -- I'd love to be wrong on that point :)

Regards

h MacKiernan
San Francisco, US
(but don't hold that against me)
Narcissus
Developer
Posts: 338
Joined: 17 Feb 2005, 09:45

Post by Narcissus »

MantisConnect is two parts: a PHP web service (that runs on the server) and a .NET 'web service consumer' that runs on the client. If you want it to.

Because the server side PHP web service is just a standard SOAP service, you can use any language at all you like to interface with it.

Basically, if you want to use .NET, you get a nice library to interface with the server, but definitely you can use any language you like to work with it (but you will have to implement your own SOAP consumer, as it were).
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

This is to confirm what Narcissus said. You can use any language to communicate with the PHP web service.

The last release version of MantisConnect has a .NET client library. Which includes both the web service proxy and an object model that simplies the use of MantisConnect webservice.

The current code in CVS has the following client libraries:
- .NET
- Java
- Cocoa (for Mac)

The Java and Cocoa were developed by developers who didn't want to use .NET and then they joined the MantisConnect team and add their own client library. Hence, I'd welcome anyone who would like to implement and maintain client libraries in any language to join the team.

Regards,
Victor.
MantisConnect
http://www.futureware.biz/mantisconnect
cckramer
Posts: 6
Joined: 18 Feb 2006, 17:18
Location: Europe
Contact:

Post by cckramer »

Someone developed Eclipse client using MantisConnect?
Can you provide URL or something?
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

This is currently in CVS under clients/java/eclipse. I'm hoping I'll get the time to release MantisConnect soon and hence it will be easier to access this work.

Regards,
Victor
MantisConnect
http://www.futureware.biz/mantisconnect/
hmackiernan
Posts: 18
Joined: 17 Feb 2006, 19:23
Location: San Francisco, CA

good news

Post by hmackiernan »

Ok good, I was apparently not paying close enough attention -- my bad, and thank you for correcting me. I (believe) I have the mc webservice installed and will now see about finding/writing a non-.NET client.

Thanks again all

-h MacKiernan
utvara
Posts: 1
Joined: 22 May 2006, 00:53

Post by utvara »

Hi, is there a build of eclipse plugin I can download? I've did co from CVS and to my surprise I didn't manage to build it from first, second... try. I'm willing to do beta testing, but I need help getting it running. (I'm PHP programmer, no builds for me :P )
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

The latest code for MantisConnect is now migrated to SVN. However, the Eclipse plug-in will be included in MantisConnect 1.0a6 when it is released.

Regards,
Victor
http://www.futureware.biz/mantisconnect/
a_stranger_in_the_dark
Posts: 1
Joined: 18 Dec 2006, 22:12

Post by a_stranger_in_the_dark »

Hi,
I import files from SVN using Eclipse 3.2 and it seems that many files are missing :
- org.mantisbt.connect.service.AccountData;
- org.mantisbt.connect.service.CustomFieldDefinitionData;
- org.mantisbt.connect.service.FilterData;
- org.mantisbt.connect.service.IssueData;
- org.mantisbt.connect.service.IssueHeaderData;
- org.mantisbt.connect.service.IssueNoteData;
- org.mantisbt.connect.service.MantisConnectLocator;
- org.mantisbt.connect.service.MantisConnectPortType;
- org.mantisbt.connect.service.ObjectRef;
- org.mantisbt.connect.service.ProjectAttachmentData;
- org.mantisbt.connect.service.ProjectData;
- org.mantisbt.connect.service.ProjectVersionData;

Could you help me, please ?

Stranger
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

The Java client library and the Eclipse plug-in are not handled by me personally. I would suggest reporting this issue on:

http://www.futureware.biz/mantis
Post Reply