Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

oracle.adf.model.connection.webservice.impl
Class WebServiceConnectionImpl

java.lang.Object
  extended by oracle.adf.model.connection.webservice.impl.WebServiceConnectionConfig
      extended by oracle.adf.model.connection.webservice.impl.WebServiceConnectionImpl
All Implemented Interfaces:
javax.naming.Referenceable, WebServiceConnection, oracle.webservices.mdds.MddsErrorHandler

public class WebServiceConnectionImpl
extends WebServiceConnectionConfig
implements WebServiceConnection


Field Summary
 
Fields inherited from class oracle.adf.model.connection.webservice.impl.WebServiceConnectionConfig
defaultServiceName, mddsFactory, model, wsdl
 
Fields inherited from interface oracle.webservices.mdds.MddsErrorHandler
REASON_INTERNAL_ERROR, REASON_INVALID_WSDL, REASON_NOT_SUPPORTED, REASON_UNKNOWN
 
Constructor Summary
WebServiceConnectionImpl(javax.naming.Name name, javax.naming.Reference reference)
          Construct a WebServiceConnectionImpl instance from xml element.
WebServiceConnectionImpl(javax.naming.Name name, java.net.URL wsdl, oracle.j2ee.ws.wsdl.conn.ConnectionConfig config, oracle.webservices.model.Model model, javax.wsdl.Definition definition, javax.xml.namespace.QName service)
          Not to be used by end user.
WebServiceConnectionImpl(javax.naming.Name name, java.net.URL wsdl, oracle.j2ee.ws.wsdl.conn.ConnectionConfig config, oracle.webservices.model.Model model, javax.wsdl.Definition definition, javax.xml.namespace.QName service, boolean minimalModel)
           
WebServiceConnectionImpl(javax.naming.Name name, java.net.URL wsdl, oracle.j2ee.ws.wsdl.conn.ConnectionConfig config, oracle.webservices.model.Model model, javax.wsdl.Definition definition, javax.xml.namespace.QName service, boolean minimalModel, boolean withAllImportServices)
          Not to be used by end user.
 
Method Summary
 void cleanup()
           
 void close()
           
 oracle.webservices.model.Service getDefaultService()
           
 JaxRpcInteraction getJaxRpcInteraction(oracle.webservices.model.Port port)
           
 JaxRpcInteraction getJaxRpcInteraction(javax.xml.namespace.QName serviceQName, javax.xml.namespace.QName bindingQName)
           
 JaxRpcInteraction getJaxRpcInteraction(javax.xml.namespace.QName serviceQName, java.lang.String protocol)
           
<T> T
getJaxWSPort(java.lang.Class<T> sei)
          Gets a JAX-WS proxy to invoke operations on the target service endpoint.
 javax.naming.Name getJndiName()
           
 oracle.wsm.policy.model.IPolicy getPolicy(java.lang.String policyUri)
           
 SaajInteraction getSaajInteraction(oracle.webservices.model.Operation operation)
           
 void setDefaultService(javax.xml.namespace.QName defaultServiceQName)
           
 
Methods inherited from class oracle.adf.model.connection.webservice.impl.WebServiceConnectionConfig
addService, deserializeConnectionWithCredentials, failedToModelOperation, failedToModelPort, getDefaultServiceName, getModel, getModelElement, getReference, getWsdlUrl, removeService, setDefaultServiceName, setModelElement, setReference, setWsdlUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.adf.model.connection.webservice.api.WebServiceConnection
getModel, getWsdlUrl
 
Methods inherited from interface javax.naming.Referenceable
getReference
 

Constructor Detail

WebServiceConnectionImpl

public WebServiceConnectionImpl(javax.naming.Name name,
                                java.net.URL wsdl,
                                oracle.j2ee.ws.wsdl.conn.ConnectionConfig config,
                                oracle.webservices.model.Model model,
                                javax.wsdl.Definition definition,
                                javax.xml.namespace.QName service)
                         throws oracle.webservices.model.SerializationException,
                                java.lang.IllegalAccessException,
                                java.lang.InstantiationException,
                                java.lang.ClassNotFoundException
Not to be used by end user. The only caller should be webServiceConnectionFactory.new Instance(). When this constructor is used, it will build a full mdds model from the wsdl.

Parameters:
name -
wsdl -
config -
model -
definition -
service -
Throws:
oracle.webservices.model.SerializationException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.ClassNotFoundException

WebServiceConnectionImpl

public WebServiceConnectionImpl(javax.naming.Name name,
                                java.net.URL wsdl,
                                oracle.j2ee.ws.wsdl.conn.ConnectionConfig config,
                                oracle.webservices.model.Model model,
                                javax.wsdl.Definition definition,
                                javax.xml.namespace.QName service,
                                boolean minimalModel)
                         throws oracle.webservices.model.SerializationException,
                                java.lang.IllegalAccessException,
                                java.lang.InstantiationException,
                                java.lang.ClassNotFoundException
Throws:
oracle.webservices.model.SerializationException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.ClassNotFoundException

WebServiceConnectionImpl

public WebServiceConnectionImpl(javax.naming.Name name,
                                java.net.URL wsdl,
                                oracle.j2ee.ws.wsdl.conn.ConnectionConfig config,
                                oracle.webservices.model.Model model,
                                javax.wsdl.Definition definition,
                                javax.xml.namespace.QName service,
                                boolean minimalModel,
                                boolean withAllImportServices)
                         throws oracle.webservices.model.SerializationException,
                                java.lang.IllegalAccessException,
                                java.lang.InstantiationException,
                                java.lang.ClassNotFoundException
Not to be used by end user. The only caller should be webServiceConnectionFactory.new Instance().

Parameters:
name -
wsdl -
config -
model -
definition -
service -
minimalModel - true, build mdds model with only service/port/operation info; false, full mdds model.
withAllImportServices - true, and also minimalModel is true, then get and include all WSDL import services.
Throws:
oracle.webservices.model.SerializationException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.ClassNotFoundException

WebServiceConnectionImpl

public WebServiceConnectionImpl(javax.naming.Name name,
                                javax.naming.Reference reference)
                         throws oracle.webservices.model.SerializationException,
                                java.lang.IllegalAccessException,
                                java.lang.InstantiationException,
                                java.lang.ClassNotFoundException
Construct a WebServiceConnectionImpl instance from xml element. The Properties credentials contains the mapping of the sensitive information and associated uuid used in the xml element.

Parameters:
name -
metadata - The xml element
credentials -
Throws:
oracle.webservices.model.SerializationException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
Method Detail

getJndiName

public javax.naming.Name getJndiName()
Specified by:
getJndiName in interface WebServiceConnection

getDefaultService

public oracle.webservices.model.Service getDefaultService()
Specified by:
getDefaultService in interface WebServiceConnection

setDefaultService

public void setDefaultService(javax.xml.namespace.QName defaultServiceQName)
Specified by:
setDefaultService in interface WebServiceConnection

getSaajInteraction

public SaajInteraction getSaajInteraction(oracle.webservices.model.Operation operation)
Specified by:
getSaajInteraction in interface WebServiceConnection

getJaxRpcInteraction

public JaxRpcInteraction getJaxRpcInteraction(oracle.webservices.model.Port port)
Specified by:
getJaxRpcInteraction in interface WebServiceConnection

getJaxRpcInteraction

public JaxRpcInteraction getJaxRpcInteraction(javax.xml.namespace.QName serviceQName,
                                              javax.xml.namespace.QName bindingQName)
Specified by:
getJaxRpcInteraction in interface WebServiceConnection

getJaxRpcInteraction

public JaxRpcInteraction getJaxRpcInteraction(javax.xml.namespace.QName serviceQName,
                                              java.lang.String protocol)

getPolicy

public oracle.wsm.policy.model.IPolicy getPolicy(java.lang.String policyUri)

close

public void close()

getJaxWSPort

public <T> T getJaxWSPort(java.lang.Class<T> sei)
Description copied from interface: WebServiceConnection
Gets a JAX-WS proxy to invoke operations on the target service endpoint.

Specified by:
getJaxWSPort in interface WebServiceConnection
Parameters:
sei - The service endpoint interface for a port on the service
Returns:
Proxy instance that supports the specified service endpoint interface

cleanup

public void cleanup()
Specified by:
cleanup in interface WebServiceConnection

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

Copyright © 1997, 2011, Oracle. All rights reserved.