LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.control
Class LyWebServiceController

java.lang.Object
  extended by leon.control.LyController
      extended by leon.control.LyAreaController
          extended by leon.control.LyUserInputController
              extended by leon.control.LyWebServiceController
All Implemented Interfaces:
LyGetSessionInterface, LyContextInterface, LyGetActionInterface, LySelectFileListenerInterface, LyGuiListener, LyInfoListener, LyEvaluator, LyDemandListener

public class LyWebServiceController
extends LyUserInputController

Implementation for web service controller


Nested Class Summary
 class LyWebServiceController.LyWebServiceMetaModel
          Extension of LyMetamodel to build the web service model
 
Field Summary
static java.lang.String __VERSION
          File Version
static int FIELD_TYPE_ARRAY
          FIELD TYPE ARRAY
static int FIELD_TYPE_CHOICE
          FIELD TYPE CHOICE
static int FIELD_TYPE_DATE
          FIELD TYPE DATE
static int FIELD_TYPE_FILE
          FIELD TYPE FILE
static int FIELD_TYPE_NUMBER
          FIELD TYPE NUMBER
static int FIELD_TYPE_RELATION
          FIELD TYPE RELATION
static int FIELD_TYPE_STRUCT
          FIELD TYPE STRUCT
static int FIELD_TYPE_TEXT
          FIELD TYPE TEXT
 
Fields inherited from class leon.control.LyAreaController
DEFAULT_MENU_ITEM_IMAGE_SIZE, DEMAND_APPLY, DEMAND_CANCEL, DEMAND_CLOSE, DEMAND_CREATE_CHART, DEMAND_DELETE_CHART, DEMAND_DELETE_OBJECTINFOS, DEMAND_DELETE_PREFERENCE, DEMAND_UPDATE_VIEW, DEMAND_VALIDATE
 
Fields inherited from class leon.control.LyController
_nbControllers, _nextId, CONTROLLER_ID_SEP, DEFAULT_IMAGE_FORMAT, DEMAND_HELP, ID_SEP
 
Constructor Summary
LyWebServiceController(LySession session, LyController parent, LyAction action)
          Constructor LyWebServiceController
LyWebServiceController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo)
          Constructor LyWebServiceController
LyWebServiceController(LySession session, LyController parent, LyAction action, LyClassInfo classInfo, LyObjectList context)
          Constructor LyWebServiceController
LyWebServiceController(LySession session, LyController parent, LyAction action, LyObjectList context)
          Constructor LyWebServiceController
 
Method Summary
 void addNewAttribute(java.lang.String name)
          Add attribute to the list of attributes of the selected operation.
 void createModelClassInfo()
          Create the model classInfo.
 void createWsdlDefinition(java.lang.String wsdlUrl)
          Read the WDSL and create the definition.
 javax.wsdl.Definition createWsdlDefinitionTwo(java.lang.String wsdlUrl)
          Read the WSDL and create the definition.
 void freeClassInfo()
          freeClassInfo Free the created class info use to show the web services result.
 java.util.Hashtable<java.lang.String,java.lang.String> getAttributesList()
          Get the list of attributes of the selected operation.
 java.util.List<java.lang.String> getListOfNameSpaces()
          Get the list of name spaces from the WSDL definition
 java.util.Map<java.lang.String,java.lang.String> getListOfOperationAttribute()
          Get list attributes of the selected operation.
 java.util.Map<java.lang.String,java.lang.String> getListOfOperationAttribute(javax.wsdl.Operation operation)
          Get list attributes of a given operation name.
 java.util.Map<java.lang.String,java.lang.String> getListOfOperationAttributeOutPut(javax.wsdl.Operation operation)
          Get list attributes of a given operation name.
 java.util.List<java.lang.String> getListOfOperations()
          Get the list of operations from the wsdl definition
 java.util.List<java.lang.String> getListOfPorts()
          Get the list of Ports from the WSDL definition
 java.util.List<java.lang.String> getListOfServices()
          Get the list of services from the wsdl definition
 javax.wsdl.Operation getOperation()
          Get the selected operation.
 javax.wsdl.Operation getOperation(java.lang.String operationName)
          Search and return the ight operation by a given name.
 javax.wsdl.Port getPort()
          Get the selected operation.
 javax.wsdl.Service getService()
          Get the selected service.
 java.lang.String getTargetNameSpace()
          Get the selected target namespace
 java.lang.String getWsdlUrl()
          Return the url of the WSDL.
 void invokeWebService(java.util.Hashtable<java.lang.String,java.lang.String> parametersList, java.lang.String operationName)
          invokeWebService Invoke the selected WebService.
 void putAttributeValue(java.lang.String name, java.lang.String value)
          Add attribute to the list of attributes of the selected operation.
 void selectOperation(java.lang.String operationName)
          Set the operation by name.
 void selectPort(java.lang.String portName)
          Select the port to use.
 void selectService(java.lang.String service)
          Select the service to use.
 void setOperation(javax.wsdl.Operation operation)
          Set the selected operation.
 void setPort(javax.wsdl.Port port)
          Set the selected port.
 void setService(javax.wsdl.Service service)
          Set the service.
 void setTargetNameSpace(java.lang.String targetNameSpace)
          Set the target namespace to use
 void setWsdlUrl(java.lang.String wsdlUrl)
          Set the url of the WSDL.
 
Methods inherited from class leon.control.LyUserInputController
actionDemand, addBoolean, addBoolean, addChoice, addChoice, addDate, addDate, addFile, addFile, addLabel, addLabel, addList, addList, addNumber, addNumber, addRelation, addRelation, addText, addText, addText, getBehaviorInterface, getClassInfo, getComponent, getFormComponent, getImage, getInputId, getTitleBar, getViewController, isDialog, isViewResizable, reset, setBehavior, setBuilder, setDialog, setImage, setInputId, setTitleBar
 
Methods inherited from class leon.control.LyAreaController
canClose, canFree, clearViewCache, completeMenuBar, completeMessages, free, free, getAction, getAreaStackController, getBehavior, getBuilder, getContent, getContext, getContextClient, getContextTitle, getDefaultAction, getEnvironment, getFastEditionAction, getHelpFile, getImageTooltip, getInfoLabel, getInfoLabel, getKeyValue, getLabel, getLastModified, getMenuItemImage, getName, getParameter, getParameter, getParameterMarks, getParent, getParent, getParentAreaController, getRefreshTime, getSelection, getShortLabel, getTarget, getTitle, getViewController, hasMark, hasNotMark, hasViewController, hideView, infoEvent, initialize, isInitialized, isOutlined, menuDemand, reset, selectFileDemand, setContext, setContext, setContextClient, setIdle, setPreference, setViewController, showView, showView, testParameter, toString, update, updateTitleBar
 
Methods inherited from class leon.control.LyController
activateViewDemand, demandPerformed, dragDropDemand, getApplication, getClassInfo, getId, getImage, getImage, getImage, getImage, getImageFromPrefix, getImageFromPrefix, getImageFromPrefix, getName, getObjectId, getSession, getUserData, getView, getViewManager, helpDemand, hideView, isFreed, isIdle, selectionDemand, setBuilderClass, setLastModified, setName, setUserData, showError, showError, showWarning, updateViewFromValues
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File Version

See Also:
Constant Field Values

FIELD_TYPE_ARRAY

public static int FIELD_TYPE_ARRAY
FIELD TYPE ARRAY


FIELD_TYPE_CHOICE

public static int FIELD_TYPE_CHOICE
FIELD TYPE CHOICE


FIELD_TYPE_DATE

public static int FIELD_TYPE_DATE
FIELD TYPE DATE


FIELD_TYPE_FILE

public static int FIELD_TYPE_FILE
FIELD TYPE FILE


FIELD_TYPE_NUMBER

public static int FIELD_TYPE_NUMBER
FIELD TYPE NUMBER


FIELD_TYPE_RELATION

public static int FIELD_TYPE_RELATION
FIELD TYPE RELATION


FIELD_TYPE_STRUCT

public static int FIELD_TYPE_STRUCT
FIELD TYPE STRUCT


FIELD_TYPE_TEXT

public static int FIELD_TYPE_TEXT
FIELD TYPE TEXT

Constructor Detail

LyWebServiceController

public LyWebServiceController(LySession session,
                              LyController parent,
                              LyAction action,
                              LyClassInfo classInfo,
                              LyObjectList context)
Constructor LyWebServiceController

Parameters:
session -
parent -
action -
classInfo -
context -

LyWebServiceController

public LyWebServiceController(LySession session,
                              LyController parent,
                              LyAction action,
                              LyClassInfo classInfo)
Constructor LyWebServiceController

Parameters:
session -
parent -
action -
classInfo -

LyWebServiceController

public LyWebServiceController(LySession session,
                              LyController parent,
                              LyAction action)
Constructor LyWebServiceController

Parameters:
session -
parent -
action -

LyWebServiceController

public LyWebServiceController(LySession session,
                              LyController parent,
                              LyAction action,
                              LyObjectList context)
Constructor LyWebServiceController

Parameters:
session -
parent -
action -
context -
Method Detail

getWsdlUrl

public java.lang.String getWsdlUrl()
Return the url of the WSDL.

Returns:
String.

setWsdlUrl

public void setWsdlUrl(java.lang.String wsdlUrl)
Set the url of the WSDL.

Parameters:
wsdlUrl -

createWsdlDefinition

public void createWsdlDefinition(java.lang.String wsdlUrl)
Read the WDSL and create the definition.

Parameters:
wsdlUrl - The wsdl location.

createWsdlDefinitionTwo

public javax.wsdl.Definition createWsdlDefinitionTwo(java.lang.String wsdlUrl)
Read the WSDL and create the definition.

Parameters:
wsdlUrl - The wsdl location.
Returns:
the WSDL definition

getListOfNameSpaces

public java.util.List<java.lang.String> getListOfNameSpaces()
Get the list of name spaces from the WSDL definition

Returns:
List The list of name spaces.

getListOfPorts

public java.util.List<java.lang.String> getListOfPorts()
Get the list of Ports from the WSDL definition

Returns:
List The list of ports.

selectPort

public void selectPort(java.lang.String portName)
Select the port to use.

Parameters:
portName - the port to use

getListOfOperations

public java.util.List<java.lang.String> getListOfOperations()
Get the list of operations from the wsdl definition

Returns:
List The list of operations.

getListOfServices

public java.util.List<java.lang.String> getListOfServices()
Get the list of services from the wsdl definition

Returns:
List The list of services.

selectService

public void selectService(java.lang.String service)
Select the service to use.

Parameters:
service - the service to use

getListOfOperationAttribute

public java.util.Map<java.lang.String,java.lang.String> getListOfOperationAttribute()
Get list attributes of the selected operation.

Returns:
Map list of (key = name/ value = attribute type) operation attributes.

getListOfOperationAttribute

public java.util.Map<java.lang.String,java.lang.String> getListOfOperationAttribute(javax.wsdl.Operation operation)
Get list attributes of a given operation name.

Parameters:
operation - operation
Returns:
Map list of (key = name/ value = attribute type) operation attributes.

getListOfOperationAttributeOutPut

public java.util.Map<java.lang.String,java.lang.String> getListOfOperationAttributeOutPut(javax.wsdl.Operation operation)
Get list attributes of a given operation name.

Parameters:
operation - operation
Returns:
Map list of (key = name/ value = attribute type) operation attributes.

selectOperation

public void selectOperation(java.lang.String operationName)
Set the operation by name.

Parameters:
operationName -

getOperation

public javax.wsdl.Operation getOperation(java.lang.String operationName)
Search and return the ight operation by a given name.

Parameters:
operationName -
Returns:
javax.wsdl.Operation operation

addNewAttribute

public void addNewAttribute(java.lang.String name)
Add attribute to the list of attributes of the selected operation.

Parameters:
name -

putAttributeValue

public void putAttributeValue(java.lang.String name,
                              java.lang.String value)
Add attribute to the list of attributes of the selected operation.

Parameters:
name - the name
value - the value

invokeWebService

public void invokeWebService(java.util.Hashtable<java.lang.String,java.lang.String> parametersList,
                             java.lang.String operationName)
invokeWebService Invoke the selected WebService.

Parameters:
parametersList -
operationName -

createModelClassInfo

public void createModelClassInfo()
Create the model classInfo.


freeClassInfo

public void freeClassInfo()
freeClassInfo Free the created class info use to show the web services result.


getService

public javax.wsdl.Service getService()
Get the selected service.

Returns:
javax.wsdl.Service service

setService

public void setService(javax.wsdl.Service service)
Set the service.

Parameters:
service - the service to use

getTargetNameSpace

public java.lang.String getTargetNameSpace()
Get the selected target namespace

Returns:
String target namespace

setTargetNameSpace

public void setTargetNameSpace(java.lang.String targetNameSpace)
Set the target namespace to use

Parameters:
targetNameSpace -

getPort

public javax.wsdl.Port getPort()
Get the selected operation.

Returns:
javax.wsdl.Port port

setPort

public void setPort(javax.wsdl.Port port)
Set the selected port.

Parameters:
port - the port to select

getOperation

public javax.wsdl.Operation getOperation()
Get the selected operation.

Returns:
javax.wsdl.Operation

setOperation

public void setOperation(javax.wsdl.Operation operation)
Set the selected operation.

Parameters:
operation - The operation to select

getAttributesList

public java.util.Hashtable<java.lang.String,java.lang.String> getAttributesList()
Get the list of attributes of the selected operation.

Returns:
Vector list of attributes name

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com