public static DocumentRegistryPortType getDocumentRegistryPortSoap12(String endpointAddress) { DocumentRegistryPortType port = getDocumentRegistryPortSoap12(); configurePort((BindingProvider)port, endpointAddress, false, true, true); return port; }
public static DocumentRegistryPortType getDocumentRegistryPortSoap12(String endpointAddress, String logDir) { DocumentRegistryPortType port = getDocumentRegistryPortSoap12(); configurePort((BindingProvider)port, endpointAddress, false, true, logDir); return port; }
private RegistryResponseType dispatchSubmitObjectsRequest(SubmitObjectsRequest submitRequest, URL xdsRegistryURI) throws MalformedURLException, JAXBException, XDSException { DocumentRegistryPortType port = DocumentRegistryPortTypeFactory.getDocumentRegistryPortSoap12(xdsRegistryURI.toString()); log.info("####################################################"); log.info("####################################################"); log.info("XDS.b: Send register document-b request to registry:"+xdsRegistryURI); log.info("####################################################"); log.info("####################################################"); log.info("org.jboss.security.ignoreHttpsHost:"+System.getProperty("org.jboss.security.ignoreHttpsHost")); RegistryResponseType rsp = null; try { rsp = port.documentRegistryRegisterDocumentSetB(submitRequest); } catch ( Exception x) { throw new XDSException( XDSException.XDS_ERR_REG_NOT_AVAIL, "Document Registry not available: "+xdsRegistryURI, x); } return rsp; }
private RegistryResponseType dispatchSubmitObjectsRequest(SubmitObjectsRequest submitRequest, URL xdsRegistryURI) throws MalformedURLException, JAXBException, XDSException { DocumentRegistryPortType port = DocumentRegistryPortTypeFactory.getDocumentRegistryPortSoap12(xdsRegistryURI.toString()); log.info("####################################################"); log.info("####################################################"); log.info("XDS.b: Send register document-b request to registry:"+xdsRegistryURI); log.info("####################################################"); log.info("####################################################"); log.info("org.jboss.security.ignoreHttpsHost:"+System.getProperty("org.jboss.security.ignoreHttpsHost")); RegistryResponseType rsp = null; try { rsp = port.documentRegistryRegisterDocumentSetB(submitRequest); } catch ( Exception x) { throw new XDSException( XDSException.XDS_ERR_REG_NOT_AVAIL, "Document Registry not available: "+xdsRegistryURI, x); } return rsp; }
private AdhocQueryResponse sendStoredQuery(String url, AdhocQueryRequest req) { AdhocQueryResponse rsp; URL registryURL = null; try { DocumentRegistryPortType port = DocumentRegistryPortTypeFactory.getDocumentRegistryPortSoap12(url); log.info("####################################################"); log.info("####################################################"); log.info("XCA Initiating Gateway: Send Stored Query Request to registry:"+url); log.info("####################################################"); log.info("####################################################"); log.info("org.jboss.security.ignoreHttpsHost:"+System.getProperty("org.jboss.security.ignoreHttpsHost")); registryURL = new URL(url); try { rsp = port.documentRegistryRegistryStoredQuery(req); } catch ( Exception x) { throw new XDSException( XDSException.XDS_ERR_REG_NOT_AVAIL, "Document Registry not available: "+url, x); } } catch (Exception x) { rsp = InfosetUtil.emptyAdhocQueryResponse(); if (x instanceof XDSException) { XDSUtil.addError(rsp, (XDSException) x); } else { XDSUtil.addError(rsp, new XDSException(XDSException.XDS_ERR_REGISTRY_ERROR, "Unexpected error in XDS service !: "+x.getMessage(),x)); } } XDSAudit.logClientQuery(req, XDSConstants.WS_ADDRESSING_ANONYMOUS, null, registryURL, !XDSConstants.XDS_B_STATUS_FAILURE.equals(rsp.getStatus())); return addHomeCommunityId(rsp); }
String url = XdsDevice.getXCARespondingGW().getRegistryURL(); registryURL = new URL(url); DocumentRegistryPortType port = DocumentRegistryPortTypeFactory.getDocumentRegistryPortSoap12(url); log.info("####################################################"); log.info("####################################################");