try
{
if (documentBaseURI != null)
wsdlMainResource.setURI(createURI(documentBaseURI));
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);
}