org.andromda.cartridges.support.webservice.client
Class Axis2ClientUtils

java.lang.Object
  extended by org.andromda.cartridges.support.webservice.client.Axis2ClientUtils

public class Axis2ClientUtils
extends Object

Utilities for Axis2 clients.

Author:
Chad Brandon

Constructor Summary
Axis2ClientUtils()
           
 
Method Summary
static Object deserialize(OMElement element, Class type, TypeMapper typeMapper)
          Deserializes the given element to the given type.
static OMElement getOMElement(javax.wsdl.Definition definition, javax.wsdl.extensions.schema.Schema schema, Element componentElement, Object bean, String elementName, OMFactory factory, Map<String,OMNamespace> namespaces, TypeMapper typeMapper)
          Constructs and OMElement from the given bean
static OMElement getOperationOMElement(javax.wsdl.Definition definition, Method method, Object[] arguments, TypeMapper typeMapper)
          Gets the appropriate OM element for the given method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Axis2ClientUtils

public Axis2ClientUtils()
Method Detail

getOperationOMElement

public static OMElement getOperationOMElement(javax.wsdl.Definition definition,
                                              Method method,
                                              Object[] arguments,
                                              TypeMapper typeMapper)
Gets the appropriate OM element for the given method

Parameters:
definition - the WSDL definition.
method - the method corresponding to the OMElement to create.
arguments - the arguments to pass to the method.
typeMapper - the TypeMapper instance to use for converting types.
Returns:
the constructed OMElement

getOMElement

public static OMElement getOMElement(javax.wsdl.Definition definition,
                                     javax.wsdl.extensions.schema.Schema schema,
                                     Element componentElement,
                                     Object bean,
                                     String elementName,
                                     OMFactory factory,
                                     Map<String,OMNamespace> namespaces,
                                     TypeMapper typeMapper)
Constructs and OMElement from the given bean

Parameters:
definition - the WSDL definition
schema - the current schema from which to retrieve the om element.
componentElement - the current componentElemnet of the WSDL definition.
bean - the bean to introspect
elementName - the name of the element to construct.
factory - the factory used for element construction.
namespaces - all available namespaces.
typeMapper - the TypeMapper instance to use for converting types.
Returns:
OMElement

deserialize

public static Object deserialize(OMElement element,
                                 Class type,
                                 TypeMapper typeMapper)
                          throws Exception
Deserializes the given element to the given type.

Parameters:
element - the XML OMElement
type - the java type.
typeMapper - the "object creator" used to construct objects from given classes.
Returns:
the deserialized object.
Throws:
Exception


Copyright © 2003-2012 AndroMDA.org. All Rights Reserved.