Package org.wijiscommons.ssaf.search.wrapper

Examples of org.wijiscommons.ssaf.search.wrapper.RecordRetrievalResponse


      RecordRetrieval recordRetrievalRequest) throws FatalRecordRetrievalFault
  {   
    log.info("Executing RecordRetrieval operation");

    Element retrieveDocElement = (Element) recordRetrievalRequest.getAny();
    RecordRetrievalResponse recordRetrievalResponse = new RecordRetrievalResponse();
    ServiceResponseInfo sb = new ServiceResponseInfo();
    Document retrievalResponseDocument = null;
   
      if (recordRetrievalSolrBean != null)
      {
        try
        {   retrievalResponseDocument = recordRetrievalSolrBean.retrieve(
              solarLocation, retrieveDocElement.getOwnerDocument(),
              xpathLocation);
          recordRetrievalResponse.setAny(retrievalResponseDocument
                .getDocumentElement());
        }
        catch (SSAFSolrException solrException)
        {
          sb.noteError(solrException.getMessage());
View Full Code Here


      RecordRetrieval recordRetrieval = new RecordRetrieval();
      recordRetrieval.setAny(retrieveRequestDocument.getDocumentElement());

      try
      {
        RecordRetrievalResponse recordRetrievalResponse = port
            .recordRetrieval(recordRetrieval);
        if(recordRetrievalResponse != null)
        {
          Element retrieveReponseElement = (Element) recordRetrievalResponse.getAny();
          System.out.println("RecordRetrieval result : "
                  + ClientDomUtils
                      .getStringFromDocument(retrieveReponseElement
                  .getOwnerDocument()));
        }
View Full Code Here

     * @return RecordRetrievalResponse
     */
    public RecordRetrievalResponse retrieve(Element recordRetrievalRequestDocElement) throws FatalRecordRetrievalFault
    {
      log.info("Invoking recordRetrieval web service...");
      RecordRetrievalResponse recordRetrievalResponse = null;
      RecordRetrieval recordRetrievalRequest = new RecordRetrieval();
      recordRetrievalRequest.setAny(recordRetrievalRequestDocElement);
    SearchService port = sendCertAlong();
   
    if(port != null)
View Full Code Here

      RecordRetrieval recordRetrieval = new RecordRetrieval();
      recordRetrieval.setAny(retrieveRequestDocument.getDocumentElement());

      try
      {
        RecordRetrievalResponse recordRetrievalResponse = port
            .recordRetrieval(recordRetrieval);
        if(recordRetrievalResponse != null)
        {
          Element retrieveReponseElement = (Element) recordRetrievalResponse.getAny();
          System.out.println("RecordRetrieval result : "
                  + DomUtils.getStringFromDocument(retrieveReponseElement
                  .getOwnerDocument()));
        }
        else
View Full Code Here

        "request-files/javaClient-requestFiles/recordRetrieval_request.xml");

    Document retrieveRequestDocument = DomUtils
        .getDocumentFromFile(retrieveRequestFile);

    RecordRetrievalResponse recordRetrievalResponse = null;
    try
    {
            searchAndRecordRetrievalClient
            .setEndpointURL("https://yogesh.doa.wistate.us:8444/SSAFSearchWebService/SearchService");

        recordRetrievalResponse = searchAndRecordRetrievalClient
          .retrieve(retrieveRequestDocument.getDocumentElement());
    }
    catch (FatalRecordRetrievalFault e)
    { // TODO Auto-generated catch block
      e.printStackTrace();
    }

    if (recordRetrievalResponse != null)
    {
      Element retrieveReponseElement = (Element) recordRetrievalResponse
          .getAny();
      System.out.println("RecordRetrieval result : "
          + DomUtils.getStringFromDocument(retrieveReponseElement
              .getOwnerDocument()));
    }
View Full Code Here

    RecordRetrievalResult retrievResponseCommand = new RecordRetrievalResult();

    Document recordRetrievalRequestDocument = SSAFAdminUtility
    .createRecordRetrievalRequest(recordURI);

    RecordRetrievalResponse webServiceRetrieveResponse =null;

    webServiceRetrieveResponse = recordRetrievalWebServiceClient
        .retrieve(recordRetrievalRequestDocument.getDocumentElement());

    if (webServiceRetrieveResponse != null)
    {
      Element reponseElement = (Element) webServiceRetrieveResponse.getAny();

      // check if response is empty or payload, if it is later turn on the flag.
      NodeList payloadNodeList = reponseElement
      .getElementsByTagNameNS(SSAFNodes.payload.getNamespace(),
          SSAFNodes.payload.getLocalName());
View Full Code Here

    }   
   
    Document recordRetrievalRequestDocument = SSAFAdminUtility
    .createRecordRetrievalRequest(recordURI);

    RecordRetrievalResponse webServiceRetrieveResponse =null;

    try
    {
      webServiceRetrieveResponse = recordRetrievalWebServiceClient
          .retrieve(recordRetrievalRequestDocument.getDocumentElement());
    }
    catch (Exception e)
    {
      // This try/catch block is only to log message to log file.
      // Once's it's logged re throw the exception so that it is handled in web flow.

      log
          .error("Caught exception when invoking record retrieval web service "
              + e.getMessage());
      throw e;
    }

    if (webServiceRetrieveResponse == null)
    {
        throw new Exception("Unable to get response from Record Retrieval Service.  Please try again later.");
    }   
   
    Element reponseElement = (Element) webServiceRetrieveResponse.getAny();

    // check if response is empty or payload, if it is later turn on the flag.
    NodeList payloadNodeList = reponseElement
    .getElementsByTagNameNS(SSAFNodes.payload.getNamespace(),
        SSAFNodes.payload.getLocalName());
View Full Code Here

     * @return RecordRetrievalResponse
     */
    public RecordRetrievalResponse retrieve(Element recordRetrievalRequestDocElement) throws FatalRecordRetrievalFault
    {
      log.info("Invoking recordRetrieval web service...");
      RecordRetrievalResponse recordRetrievalResponse = null;
      RecordRetrieval recordRetrievalRequest = new RecordRetrieval();
      recordRetrievalRequest.setAny(recordRetrievalRequestDocElement);
    SearchService port = sendCertAlong();
   
    if(port != null)
View Full Code Here

TOP

Related Classes of org.wijiscommons.ssaf.search.wrapper.RecordRetrievalResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.