From: Raul L. <sup...@ya...> - 2012-08-29 19:23:20
|
Hello Kreindl K.: To connect to mantis I do the following (see below) and it works at least the connection. I didn't try this ConnectLocator, sorry. try { URL url = new URL("http://localhost/mantis/api/soap/mantisconnect.php"); MantisConnectLocator mcl = new MantisConnectLocator(); portType = mcl.getMantisConnectPort( url ); }catch( Exception e ) { log.error( e ); // do other stuff } Enviado desde la nevera // Sent from the fridge Raul Luna Rodríguez sup...@ya... ________________________________ De: Kreindl K. <kle...@gm...> Para: man...@li... Enviado: Martes, 28 de agosto, 2012 3:09 P.M. Asunto: [Mantisbt-soap-dev] create a connection to mantis hello! i've been trying to access our Mantis-Server for several hours up to now :(, util i decided to post a message here :P now to my problem: i try to acces Mantis using java (via mantis-axis-soap-client-1.2.9), but all i get are connection timeouts. i have also tried a solution which was posted here, but i must be missing something. my code: URL url = new URL("http://www.feat.at/mantisbt/api/soap/mantisconnect.php"); MantisConnectLocator mcl = new MantisConnectLocator(); mcl.setMantisConnectPortEndpointAddress( "https://www.myserver.com/mantisbt/api/soap/mantisconnect.php"); MantisConnectPortType mcpt = mcl.getMantisConnectPort(); System.out.println(mcpt.mc_version()); i hope you can give me a hint or some help how i get this thing working kreindl k ps: excuse my bad english :) ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Mantisbt-soap-dev mailing list Man...@li... https://lists.sourceforge.net/lists/listinfo/mantisbt-soap-dev |