Stuff

From Harding Wiki
Jump to navigationJump to search


(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).