Re: consuming the web service
On Thu, 20 May 2010, Sam Takoy wrote:
I've been tasked with building an application that will consume this web
service:
http://epfr.com/epfrdata.asmx?WSDL
I know java and tomcat, but I know nothing about SOAP and WSDL. I hoping that
someone will point me in the right direction for approaching this task?
Is axis2 the right tool to look at here?
It's one of the options. Last time i did this, i used Metro:
https://jax-ws.dev.java.net/
Because it's the reference implementation of JAX-WS, and because from the
little research i did, it seemed to have better support for the particular
WSDL features i needed than Axis2.
To use Metro, you apply the wsimport tool to your WSDL file, and it
generates a load of code (as source or class files). You put the generated
classes and the Metro libraries on your classpath, and you're away.
I should warn you, though: i just ran that WSDL through JBoss's WSDL
importer, and it rejected it because of a missing import in the schema.
You may have to do some hacking of the WSDL file to get it to work right.
tom
--
OK, mostly because of Tom, but not only because of his bloody irritating
character and songs.