Use a comma between elements
my $som = $soap->OpCreate(
SOAP::Data->name('String_1' => 'a1'),
SOAP::Data->type('xsd:string')->name('String_2' => 'a2'),
SOAP::Data->name('String_5' => 'a5') );
Here is a link to the SOAP::Lite docs:
http://search.cpan.org/~byrne/SOAP-Lite-0.69/lib/SOAP/Data.pm
Fred
________________________________
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Marc Simmons
Sent: Thursday, July 12, 2007 1:20 PM
To: [email protected]
Subject: Web Services, OpCreate and Perl OH MY
**
Hi List,
I hate to bring up this subject yet again, but I can't seem to find a
complete answer in most of the postings I've read. I've created a form
with a web service that uses the OpCreate method. I've had some success
consuming the web service using perl, but have not figured out how to
build a SOAP::Data structure that contains more than 1 field and value:
ie
my $data = SOAP::Data->name('Class')->value($class)->type('xsd:string');
Any advice for consuming a web service that contains more than one field
in the data would be greatly appreciated.
Thanks,
--
Marc Simmons
Remedy Administrator
"Everyday above ground is a good day... the rest is a choice!"
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the
Answers Are"