if (baseURI != null && new File(baseURI).exists())
{
baseURI = new File(baseURI).toURI().toString();
}
Resolver resolver = new Resolver(baseURI, wsdl);
if (resolver.getInputStream() == null)
{
throw new XFireException("Could not find wsdl " + wsdl + " with a base URI of " + baseURI
+ ".");
}
String wsdlUri = resolver.getURI().toString();
if (baseURI == null)
{
baseURI = wsdlUri;
}
log.info("Generating code for WSDL at " + wsdlUri + " with a base URI of " + baseURI);
InputSource source = new InputSource(resolver.getInputStream());
source.setSystemId(wsdlUri);
WSDLServiceBuilder builder = new WSDLServiceBuilder(baseURI, source);
builder.setBindingProvider(support.getBindingProvider());
builder.setForceBare(forceBare);
builder.build();