GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SOAP::DATA::BUILDER::ELEMENT (3)

.ds Aq ’

NAME



  SOAP::Data::Builder::Element - A simple wrapper SOAP::Data Elements



CONTENTS

DESCRIPTION



  This Module provides a quick and easy way to build complex SOAP data
  and header structures for use with SOAP::Lite, managed by SOAP::Data::Builder.



METHODS

    new(autotype=>0)

Constructor method for this class, it instantiates and returns the element object, taking value and attributes as named parameters

my $element = SOAP::Data::Builder::Element->new( name=> ’anExample’, VALUE=> ’foo’, attributes => { ’ns1:foo’ => ’bar’});

optional parameters are : value, attributes, header, isMethod

parent should be an element fetched using get_elem

value should be a string, to add child nodes use add_elem(parent=>get_elem(’name/of/parent’), .. )

attributes should be a hashref : { ’ns:foo’=> bar, .. }

header should be 1 or 0 specifying whether the element should be built using SOAP::Data or SOAP::Header

value()

the value() method sets/gets the VALUE of the element

name()

the name() method gets/sets the name of the element

fullname()

the fullname() method returns the full ’/’ delimited name of the element

’eb:foo/eb:name’ would return the inner element on <eb:foo><eb:name ..> .. </eb:name></eb:foo>

attributes()

returns a hashref of the elements attributes

    remove_attribute($name)

removes a named attribute - returns 1 if it existed , 0 if not

    set_attribute($name,$value)

sets a named attribute

    get_attribute($name)

gets a named attribute

    add_elem($elem)

This method adds an element as a child to another element.

Accepts either a SOAP::Data::Builder::Element object or a hash of arguments to create the object

Returns the added element

my $child = $parent->add_elem(name=>’foo’,..);

or

$parent->add_elem($child);

get_children()

returns a list of the child nodes of an element

    remove_elem($name)

removes the named node from the element, returns 1 if existed, 0 if not

get_as_data()



    returns the element and its sub-nodes in SOAP::Data objects.



Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 SOAP::DATA::BUILDER::ELEMENT (3) 2012-03-14

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.