RatArsed has asked for the wisdom of the Perl Monks concerning the following question:
I'd also like to be able to consume this 'ere webservice from a .Net environment, as it will be a public API.
I'd like to be able to return a simple xml document. But at present, the only way I can see how to do this is to return a stringified version of the XML document, which seems absurd.
I've failed in my quest to find examples returning XML to be consumed, yet I can find plenty of consumers (grr!)
Does anyone have, or know of, some good examples that would fall into this category?
Edit: added below: I've got:
Now; this returns a single XML element. Hopefully it's obvious from the foreach that I'm trying to create something of the form:$retval = SOAP::Data->name('events'); foreach my $thisevt (keys %evtdbase) { $retval->value( SOAP::Data->name('event')->value( SOAP::Data->type +(string => $evtdbase{$thisevt} ) ) ); }
But instead, I'm getting just:<events> <event xsi:type="xsd:string">foo</event> <event xsi:type="xsd:string">bar</event> : : </events>
<event xsi:type="xsd:string">foo</event>
--
RatArsed
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Returning complex results from SOAP::Lite
by gellyfish (Monsignor) on May 26, 2005 at 15:25 UTC |