You're trying to use one of only two SOAP implementations that don't support WSDL. (The other is Apache SOAP.) JAXM is a XML-based API. It assumes that your application performs all your XML processing (using Xerces or JAXP or JAXB). You are responsible for constructing and interpreting the contents of the SOAP body. I would suggest that you try using an RMI-style API instead, such as JAX-RPC. Apache Axis and Sun's JAX-RPC RI (part of JWSDP) implement the JAX-RPC API. Or you might try almost any other Java SOAP implementation, such as Systinet WASP, The Mind Electric GLUE, IONA XMLbus (see http://www.xmlbus.com), or Cape Clear Cape Studio. All of these implementations provide a WSDL compiler (called something like wsdl2java, wscompile, or WSDL compiler) which can generate a Java client for you from a WSDL description. If you insist on using JAXM, I recommend that you look at Sun's Web services tutorial. You will need to build and interpret the SOAP body yourself, though.
Dig Deeper on Topics Archive
Related Q&A from Anne Thomas Manes
Anne Thomas Manes explains the differences between open source clients and open source implementations. Continue Reading
Anne Thomas Manes discusses the best way to go about creating an enterprise data dictionary and why the systems works well. Continue Reading
Anne Thomas Manes explains the difference between 'hard' real time and 'live' real time systems. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.