I messed around with XMLout() before and did not get very far but after reading your post I thought I may revisit that method.
So I came up with this that works for the time being. It just places the plain text attributes in
tags but that is okay for now.
Here is my client code that calls a soap server that implements two functions to convert temp between celcius and farenheit.
#!/usr/bin/perl -w
use SOAP::Lite;
use XML::Simple;
$xmlS = new XML::Simple;
my $soap = SOAP::Lite
-> uri('http://<fubared host>/Temperatures')
-> proxy('http://<fubared host>/');
$xmlS = XMLout
($soap
->(37.5)
-> result);
print $xmlS;
print "\n";
xmlS = XMLout
($soap
-> f2c(99.5)
-> result);
print $xmlS;
print "\n";
Then later I can work on the formatting of the xml file.