|
From: Robert M. <rob...@gm...> - 2012-04-11 08:41:12
|
On Wed, Apr 11, 2012 at 6:00 AM, Marcelo de Barros Leiras
<le...@pa...> wrote:
> Hi,
>
> i'm trying to retrieve the users from a project, but i got the atached error
> messages.
> I'm using java, and this is my test method:
>
> public static void main(String[] args) throws Exception {
> String user = "leiras";
> String pwd = "leiras";
> URL url = new
> URL("http://localhost/mantis/api/soap/mantisconnect.php");
>
> Service service = new Service();
> Call call = (Call) service.createCall();
>
> call.setTargetEndpointAddress(url);
> Object ret = call.invoke("mc_project_get_users", new Object[] {user,
> pwd, 29, 90});
> System.out.println(ret);
> }
>
> My mantis version is 1.2.9.
> Am i doing something wrong?
> Thanks.
>
Hi,
It looks like you're using Axis 1. Have you tried using the
pre-generated SOAP stubs from [1] ?
They should work out of the box.
Robert
[1]: http://search.maven.org/#search|gav|1|g%3A%22biz.futureware.mantis%22%20AND%20a%3A%22mantis-axis-soap-client%22
> Leiras
>
> ------------------------------------------------------------------------------
> Better than sec? Nothing is better than sec when it comes to
> monitoring Big Data applications. Try Boundary one-second
> resolution app monitoring today. Free.
> http://p.sf.net/sfu/Boundary-dev2dev
> _______________________________________________
> Mantisbt-soap-dev mailing list
> Man...@li...
> https://lists.sourceforge.net/lists/listinfo/mantisbt-soap-dev
>
--
Sent from my (old) computer
|