Re: [Zope] SOAPMethod
- Original Message - From: "Mark Baldry" <[EMAIL PROTECTED]> To: "Jonathan" <[EMAIL PROTECTED]> Sent: Tuesday, September 04, 2007 8:22 AM Subject: Re: [Zope] SOAPMethod hi source of page -- Testing Your requestStudentData method is returning XML encoded data, so you need to write a dtml method (or script) that will display the xml fields. This may give you some ideas: http://www.xml.com/pub/a/1999/12/zope/index.html Jonathan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SOAPMethod
See Johnathan's comment. It sounds like an html/css issue. If it renders in the source its working. On Sep 4, 2007, at 4:48 AM, Mark Baldry wrote: Hi Tom to be honest i would much rather use DTML as i understand this but it doesn't seem to work it only returns the result of the SOAP query when i view the source code. The SOAPMethod product recommends DTML but I have followed the example they give and this is what is happening. Mark On Monday 03 September 2007 17:32, Jonathan wrote: - Original Message - From: "Tom Von Lahndorff" <[EMAIL PROTECTED]> To: "robert rottermann" <[EMAIL PROTECTED]> Cc: Sent: Monday, September 03, 2007 12:10 PM Subject: Re: [Zope] SOAPMethod Hi Mark, There's nothing wrong with using DTML instead of TAL. each have their drawbacks and benefits and it really comes down to user choice and job requirements. People on this list though will always recommend TAL because they are mostly developers who use WYSIWYG html editors. If you hand code your design markup dtml can be much cleaner, require less code and avoid annoying problems with javascript. Tom +1 ;-) Jonathan On Sep 3, 2007, at 10:10 AM, robert rottermann wrote: 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 - 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: The title Some information on student 5506239 HTH robert ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.3/986 - Release Date: 9/3/2007 9:31 AM ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Mark Baldry IT support Union of UEA Students t: 01603 592503 e: [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SOAPMethod
- Original Message - From: "Mark Baldry" <[EMAIL PROTECTED]> To: "Jonathan" <[EMAIL PROTECTED]> Sent: Tuesday, September 04, 2007 8:00 AM Subject: Re: [Zope] SOAPMethod hi that was the first thing i tried and it makes no difference i still get a blank page with the response only viewable when i look at the source. Mark On Tuesday 04 September 2007 12:51, you wrote: Testing Can you post the source of the 'blank' page? Jonathan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SOAPMethod
- Original Message - From: "Mark Baldry" <[EMAIL PROTECTED]> To: Sent: Tuesday, September 04, 2007 4:48 AM Subject: Re: [Zope] SOAPMethod Hi Tom to be honest i would much rather use DTML as i understand this but it doesn't seem to work it only returns the result of the SOAP query when i view the source code. The SOAPMethod product recommends DTML but I have followed the example they give and this is what is happening. >>> 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 - >>> >>> >>> >>> 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.) If I understand correctly, you are saying that the requestStudentData method is returning the correct information, but that information is not displaying in your web browser, and that you can only see the information returned by requestStudentData if you view the source for the page. If this is the case, then it sounds like an html/css display problem, not a dtml problem. To verify this, create a dtml method that contains: Testing If the information displays correctly when you click on the View tab for the above dtml method then you know that you have an html/css problem in your original dtml method. If you don't see the correct information, then your 'requestStudentData' method is not functioning correctly. hth Jonathan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SOAPMethod
Hi Tom to be honest i would much rather use DTML as i understand this but it doesn't seem to work it only returns the result of the SOAP query when i view the source code. The SOAPMethod product recommends DTML but I have followed the example they give and this is what is happening. Mark On Monday 03 September 2007 17:32, Jonathan wrote: > - Original Message - > From: "Tom Von Lahndorff" <[EMAIL PROTECTED]> > To: "robert rottermann" <[EMAIL PROTECTED]> > Cc: > Sent: Monday, September 03, 2007 12:10 PM > Subject: Re: [Zope] SOAPMethod > > > Hi Mark, > > > > There's nothing wrong with using DTML instead of TAL. each have their > > drawbacks and benefits and it really comes down to user choice and job > > requirements. People on this list though will always recommend TAL > > because they are mostly developers who use WYSIWYG html editors. If you > > hand code your design markup dtml can be much cleaner, require less code > > and avoid annoying problems with javascript. > > > > Tom > > +1 ;-) > > > Jonathan > > > On Sep 3, 2007, at 10:10 AM, robert rottermann wrote: > >> 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 - > >>> > >>> > >>> > >>> 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: > >> > >> > >> The title > >> > >> > >> > >> Some information on student 5506239 > >> > >> > >> > >> > >> > >> > >> HTH > >> robert > >> > >> ___ > >> Zope maillist - Zope@zope.org > >> http://mail.zope.org/mailman/listinfo/zope > >> ** No cross posts or HTML encoding! ** > >> (Related lists - > >> http://mail.zope.org/mailman/listinfo/zope-announce > >> http://mail.zope.org/mailman/listinfo/zope-dev ) > > > > ___ > > Zope maillist - Zope@zope.org > > http://mail.zope.org/mailman/listinfo/zope > > ** No cross posts or HTML encoding! ** > > (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce > > http://mail.zope.org/mailman/listinfo/zope-dev ) > > > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: > > 269.13.3/986 - Release Date: 9/3/2007 9:31 AM > > ___ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) -- Mark Baldry IT support Union of UEA Students t: 01603 592503 e: [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SOAPMethod
Mark Baldry wrote at 2007-9-3 14:55 +0100: > >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. Usually, this indicates that markup is returned. To verify this assumption, can you post what you see "at the source of the page"? -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SOAPMethod
- Original Message - From: "Tom Von Lahndorff" <[EMAIL PROTECTED]> To: "robert rottermann" <[EMAIL PROTECTED]> Cc: Sent: Monday, September 03, 2007 12:10 PM Subject: Re: [Zope] SOAPMethod Hi Mark, There's nothing wrong with using DTML instead of TAL. each have their drawbacks and benefits and it really comes down to user choice and job requirements. People on this list though will always recommend TAL because they are mostly developers who use WYSIWYG html editors. If you hand code your design markup dtml can be much cleaner, require less code and avoid annoying problems with javascript. Tom +1 ;-) Jonathan On Sep 3, 2007, at 10:10 AM, robert rottermann wrote: 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 - 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: The title Some information on student 5506239 HTH robert ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.3/986 - Release Date: 9/3/2007 9:31 AM ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SOAPMethod
Hi Mark, There's nothing wrong with using DTML instead of TAL. each have their drawbacks and benefits and it really comes down to user choice and job requirements. People on this list though will always recommend TAL because they are mostly developers who use WYSIWYG html editors. If you hand code your design markup dtml can be much cleaner, require less code and avoid annoying problems with javascript. Tom On Sep 3, 2007, at 10:10 AM, robert rottermann wrote: 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 - 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: The title Some information on student 5506239 HTH robert ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SOAPMethod
Andreas Jung schrieb: > > > --On 3. September 2007 16:10:56 +0200 robert rottermann > <[EMAIL PROTECTED]> wrote: >> > > > Likely you need tal:content="python: context.requestStudentData(...)" > > -aj andreas is perfectly right .. rr begin:vcard fn:Robert Rottermann n: Rottermann;Robert email;internet:[EMAIL PROTECTED] tel;work:++41 31 333 10 20 tel;fax:++41 31 333 10 23 tel;home:++41 31 333 36 03 x-mozilla-html:FALSE version:2.1 end:vcard ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SOAPMethod
--On 3. September 2007 16:10:56 +0200 robert rottermann <[EMAIL PROTECTED]> wrote: Likely you need tal:content="python: context.requestStudentData(...)" -aj pgpHQRyTR7Rkg.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SOAPMethod
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 - > > > > 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: The title Some information on student 5506239 HTH robert begin:vcard fn:Robert Rottermann n: Rottermann;Robert email;internet:[EMAIL PROTECTED] tel;work:++41 31 333 10 20 tel;fax:++41 31 333 10 23 tel;home:++41 31 333 36 03 x-mozilla-html:FALSE version:2.1 end:vcard ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )