Skip navigation links

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

E10653-06


oracle.adfinternal.model.adapter.webservice
Class WSModel

java.lang.Object
  extended by oracle.adfinternal.model.adapter.webservice.WSModel


public class WSModel
extends java.lang.Object

WSModel provides the design time model for the webservice data control.

The WSModel handles the nuances of parsing a WSDL at design time and extracting information that is needed by the Data control design time to generate the metadata.

The webservice operations are abstracted as WSOperation, which is the design time representation of a webservice operation containing all that information needed for metadata generation.

See Also:
WSOperation

Constructor Summary
WSModel(javax.wsdl.Definition def)
          Instantiate this Data control Model with a WSDL definition.
WSModel(oracle.webservices.model.Model model)
          Instantiate this Data control model with a associated MDDS model
WSModel(java.net.URL wsdlURL)
          Create an instance of the WSDL model from the WSDL URL.
WSModel(java.net.URL wsdlURL, oracle.webservices.model.Model model)
          Instantiate this Data control model with a associated MDDS model

 

Method Summary
 javax.xml.namespace.QName getDefaultServiceName()
          Get the default service name for this model.
 java.lang.String getEndpointURL(javax.xml.namespace.QName serviceName, java.lang.String portName)
          Returns the end point for a given service and a port.
 oracle.webservices.model.Operation getOperation(javax.xml.namespace.QName serviceName, java.lang.String portName, java.lang.String operationName)
          Gets the operation for a given combination of service name, port name and operation name.
 java.util.Iterator getPortOperations(javax.xml.namespace.QName serviceName, java.lang.String portName)
          Get a list of all the operations that can be invoked for a particular port.
 oracle.webservices.model.Service getService(javax.xml.namespace.QName serviceName)
          Gets the service from a service name.
 java.util.Map getServiceOperations(javax.xml.namespace.QName serviceName)
          Get a look up table for all the operations for a particular service.
 java.util.List getServicePorts(javax.xml.namespace.QName serviceName)
          Gets the ports given a serivce name.
 java.util.Iterator getServices()
          Gets the services described by this Model.
 javax.wsdl.Definition getWSDLDefinition()
           

 

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

 

Constructor Detail

WSModel

public WSModel(java.net.URL wsdlURL)
        throws AdapterException
Create an instance of the WSDL model from the WSDL URL. Once the model is created the design time can query this instance to fetch the data to generate the design time metadata.
Throws:
{@link - AdapterException} if the initialization of the model fails.
AdapterException

WSModel

public WSModel(oracle.webservices.model.Model model)
Instantiate this Data control model with a associated MDDS model
Parameters:
{@link - Model} The MDDS model to create the data control.

WSModel

public WSModel(javax.wsdl.Definition def)
        throws AdapterException
Instantiate this Data control Model with a WSDL definition.
Parameters:
def - the WSDL definition obtained after parsing the WSDL URL
Throws:
AdapterException

WSModel

public WSModel(java.net.URL wsdlURL,
               oracle.webservices.model.Model model)
        throws AdapterException
Instantiate this Data control model with a associated MDDS model
Parameters:
Model - The MDDS model to create the data control.
Throws:
AdapterException

Method Detail

getServices

public java.util.Iterator getServices()
Gets the services described by this Model.
Returns:
Iterator of services published.

getService

public oracle.webservices.model.Service getService(javax.xml.namespace.QName serviceName)
Gets the service from a service name.
Parameters:
serviceName - anem of the service to get.
Returns:
the service object if found, otherwise returns null.

getServicePorts

public java.util.List getServicePorts(javax.xml.namespace.QName serviceName)
Gets the ports given a serivce name. A Port is a collection of webservice operations.
Parameters:
Service - name for which the portlist is desired.
Returns:
Set of ports published by this service.

getServiceOperations

public java.util.Map getServiceOperations(javax.xml.namespace.QName serviceName)
Get a look up table for all the operations for a particular service. The lookup table contains the portname as the key and the list of operations in that port.
Parameters:
{@link - QName} service name for which the operations are desired.
Returns:
look up map with the portname and list of operations for that port.

getEndpointURL

public java.lang.String getEndpointURL(javax.xml.namespace.QName serviceName,
                                       java.lang.String portName)
Returns the end point for a given service and a port.

getDefaultServiceName

public javax.xml.namespace.QName getDefaultServiceName()
Get the default service name for this model.
Returns:
QName default service name.

getPortOperations

public java.util.Iterator getPortOperations(javax.xml.namespace.QName serviceName,
                                            java.lang.String portName)
Get a list of all the operations that can be invoked for a particular port. The list contains instances of WSOperation. The WSOperation abstracts a webservice operation encapsulating all the design time information needed for a particular operation.
Parameters:
portName - name of the port for which the operation list is to be retrieved.
Returns:
list of operations defined by the port.

getOperation

public oracle.webservices.model.Operation getOperation(javax.xml.namespace.QName serviceName,
                                                       java.lang.String portName,
                                                       java.lang.String operationName)
Gets the operation for a given combination of service name, port name and operation name.

getWSDLDefinition

public javax.wsdl.Definition getWSDLDefinition()
                                        throws AdapterException
Throws:
AdapterException

Skip navigation links

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

E10653-06


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