Package org.wijiscommons.ssaf.search.wrapper

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


  public SearchResponse search(Search searchRequest) throws FatalSearchFault
  {
    log.info("Executing Search operation");
    Element searchRequestDocElement = (Element) searchRequest.getAny();
    SearchResponse searchReponse = new SearchResponse();
    ServiceResponseInfo sb = new ServiceResponseInfo();
    Document searchResultsDocument = null;

    try
    {
      if (searchSolrBean != null)
      {
        searchResultsDocument = searchSolrBean.search(solarLocation,
            searchRequestDocElement.getOwnerDocument());
        searchReponse.setAny(searchResultsDocument.getDocumentElement());
       
      }
      else
      {
        log.error("Injected SSAFSolr search implementation bean is null");
View Full Code Here


      Search search = new Search();
      search.setAny(searchRequestDocument.getDocumentElement());

      try
      {
        SearchResponse searchReponse = port.search(search);
        if (searchReponse != null)
        {
          Element searchReponseElement = (Element) searchReponse.getAny();
          System.out.println("Search result  : "
              + ClientDomUtils
                  .getStringFromDocument(searchReponseElement
              .getOwnerDocument()));
        }
View Full Code Here

     * @return SearchResponse
     */
    public SearchResponse search(Element searchRequestDocumentElement) throws FatalSearchFault
    {
      log.info("Invoking search web service...");
      SearchResponse searchReponse = null;
      SearchService port = sendCertAlong();
      Search search = new Search();
      search.setAny(searchRequestDocumentElement)

      if(port != null)
View Full Code Here

      Search search = new Search();
      search.setAny(searchRequestDocument.getDocumentElement());

      try
      {
        SearchResponse searchReponse = port.search(search);
        if (searchReponse != null)
        {
          Element searchReponseElement = (Element) searchReponse.getAny();
          System.out.println("Search result  : "
              + DomUtils.getStringFromDocument(searchReponseElement
              .getOwnerDocument()));
        }
        else
View Full Code Here

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

    Document searchRequestDocument = DomUtils
        .getDocumentFromFile(searchRequestFile);
   
    SearchResponse searchReponse = null;
    try
    {
      searchAndRecordRetrievalClient
          .setEndpointURL("https://yogesh.doa.wistate.us:8444/SSAFSearchWebService/SearchService");
     
      searchReponse = searchAndRecordRetrievalClient
        .search(searchRequestDocument.getDocumentElement());
    }
    catch (FatalSearchFault e)
    {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

    if (searchReponse != null)
    {
      Element searchReponseElement = (Element) searchReponse.getAny();
      System.out.println("Search result  : "
          + DomUtils.getStringFromDocument(searchReponseElement
              .getOwnerDocument()));
    }
    else
View Full Code Here

        if (StringUtils.isNotBlank( searchCriteria.getEndPointUrl() ))
        {
            searchAndRetrieveServicesJavaClient.setEndpointURL( searchCriteria
                .getEndPointUrl() );
        }
        SearchResponse searchResponse =
            searchAndRetrieveServicesJavaClient.search(searchRequest
                    .getDocumentElement());

        Element searchResultElement = (Element) searchResponse.getAny();
       
       
        String result =
            this.processBase64ImageElements(searchResultElement,
            externalContext);
View Full Code Here

            throws ParserConfigurationException, Exception
    {

        Document searchRequest = createSearchRequest(searchCriteria);
       
        SearchResponse searchResponse = null;
       
    try
    {
      if (!searchCriteria.getEndPointUrl().equals(
          searchAndRetrieveServicesJavaClient.getEndpointURL() ))
      {
          searchAndRetrieveServicesJavaClient.setEndpointURL( searchCriteria
              .getEndPointUrl() );
      }
     
      searchResponse = searchAndRetrieveServicesJavaClient.search(searchRequest
              .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 search web service "
          + e.getMessage());
      throw e;
    }
   
    String result = null;
   
    if (searchResponse != null)
    {
      Element searchResultElement = (Element) searchResponse.getAny();

      result = this.processBase64ImageElements(
          searchResultElement, externalContext);
    }
View Full Code Here

   * @return SearchResponse
   */
    public SearchResponse search(Element searchRequestDocumentElement) throws FatalSearchFault
    {
      log.info("Invoking search web service...");
      SearchResponse searchReponse = null;
      SearchService port = sendCertAlong();
      Search search = new Search();
      search.setAny(searchRequestDocumentElement)

      if(port != null)
View Full Code Here

TOP

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

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.