Difference between revisions of "Stuff"
From Harding Wiki
Jump to navigationJump to search
PeterHarding (talk | contribs) |
PeterHarding (talk | contribs) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
[[Image:141-4120_IMG.JPG|thumb|360px]] | [[Image:141-4120_IMG.JPG|thumb|360px]] | ||
<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> | ||
<pre> | |||
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). | |||
</pre> | |||
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).