You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Sreedhar V Reddy <sk...@ductape.net> on 2000/10/27 19:40:54 UTC
Help!! (Sorry for crying out loud!)
Can anybody tell me why this does not work?
use Data::Dumper;
use strict;
unshift (@INC, 'I:\Down Load\Soap\Perl\SOAP-0_27\SOAP-0.27\lib');
require SOAP::EnvelopeMaker;
require SOAP::BooleanObject;
require SOAP::Struct;
my $soap_request = '';
my $output_fcn = sub { $soap_request .= shift; };
my $em = SOAP::EnvelopeMaker->new($output_fcn);
my $body = SOAP::Struct->new(origin => { x => 10, y => 4},
corner => { x =>100, y =>344} ) ;
$em->set_body('urn:CommonUI', 'DrawTopTabPart', 0, $body);
print Dumper($soap_request);
###################################################
Gives me Following output
##################################################
$VAR1 = '<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:n1="urn:CommonUI" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<n1:DrawTopTabPartid="ref-1" s:root="1"></n1:DrawTopTabPart>
</s:Body>
</s:Envelope>';
##################################################
Nothing the bodyA
Thanks for help
Pete