Package DE_EPAGES::USPS::API::WebServices::Base::XMLrequest
It holds common request operations
Functions
- getAPInodeEnumValues
- getXMLrequestNode
- initializeRequest
- isValidRequestOrError
- new
- setNodeAttribute
- setTextNodeWithinXMLrequest
- toString
getAPInodeEnumValues
It returns an array with values from "EnumValue" child tags.
Syntax |
$aEnumValues = $self->getAPInodeEnumValues($APInode); |
Input |
|
Return |
|
getXMLrequestNode
It provides the XML node provided by name.
Syntax |
$foundNode = $self->getXMLrequestNode($nodeName, $XMLnode); |
Input |
|
Return |
|
initializeRequest
It initializes XML DOM node tree from API DOM.
Syntax |
$self->initializeRequest(); |
isValidRequestOrError
It checks if internal XML (DOM) object request is valid by reviewing API (DOM) structure. It throws an error if XML is not valid.
Syntax |
$isValid = $self->isValidRequestOrError(); |
Return |
|
new
Creates a new XMLrequest object .
Syntax |
$XMLrequest = DE_EPAGES::USPS::API::WebServices::Base::XMLrequest->new($APIrequest); |
Input |
|
Return |
|
setNodeAttribute
It sets a value into an attribute for the specified node.
Syntax |
$self->setNodeAttribute( $attributeName, $attributeValue, $XMLnode ); |
Input |
|
setTextNodeWithinXMLrequest
It replaces the current text value of an XML DOM node.
Syntax |
$self->setTextNodeWithinXMLrequest($nodeName, $textValue); |
Input |
|
toString
return string representing XML DOM hold in the object.
Syntax |
$XMLstring = $self->toString(); |
Return |
|