ebXML::Message 0.03 review

Download
by rbytes.net on

ebXML::Message is a Perl module to encapsulate an ebMS message. SYNOPSIS use ebXML::Message; # create new message m

License: Perl Artistic License
File size: 14K
Developer: ebXML::Message Team
0 stars award from rbytes.net

ebXML::Message is a Perl module to encapsulate an ebMS message.

SYNOPSIS

use ebXML::Message;

# create new message

my $message = ebXML::Message->new
(
'CPAId' => 'http://www.you.org/cpa/123456',
'Action' => 'NewPurchaseOrder',
'MessageId' => 12,
'RefMessageToId' => 11,
'Service' => ebXML::Message::Service->new
(
VALUE => 'QuoteToCollect',
Type => 'myservicetypes',
),
);

# write SOAP XML using DOM

use XML::Xerses;

# DOM Document
my $target = XML::Xerces::StdOutFormatTarget->new();
$writer->writeNode($target,$message->getOutput('DOM-Doc');

# DOM generated / munged XML
print OUT $message->getOutput('DOM-XML');


# use message with SOAP::Lite to call webservice

use SOAP::Lite;

# SOAP::Data::Builder object
my $result = SOAP::Lite->uri('http://uri.to/WebService')
->proxy('http://uri.to/soap.cgi')
->parts($message->getMIMEParts)
->call($message->getOutput('SOAP-Data'))
->result;

# SOAP::Data::Builder generated / munged XML
print OUT $message->getOutput('SOAP-XML');

An ebXML message encapsulates all the details of an ebMS message.
ebXML is a mechanism for ensuring reliable delivery of XML-based messages via a transport mechanism such as SOAP. For more details on ebXML, see http://www.ebxml.org/
Large portions of this manual page are copied directly from the ebMS 2.0 specification.

Requirements:
Perl

ebXML::Message 0.03 search tags