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}
{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}