Difference between revisions of "Stuff"
From Harding Wiki
Jump to navigationJump to search
PeterHarding (talk | contribs) |
PeterHarding (talk | contribs) |
||
| Line 4: | Line 4: | ||
<div id="contentSub">(Redirected from [http://en.wikipedia.org/w/index.php?title=Ancient_forest&redirect=no Ancient forest])</div> | <div id="contentSub">(Redirected from [http://en.wikipedia.org/w/index.php?title=Ancient_forest&redirect=no Ancient forest])</div> | ||
Latest revision as of 12:09, 2 December 2008
(Redirected from Ancient forest)
from ZSI.client import Binding
server = Binding(url='/soap/temper.cgi',
ns='http://192.168.1.26/Temperatures',
host='192.168.1.26',
port=80,
soapaction='')
try:
print server.f_f2c(100) # Works
print server.new() # Doesn't
except:
print "Got XML I can't parse:"
print server.ReceiveRaw()
######################
Note that the line marked "Works" is a simple function call and is not
dependant on an object.
And here's the XML that it prints:
######################
<SOAP-ENV:Body>
<namesp1:newResponse xmlns:namesp1="http://192.168.1.26/Temperatures">
<Temperatures xsi:type="namesp1:Temperatures">
<_format xsi:type="xsd:string">%.2f</_format>
</Temperatures>
</namesp1:newResponse>
</SOAP-ENV:Body>
######################
I've been searching through mailing lists, Google, and FAQS for about three
hours and I am not even close to getting an answer. Is it possible that
Python cannot instantiate a Perl object via SOAP? (I don't know anything
about SOAP, either, so this may be a stupid question).