|
From: Marcelo de B. L. <le...@pa...> - 2012-04-12 15:36:55
|
Working now Robert!
This is the new test code:
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");
MantisConnectLocator mcl = new MantisConnectLocator();
MantisConnectPortType portType = mcl.getMantisConnectPort(url);
AccountData[] users = portType.mc_project_get_users(user, pwd,
new BigInteger("29"), new BigInteger("90"));
for (AccountData ad : users) {
System.out.println(ad.getName());
}
}
But, i have another question...
Is there a way to get all the users of Mantis database?
I can get the projects, an then the users from each project, but this is
not very "beautiful".
Is there a simple way?
Thanks again
Em 12/04/2012 05:30, Robert Munteanu escreveu:
>
>
> On Thu, Apr 12, 2012 at 2:16 AM, Marcelo de Barros Leiras
> <le...@pa... <mailto:le...@pa...>> wrote:
>
> Hi Robert,
>
> i'm using the jar of pre-generated SOAP stubs from this link:
>
> http://search.maven.org/remotecontent?filepath=biz/futureware/mantis/mantis-axis-soap-client/1.2.9/mantis-axis-soap-client-1.2.9.jar
>
> And yes, my Axis version is 1.4, that i caught from this link:
>
> http://www.apache.org/dyn/closer.cgi/ws/axis/1_4
>
> The "mc_issue_add" works fline, but "mc_project_get_users" no.
> Is accces level 90 correct?
> Should i use Axis 2?
>
>
> I'm not sure why you you the low-level Axis objects . I don't have the
> code in front of me right now, but IIRC you should use a
> MantisConnectorLocator to obtain a MantisConnectPortType which offers
> typed access to all operations exposed by the API.
|