use of eu.etaxonomy.cdm.api.service.lsid.LSIDWSDLWrapper in project cdmlib by cybertaxonomy.
the class LsidAuthorityServiceImpl method getAuthorityWSDL.
@Override
public ExpiringResponse getAuthorityWSDL() throws LSIDServerException {
LSID lsid = null;
LSIDWSDLWrapper wsdl = lsidWSDLWrapperFactory.getLSIDWSDLWrapper(lsid);
try {
wsdl.setAuthorityLocation(new HTTPLocation("AuthorityServiceHTTP", "HTTPPort", lsidDomain, lsidPort, null));
// lsidWSDLWrapperFactory.setAuthorityLocation(new SOAPLocation("AuthorityServiceSOAP", "SOAPPort", "http://" + lsidDomain + ":" + lsidPort + "/authority/soap/"), wsdl);
return new ExpiringResponse(wsdl.getWSDLSource(), getExpiration());
} catch (LSIDException e) {
throw new LSIDServerException(e, e.getErrorCode(), "LSIDAuthorityServiceImpl Error in getAuthorityWSDL");
} catch (WSDLException e) {
throw new LSIDServerException(e, LSIDServerException.INTERNAL_PROCESSING_ERROR, "LSIDAuthorityServiceImpl Error in getAuthorityWSDL");
}
}
Aggregations