public final static SoapVersion11 instance = new SoapVersion11();
private SoapVersion11()
{
SoapUIClassLoaderState state = SoapUIExtensionClassLoader.ensure();
try
{
XmlOptions options = new XmlOptions();
options.setCompileNoValidation();
options.setCompileNoPvrRule();
options.setCompileDownloadUrls();
options.setCompileNoUpaRule();
options.setValidateTreatLaxAsSkip();
// soapSchemaXml = XmlObject.Factory.parse(
// SoapUI.class.getResource(
// "/com/eviware/soapui/resources/xsds/soapEnvelope.xsd" ), options );
soapSchemaXml = XmlUtils.createXmlObject(
SoapUI.class.getResource( "/com/eviware/soapui/resources/xsds/soapEnvelope.xsd" ), options );
soapSchema = XmlBeans.loadXsd( new XmlObject[] { soapSchemaXml } );
soapEnvelopeType = soapSchema.findDocumentType( envelopeQName );
soapFaultType = soapSchema.findDocumentType( faultQName );
// soapEncodingXml = XmlObject.Factory.parse(
// SoapUI.class.getResource(
// "/com/eviware/soapui/resources/xsds/soapEncoding.xsd" ), options );
soapEncodingXml = XmlUtils.createXmlObject(
SoapUI.class.getResource( "/com/eviware/soapui/resources/xsds/soapEncoding.xsd" ), options );
}
catch( Exception e )
{
SoapUI.logError( e );
}
finally
{
state.restore();
}
}