How to create a WSDL 1.1 Definitions

Version 1 by Nicolas Salatge
on Jan 02, 2011 22:52.

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (1)

View Page History
The code below allows you to read a WSDL 1.1 definitions:

{code:borderStyle=solid}
// create factory: can be static
XmlContextFactory xmlContextFactory = new XmlContextFactory();

// create context: can be static
XmlContext xmlContext = xmlContextFactory.newContext();

// create object factory
XmlObjectFactory xmlObjectFactory = xmlContext.getXmlObjectFactory();

// create definitions
Definitions definitions = xmlObjectFactory create(Definitions.class);

{code}