com.eviware.soapui.impl.wsdl
Class WsdlInterface

java.lang.Object
  extended by com.eviware.soapui.model.support.AbstractModelItem
      extended by com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem<T>
          extended by com.eviware.soapui.impl.support.AbstractInterface<com.eviware.soapui.config.WsdlInterfaceConfig>
              extended by com.eviware.soapui.impl.wsdl.WsdlInterface
All Implemented Interfaces:
Interface, ModelItem, PropertyChangeNotifier

public class WsdlInterface
extends AbstractInterface<com.eviware.soapui.config.WsdlInterfaceConfig>
implements Interface

WSDL implementation of Interface, maps to a WSDL Binding

Author:
Ole.Matzura

Nested Class Summary
static class WsdlInterface.BindingTuple
           
 
Field Summary
static java.lang.String JBOSSWS_ACTIONS
           
static java.lang.String STYLE_DOCUMENT
           
static java.lang.String STYLE_RPC
           
static java.lang.String WSTOOLS_ACTIONS
           
static java.lang.String XML_ACTIONS
           
 
Fields inherited from interface com.eviware.soapui.model.iface.Interface
DEFINITION_PROPERTY, ENDPOINT_PROPERTY, UPDATING_PROPERTY
 
Fields inherited from interface com.eviware.soapui.model.ModelItem
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
 
Constructor Summary
WsdlInterface(WsdlProject project, com.eviware.soapui.config.WsdlInterfaceConfig interfaceConfig)
           
 
Method Summary
 WsdlOperation addNewOperation(javax.wsdl.BindingOperation operation)
           
 void beforeSave()
           
 com.eviware.soapui.config.DefinitionCacheConfig cacheDefinition(WsdlLoader loader)
           
 void deleteOperation(java.lang.String bindingOperationName)
           
 javax.wsdl.BindingOperation findBindingOperation(javax.wsdl.Definition definition, java.lang.String bindingOperationName, java.lang.String inputName, java.lang.String outputName)
           
 java.util.List<AbstractWsdlModelItem<?>> getAllMessages()
           
 java.lang.String getAnonymous()
           
 javax.wsdl.Binding getBinding()
           
 javax.xml.namespace.QName getBindingName()
           
 java.lang.String getDefinition()
          Return the URL for the current definition (ie a WSDL or WADL url)
 DefinitionContext getDefinitionContext()
           
 java.lang.String getInterfaceType()
           
 SoapMessageBuilder getMessageBuilder()
           
 WsdlOperation getOperationAt(int index)
           
 WsdlOperation getOperationByName(java.lang.String name)
           
 int getOperationCount()
           
 java.util.List<Operation> getOperationList()
           
 java.util.Map<java.lang.String,Operation> getOperations()
           
 WsdlProject getProject()
           
 SoapVersion getSoapVersion()
           
 java.lang.String getStyle()
           
 java.lang.String getTechnicalId()
           
 java.lang.String getType()
           
 java.lang.String getWsaVersion()
           
 WsdlContext getWsdlContext()
           
 boolean isCached()
           
 boolean isDefinitionShareble()
           
 boolean isUpdating()
           
 WsdlInterface.BindingTuple prepareUpdateDefinition(java.lang.String url)
           
 WsdlInterface processPolicy(org.xmlsoap.schemas.ws.x2004.x09.policy.Policy policy)
          Method for processing policy on interface level it should include processing of all types of policies, but for now there's only Addressing policy implemented
 void release()
           
 void removeOperation(WsdlOperation wsdlOperation)
           
 void resolve(ResolveContext context)
           
 void setAnonymous(java.lang.String anonymous)
           
 void setBindingName(javax.xml.namespace.QName name)
           
 void setDefinition(java.lang.String wsdlUrl)
           
 void setDefinition(java.lang.String wsdlUrl, boolean updateCache)
           
 void setSoapMessageBuilder(SoapMessageBuilder builder)
           
 void setSoapVersion(SoapVersion version)
           
 void setUpdating(boolean updating)
           
 void setWsaVersion(java.lang.String wsAddressing)
           
 void setWsdlContext(WsdlContext wsdlContext)
          Used by importer so we dont need to reload the context after importing..
 void transferEndpoints(javax.wsdl.Port port)
           
 void transferOperations(javax.wsdl.Binding binding, boolean createRequests)
           
 boolean updateDefinition(java.lang.String url, boolean createRequests)
           
 void updateDefinition(WsdlInterface.BindingTuple tuple)
           
 
Methods inherited from class com.eviware.soapui.impl.support.AbstractInterface
addEndpoint, addInterfaceListener, changeEndpoint, fireOperationAdded, fireOperationRemoved, fireOperationUpdated, fireRequestAdded, fireRequestRemoved, getChildren, getConfig, getEndpoints, removeEndpoint, removeInterfaceListener
 
Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem
afterLoad, dependsOn, getDescription, getIcon, getId, getName, getParent, getSettings, getWsdlModelItemByName, setConfig, setDescription, setIcon, setName, setSettings
 
Methods inherited from class com.eviware.soapui.model.support.AbstractModelItem
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.eviware.soapui.model.iface.Interface
addEndpoint, addInterfaceListener, changeEndpoint, getEndpoints, removeEndpoint, removeInterfaceListener
 
Methods inherited from interface com.eviware.soapui.model.ModelItem
getChildren, getDescription, getIcon, getId, getName, getParent, getSettings
 
Methods inherited from interface com.eviware.soapui.support.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Field Detail

STYLE_DOCUMENT

public static final java.lang.String STYLE_DOCUMENT
See Also:
Constant Field Values

STYLE_RPC

public static final java.lang.String STYLE_RPC
See Also:
Constant Field Values

JBOSSWS_ACTIONS

public static final java.lang.String JBOSSWS_ACTIONS
See Also:
Constant Field Values

WSTOOLS_ACTIONS

public static final java.lang.String WSTOOLS_ACTIONS
See Also:
Constant Field Values

XML_ACTIONS

public static final java.lang.String XML_ACTIONS
See Also:
Constant Field Values
Constructor Detail

WsdlInterface

public WsdlInterface(WsdlProject project,
                     com.eviware.soapui.config.WsdlInterfaceConfig interfaceConfig)
Method Detail

getOperationAt

public WsdlOperation getOperationAt(int index)
Specified by:
getOperationAt in interface Interface

getOperationCount

public int getOperationCount()
Specified by:
getOperationCount in interface Interface

addNewOperation

public WsdlOperation addNewOperation(javax.wsdl.BindingOperation operation)

getProject

public WsdlProject getProject()
Specified by:
getProject in interface Interface
Overrides:
getProject in class AbstractInterface<com.eviware.soapui.config.WsdlInterfaceConfig>

setDefinition

public void setDefinition(java.lang.String wsdlUrl)
                   throws java.lang.Exception
Throws:
java.lang.Exception

setDefinition

public void setDefinition(java.lang.String wsdlUrl,
                          boolean updateCache)
                   throws java.lang.Exception
Throws:
java.lang.Exception

cacheDefinition

public com.eviware.soapui.config.DefinitionCacheConfig cacheDefinition(WsdlLoader loader)
                                                                throws java.lang.Throwable
Throws:
java.lang.Throwable

getDefinition

public java.lang.String getDefinition()
Description copied from class: AbstractInterface
Return the URL for the current definition (ie a WSDL or WADL url)

Specified by:
getDefinition in class AbstractInterface<com.eviware.soapui.config.WsdlInterfaceConfig>

getType

public java.lang.String getType()
Specified by:
getType in class AbstractInterface<com.eviware.soapui.config.WsdlInterfaceConfig>

isDefinitionShareble

public boolean isDefinitionShareble()
Specified by:
isDefinitionShareble in class AbstractInterface<com.eviware.soapui.config.WsdlInterfaceConfig>

getWsdlContext

public WsdlContext getWsdlContext()

setWsdlContext

public void setWsdlContext(WsdlContext wsdlContext)
Used by importer so we dont need to reload the context after importing..

Parameters:
wsdlContext -

getMessageBuilder

public SoapMessageBuilder getMessageBuilder()

setSoapMessageBuilder

public void setSoapMessageBuilder(SoapMessageBuilder builder)

getBindingName

public javax.xml.namespace.QName getBindingName()

setBindingName

public void setBindingName(javax.xml.namespace.QName name)

getSoapVersion

public SoapVersion getSoapVersion()

setSoapVersion

public void setSoapVersion(SoapVersion version)

updateDefinition

public boolean updateDefinition(java.lang.String url,
                                boolean createRequests)
                         throws java.lang.Exception
Throws:
java.lang.Exception

prepareUpdateDefinition

public WsdlInterface.BindingTuple prepareUpdateDefinition(java.lang.String url)
                                                   throws java.lang.Exception
Throws:
java.lang.Exception

updateDefinition

public void updateDefinition(WsdlInterface.BindingTuple tuple)
                      throws java.lang.Exception
Throws:
java.lang.Exception

findBindingOperation

public javax.wsdl.BindingOperation findBindingOperation(javax.wsdl.Definition definition,
                                                        java.lang.String bindingOperationName,
                                                        java.lang.String inputName,
                                                        java.lang.String outputName)

getBinding

public javax.wsdl.Binding getBinding()

transferOperations

public void transferOperations(javax.wsdl.Binding binding,
                               boolean createRequests)

transferEndpoints

public void transferEndpoints(javax.wsdl.Port port)

deleteOperation

public void deleteOperation(java.lang.String bindingOperationName)

removeOperation

public void removeOperation(WsdlOperation wsdlOperation)

getOperationByName

public WsdlOperation getOperationByName(java.lang.String name)
Specified by:
getOperationByName in interface Interface

getOperations

public java.util.Map<java.lang.String,Operation> getOperations()

isCached

public boolean isCached()

getStyle

public java.lang.String getStyle()

release

public void release()
Overrides:
release in class AbstractInterface<com.eviware.soapui.config.WsdlInterfaceConfig>

getOperationList

public java.util.List<Operation> getOperationList()
Specified by:
getOperationList in interface Interface

beforeSave

public void beforeSave()
Overrides:
beforeSave in class AbstractWsdlModelItem<com.eviware.soapui.config.WsdlInterfaceConfig>

isUpdating

public boolean isUpdating()

setUpdating

public void setUpdating(boolean updating)

getAllMessages

public java.util.List<AbstractWsdlModelItem<?>> getAllMessages()

resolve

public void resolve(ResolveContext context)
Overrides:
resolve in class AbstractWsdlModelItem<com.eviware.soapui.config.WsdlInterfaceConfig>

getInterfaceType

public java.lang.String getInterfaceType()
Specified by:
getInterfaceType in interface Interface

getTechnicalId

public java.lang.String getTechnicalId()
Specified by:
getTechnicalId in interface Interface

getWsaVersion

public java.lang.String getWsaVersion()

setWsaVersion

public void setWsaVersion(java.lang.String wsAddressing)

setAnonymous

public void setAnonymous(java.lang.String anonymous)

getAnonymous

public java.lang.String getAnonymous()

getDefinitionContext

public DefinitionContext getDefinitionContext()
Specified by:
getDefinitionContext in interface Interface
Specified by:
getDefinitionContext in class AbstractInterface<com.eviware.soapui.config.WsdlInterfaceConfig>

processPolicy

public WsdlInterface processPolicy(org.xmlsoap.schemas.ws.x2004.x09.policy.Policy policy)
                            throws java.lang.Exception
Method for processing policy on interface level it should include processing of all types of policies, but for now there's only Addressing policy implemented

Parameters:
policy -
Returns:
this interface changed in a proper way indicated by the policy
Throws:
java.lang.Exception


Copyright © 2005-2008 eviware.com. All Rights Reserved.