Skip navigation links

Oracle Secure Enterprise Search Java API Reference
11g Release 2 (11.2.2.2.0)

E35072-02


oracle.search.query.webservice.wssclient
Class OracleQueryService

java.lang.Object
  extended by javax.xml.ws.Service
      extended by oracle.search.query.webservice.wssclient.OracleQueryService


public class OracleQueryService
extends javax.xml.ws.Service

The service implementation for the Query API Web Service with identity propagation. It is the main entry point to perform query operations. The service must be initialized using the Web Service WSDL URL and the fully qualified service name. Once the service is initialized, an OracleSearchPort can be retrieved to perform query operations.

The WSDL is represented by a java.net.URL and has the following format:

    http://<sesHost>:<sesPort>/search/api/wss/query/OracleSearch
 

where sesHost and sesPort are the Oracle Secure Enterprise Search host and port.

The service name is represented by a javax.xml.namespace.QName and must be initialized using the namespace URL "http://search.oracle.com/Query" and the local part "OracleQueryService".

For example, the following initializes an OracleQueryService and retrieves an OracleSearchPort:

   OracleQueryService service = new OracleQueryService(
     new java.net.URL( "http://localhost:8001/search/api/wss/query/OracleSearch" ),
     new javax.xml.namespace.QName( "http://search.oracle.com/Query", "OracleQueryService" )
   ); 

   SecurityPolicyFeature[] securityFeature = new SecurityPolicyFeature[] {
       new SecurityPolicyFeature("policy:oracle/wss10_saml_token_client_policy") };

   OracleSearchPort port = service.getQuery(securityFeature);
 

Nested Class Summary

 

Nested classes/interfaces inherited from class javax.xml.ws.Service
javax.xml.ws.Service.Mode

 

Constructor Summary
OracleQueryService()
           
OracleQueryService(URL wsdlLocation, QName serviceName)
           

 

Method Summary
 OracleSearchPort getQuery()
           
 OracleSearchPort getQuery(javax.xml.ws.WebServiceFeature[] features)
           

 

Methods inherited from class javax.xml.ws.Service
addPort, create, create, createDispatch, createDispatch, createDispatch, createDispatch, createDispatch, createDispatch, getExecutor, getHandlerResolver, getPort, getPort, getPort, getPort, getPort, getPorts, getServiceName, getWSDLDocumentLocation, setExecutor, setHandlerResolver

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

OracleQueryService

public OracleQueryService(URL wsdlLocation,
                          QName serviceName)

OracleQueryService

public OracleQueryService()

Method Detail

getQuery

@WebEndpoint(name="Query")
public OracleSearchPort getQuery()
Returns:
returns OracleSearchPort

getQuery

@WebEndpoint()
public OracleSearchPort getQuery(javax.xml.ws.WebServiceFeature[] features)
Parameters:
features - A list of WebServiceFeature to configure on the proxy. Supported features not in the features parameter will have their default values.
Returns:
returns OracleSearchPort

Skip navigation links

Oracle Secure Enterprise Search Java API Reference
11g Release 2 (11.2.2.2.0)

E35072-02


Copyright © 2006, 2016, Oracle and/or its affiliates. All rights reserved.