resourceSet.getLoadOptions().put(WSDLResourceImpl.CONTINUE_ON_LOAD_ERROR, new Boolean(false));
wsdlMainResource.load(inputSource.getByteStream(), resourceSet.getLoadOptions());
}
catch (IOException ioe)
{
throw new WSDLException(WSDLException.INVALID_WSDL, "", ioe);
}
Definition definition = wsdlMainResource.getDefinition();
if (definition != null)
definition.setDocumentBaseURI(documentBaseURI);