xmlString = SoapServices.getDefault().getStartpointXml(reference);
} catch (Exception e) {
// logger.severe("Can not convert XSOAP remote reference to WSDL", e);
// throw new NonstandardException("Can not convert XSOAP remote reference to WSDL", e);
logger.severe("Can not convert XSOAP remote reference to String", e);
throw new NonstandardException("Can not convert XSOAP remote reference to String", e);
}
// create the XmlBean ReferenceType
// ReferenceType wsdlReference = null;
ReferenceType xmlReference = null;
try {
// wsdlReference = (ReferenceType) ReferenceType.Factory.parse(wsdlString);
xmlReference = (ReferenceType) ReferenceType.Factory.parse(xmlString);
} catch (Exception e) {
// logger.severe("Can not convert stringified WSDL to XmlBean ReferenceType", e);
// throw new NonstandardException("Can not convert stringified WSDL to XmlBean ReferenceType",
// e);
logger.severe("Can not convert stringified reference to XmlBean ReferenceType", e);
throw new NonstandardException("Can't convert stringified reference to XmlBean ReferenceType",
e);
}
// add a reference in the real Handle Resolver
try {
// ClientUtil.setLocator(handleResolverURL,
// handle,
// wsdlReference);
ClientUtil.setLocator(handleResolverURL,
handle,
xmlReference);
} catch (Exception e) {
logger.severe("Can not register reference with Handle Resolver", e);
throw new NonstandardException("Can not register reference with Handle Resolver", e);
}
}