[Zope] SOAPMethod

robert rottermann robert at redcor.ch
Mon Sep 3 10:10:56 EDT 2007


Mark Baldry schrieb:
> I need to get some information from a database and display it on our website. 
> It's a very simple query just passing one number to get the record. The only 
> way i am allowed to query this database is via SOAP.
> 
> I have installed the SOAPMethod and have got it working but i cannot get the 
> result to display. I can only view the result when i look at the source of 
> the page.
> 
> the dtml Method i am using is written -
> 
> <dtml-var expr="requestStudentData('5506239')">
> 
> this is what the help that came with the product says to use.
> 
> (requestStudentData is the name of the SOAPMethod and "5506239" is the query 
> string i am passing to the database.)
> 
>
you better do not use dtml but tal (aka page templates). to learn about
it go to the zope site and look up the zope book (take the one on plope.org)

it would look something like:
<html>
  <head>
    <title tal:content="template/title">The title</title>
  </head>
  <body>

    <b>Some information on student 5506239</b>
    <div tal:content="python:requestStudentData('5506239')" />

  </body>
</html>


HTH
robert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: robert.vcf
Type: text/x-vcard
Size: 211 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20070903/a7b16452/robert.vcf


More information about the Zope mailing list