return AssemblyConstants.INTERFACE_WSDL;
}
public WSDLServiceContract load(XMLStreamReader reader, LoaderContext loaderContext) throws XMLStreamException, ConfigurationLoadException {
assert AssemblyConstants.INTERFACE_WSDL.equals(reader.getName());
WSDLServiceContract serviceContract = factory.createWSDLServiceContract();
serviceContract.setScope(Scope.INSTANCE);
ResourceLoader resourceLoader = loaderContext.getResourceLoader();
String location = reader.getAttributeValue(WSDLI, WSDLI_LOCATION);
if (location != null) {
try {
wsdlRegistry.loadDefinition(location, resourceLoader);
} catch (IOException e) {
throw new MissingInterfaceException(e);
} catch (WSDLException e) {
throw new MissingInterfaceException(e);
}
}
String portTypeURI = reader.getAttributeValue(null, "interface");
if (portTypeURI != null) {
serviceContract.setPortType(getPortType(portTypeURI, resourceLoader));
}
portTypeURI = reader.getAttributeValue(null, "callbackInterface");
if (portTypeURI != null) {
serviceContract.setCallbackPortType(getPortType(portTypeURI, resourceLoader));
}
StAXUtil.skipToEndElement(reader);
return serviceContract;
}