NAME
SOAP::EnvelopeMaker - Creates SOAP envelopes
SYNOPSIS
use SOAP::EnvelopeMaker;
my $soap_request = ''; my $output_fcn = sub { $soap_request .= shift; }; my $em = SOAP::EnvelopeMaker->new($output_fcn);
my $body = { origin => { x => 10, y => 20 }, corner => { x => 100, y => 200 }, };
$em->set_body("urn:com-develop-geometry", "calculateArea", 0, $body);
my $endpoint = "http://soapl.develop.com/soap?class=Geometry"; my $method_uri = "urn:com-develop-geometry"; my $method_name = "calculateArea";
use SOAP::Transport::HTTP::Client;
my $soap_on_http = SOAP::Transport::HTTP::Client->new();
my $soap_response = $soap_on_http->send_receive($endpoint, $method_uri, $method_name, $soap_request); use SOAP::Parser; my $soap_parser = SOAP::Parser->new(); $soap_parser->parse($soap_response);
my $area = $soap_parser->get_body()->{area};
print "The area is: $area\n";
DESCRIPTION
DEPENDENCIES
SOAP::Envelope
AUTHOR
Keith Brown
SEE ALSO
SOAP::Envelope