Search in sources :

Example 1 with HTTPLocation

use of com.ibm.lsid.wsdl.HTTPLocation 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");
    }
}
Also used : LSID(eu.etaxonomy.cdm.model.common.LSID) LSIDException(com.ibm.lsid.LSIDException) WSDLException(javax.wsdl.WSDLException) LSIDWSDLWrapper(eu.etaxonomy.cdm.api.service.lsid.LSIDWSDLWrapper) LSIDServerException(com.ibm.lsid.server.LSIDServerException) HTTPLocation(com.ibm.lsid.wsdl.HTTPLocation) ExpiringResponse(com.ibm.lsid.ExpiringResponse)

Aggregations

ExpiringResponse (com.ibm.lsid.ExpiringResponse)1 LSIDException (com.ibm.lsid.LSIDException)1 LSIDServerException (com.ibm.lsid.server.LSIDServerException)1 HTTPLocation (com.ibm.lsid.wsdl.HTTPLocation)1 LSIDWSDLWrapper (eu.etaxonomy.cdm.api.service.lsid.LSIDWSDLWrapper)1 LSID (eu.etaxonomy.cdm.model.common.LSID)1 WSDLException (javax.wsdl.WSDLException)1