org.apache.commons.jelly.tags.soap
Class InvokeTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.soap.InvokeTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class InvokeTag
extends org.apache.commons.jelly.TagSupport

Invokes a web service

Version:
$Revision: 155420 $
Author:
James Birchfield

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
InvokeTag()
           
 
Method Summary
protected  org.apache.axis.client.Service createService()
          Factory method to create a new default Service instance
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
protected  java.lang.Object[] getParamArray()
          Performs any type coercion on the given parameters to form an Object[] or returns null if no parameter has been specified
 org.apache.axis.client.Service getService()
          Returns the service to be used by this web service invocation.
 void setEndpoint(java.lang.String endpoint)
          Sets the end point to which the invocation will occur
 void setMethod(java.lang.String method)
           
 void setNamespace(java.lang.String namespace)
          Sets the namespace of the operation
 void setParams(java.lang.Object params)
          Sets the parameters for this SOAP call.
 void setPassword(java.lang.String password)
          Set the password for the SOAP call.
 void setService(org.apache.axis.client.Service service)
          Sets the service to be used by this invocation.
 void setUsername(java.lang.String username)
          Set the username for the SOAP call.
 void setVar(java.lang.String var)
          Sets the name of the variable to output the results of the SOAP call to.
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvokeTag

public InvokeTag()
Method Detail

doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.MissingAttributeException,
                  org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagException

setEndpoint

public void setEndpoint(java.lang.String endpoint)
Sets the end point to which the invocation will occur


setNamespace

public void setNamespace(java.lang.String namespace)
Sets the namespace of the operation


setMethod

public void setMethod(java.lang.String method)

getService

public org.apache.axis.client.Service getService()
Returns the service to be used by this web service invocation.

Returns:
Service

setService

public void setService(org.apache.axis.client.Service service)
Sets the service to be used by this invocation. If none is specified then a default is used.


setVar

public void setVar(java.lang.String var)
Sets the name of the variable to output the results of the SOAP call to.


setParams

public void setParams(java.lang.Object params)
Sets the parameters for this SOAP call. This can be an array or collection of SOAPBodyElements or types.


setPassword

public void setPassword(java.lang.String password)
Set the password for the SOAP call.


setUsername

public void setUsername(java.lang.String username)
Set the username for the SOAP call.


createService

protected org.apache.axis.client.Service createService()
Factory method to create a new default Service instance


getParamArray

protected java.lang.Object[] getParamArray()
Performs any type coercion on the given parameters to form an Object[] or returns null if no parameter has been specified



Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.