The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

UDDI::HalfDecent::Record - a business/service/etc. record from a UDDI registry

SYNOPSIS

 $business = new UDDI::HalfDecent::Record($rs, $node, 'business');
 $name = $business->xpath("name");

DESCRIPTION

Represents a business, service, or other object, as described by a UDDI node and returned in response to a find_business(), find_service or similar request.

METHODS

new()

 $record = new UDDI::HalfDecent::Record($rs, $node, $type);

Creates and returns a new UDDI object representing a business, service or other. Note that client code need never call this: it is invoked by the UDDI library itself, in methods such as UDDI::HalfDecent::ResultSet::record().

This constructor takes three arguments: $rs is the result-set object for which it is created, and which will be used for logging, etc; $node is the context node of the element in the UDDI XML response describing this object; and $type is the type of object described (business, service, etc.

xpath()

 $name = $record->xpath("name");
 $description = $record->xpath("uddi:description");

Returns the value corresponding to the specified XPath within the business. The specified XPaths may include the following predefined namespace prefixes:

xsd

http://www.w3.org/2001/XMLSchema

xsi

http://www.w3.org/2001/XMLSchema-instance

enc

http://schemas.xmlsoap.org/soap/encoding/

env

http://schemas.xmlsoap.org/soap/envelope/

uddi

The name space for whatever UDDI version is in effect.

To simplify application code, the UDDI namespace is assumed if none is specified.

as_xml()

 print $rec->as_xml();

Returns an XML representation of the whole record.

SEE ALSO

UDDI::HalfDecent is the module that uses this. See also its SEE ALSOs.

AUTHOR, COPYRIGHT AND LICENSE

As for Net::Z3950::UDDI.