Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

soaplite · SOAP::Lite for Perl (soaplite.com)

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 1205
  • Category: Protocols
  • Founded: Jan 28, 2001
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Need additional info on setting up complex data types   Topic List   < Prev Topic  |  Next Topic >
Summarize Messages Sort by Date  
#5998 From: "rawill4u" <rawill4u@...>
Date: Wed Aug 22, 2007 3:08 pm
Subject: Need additional info on setting up complex data types
rawill4u
Send Email Send Email
 
I need to create an xml body that looks like this:
<Input_1>
<Input_data>
<data1 xsi:type="xsd:string">xxxx</data1>
<data2 xsi:type="xsd:string">xxxxx</data1>
</Input_data>
<Processing_options>
<option1 xsd:type="xsd:boolean">1</option1>
<option2 xsd:type="xsd:boolean">1</option2>
</Processing_options>
</Input_1>

The closest I have gotten is this:
<Input_1>
<Input_data>
<data1 xsi:type="xsd:string">xxxx</data1>
<data2 xsi:type="xsd:string">xxxxx</data1>
</Input_data>
</Input_1>
<Input_1>
<Processing_options>
<option1 xsd:type="xsd:boolean">1</option1>
<option2 xsd:type="xsd:boolean">1</option2>
</Processing_options>
</Input_1>

The code I am using is this:
SOAP::Data->name("Input_1" =>
\SOAP::Data->value(
SOAP::Data->name("Input_data" =>
\SOAP::Data->value(
SOAP::Data->type('string')->name("data1" => $value1),
SOAP::Data->type('string')->name("data2" => $value2)))),
\SOAP::Data->value(
SOAP::Data->name("options" =>
\SOAP::Data->value(
SOAP::Data->type('boolean')->name("option1" => $option1),
SOAP::Data->type('boolean')->name("option2" => $option2)))));


What am I doing wrong? From all of the things I have read this looks
like it should work.

Second question the service I am trying to use represents the
boolean values as true or false....not 1 or 0. How do I get the
boolean values to be sent that way.





 
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help