Re: [dev] Java WebServiceClient for OTRS

--------- Original Message --------
From: Development community of OTRS.org
jonathan sartin (jonathan@opennms.org) wrote:
> It's not wsdl for the rpc-example.pl, but I have tested it with AXIS > 1.4 (my requirement). You can use this module and wsdl for creating > and retrieving simple tickets/articles.
Hi,
rpc/encoded works with Axis?
It does with 1.4, anyway.
I'd prefer document/literal (wrapped) as rpc/encoded is not WS-I compliant.
yeah, document/literal isn't exactly SOAP::Lite's strong point though. I suspect it's possible but I can't find any examples to work with.
I also have problems importing it into MS VisualStudio (stubs aren't generated).
That I can't help you with, I'm afraid.
BTW: You have to change the port address from "http://localhost/otrs/opennms.pl" to whatever your local hostname is.
Yeah, you'd set the endpoint with something like: service = new TicketServiceLocator(); service.setTicketServicePortEndpointAddress(new java.lang.String("http://yourhost/otrs/opennms.pl")); rather than change the wsdl though. I guess I could have OTRS tweak the wsdl on the way through to reflect the hostname. Cheers ... J ________________________________________________ Message sent using UebiMiau 2.7.2

Hi Jonathan,
I try to test the WSDL with Axis2 1.4.
I used the following command to generate Code
WSDL2Java -uri http://myHost/TicketService.wsdl -p com.samples.clients -d
adb -s -o build/client
And get this exception
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
To see the whole exception: http://pastebin.com/m34e092a7
Have you any idea what can be wrong?
Best Regards
Christoph
-----Ursprüngliche Nachricht-----
Von: dev-bounces@otrs.org [mailto:dev-bounces@otrs.org] Im Auftrag von
jonathan sartin
Gesendet: Freitag, 9. Mai 2008 17:09
An: Development community of OTRS.org
Betreff: Re: [dev] Java WebServiceClient for OTRS
--------- Original Message --------
From: Development community of OTRS.org
jonathan sartin (jonathan@opennms.org) wrote:
> It's not wsdl for the rpc-example.pl, but I have tested it with AXIS > 1.4 (my requirement). You can use this module and wsdl for creating > and retrieving simple tickets/articles.
Hi,
rpc/encoded works with Axis?
It does with 1.4, anyway.
I'd prefer document/literal (wrapped) as rpc/encoded is not WS-I compliant.
yeah, document/literal isn't exactly SOAP::Lite's strong point though. I suspect it's possible but I can't find any examples to work with.
I also have problems importing it into MS VisualStudio (stubs aren't generated).
That I can't help you with, I'm afraid.
BTW: You have to change the port address from "http://localhost/otrs/opennms.pl" to whatever your local hostname is.
Yeah, you'd set the endpoint with something like: service = new TicketServiceLocator(); service.setTicketServicePortEndpointAddress(new java.lang.String("http://yourhost/otrs/opennms.pl")); rather than change the wsdl though. I guess I could have OTRS tweak the wsdl on the way through to reflect the hostname. Cheers ... J ________________________________________________ Message sent using UebiMiau 2.7.2 _______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
participants (2)
-
Christoph Nagel
-
jonathan sartin