soap tutorial

adriani.jws.template.util
Class SoapElements

java.lang.Object
  extended by adriani.jws.template.util.SoapElements

public class SoapElements
extends java.lang.Object

Simple wrapper for the SOAP elements extracted from a SOAP envelope.


Field Summary
protected static java.lang.String leadingName
          Beginning of each logging message produced by this class.
protected static WSLogger logger
          Retrieving the logger instance to be used for this class.
protected  OMElement the_body
          Retrieving the logger instance to be used for this class.
protected  OMElement the_header
          Retrieving the logger instance to be used for this class.
 
Constructor Summary
SoapElements(OMElement element)
          Constructor.
SoapElements(OMElement header, OMElement body)
          Constructor.
 
Method Summary
 OMElement getBody()
          Simple accessor method.
 OMElement getFirstElement()
          Simple accessor method.
 OMElement getHeader()
          Simple accessor method.
 java.lang.String getHeaderData()
          Return the authentication data contained in the SOAP's header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

the_body

protected OMElement the_body
Retrieving the logger instance to be used for this class.


the_header

protected OMElement the_header
Retrieving the logger instance to be used for this class.


logger

protected static WSLogger logger
Retrieving the logger instance to be used for this class.


leadingName

protected static final java.lang.String leadingName
Beginning of each logging message produced by this class.

See Also:
Constant Field Values
Constructor Detail

SoapElements

public SoapElements(OMElement element)
Constructor.

Parameters:
element - a valid child of the org.apache.axiom.om.OMElement interface

SoapElements

public SoapElements(OMElement header,
                    OMElement body)
Constructor.

Parameters:
header - a valid child of the org.apache.axiom.om.OMElement interface
body - a valid child of the org.apache.axiom.om.OMElement interface
Method Detail

getHeaderData

public java.lang.String getHeaderData()
Return the authentication data contained in the SOAP's header. In current implementation this should be an element like:

<{http://adriani.altervista.org/namespaces/template/}:psk> value of the authentication key</psk>

or, in short form, if a prefix "ns" is bound to the namespace:

<ns:psk>value of the preshared key</ns:psk>

Returns:
a child of the org.apache.axiom.om.OMElement interface

getFirstElement

public OMElement getFirstElement()
Simple accessor method.

Returns:
a child of the org.apache.axiom.om.OMElement interface

getBody

public OMElement getBody()
Simple accessor method.

Returns:
a child of the org.apache.axiom.om.OMElement interface

getHeader

public OMElement getHeader()
Simple accessor method.

Returns:
a child of the org.apache.axiom.om.OMElement interface

Build 18/09/2012

Morpheus Quality Technologies - Making the Zion software
Copyright © 2009-2013 Morpheus Quality Technologies. All Rights Reserved