On Tuesday 05 January 2010 16:05:13 Sells, Fred wrote: > I've written simple web apps with TG 1.1 and have installed and tested > TG 2.0. I've written a simple SOAP client in python that built the > envelope using templates and %s. I'm the only experienced Python > programmer in my company, and I've also done quite a bit of Java coding > when forced to ;) > I've been tasked with writing a WebService (server side) app that > conforms to an external requirement which is defined mostly with .xsd > files and a little narrative on what messages must be supported. The > purpose of this app is to integrate our staff database with the vendor's > staff db. The vendor would query us ~every hour for updates. (yes I > know that's not the best design, but that's out of my control) > I am inclined to build on TG as a company standard for future > requirements and am quite flexible with regards to which version of TG. > I also have the freedom to choose a framework other than TG if that is > an easier solution. I need to have this working by the end of the month. > I found this link http://code.google.com/p/tgws/ which says it only > works with 1.0 and 1.1. > Is this the best starting point and if so, does it work with 2.0?
No. > If it matters, the XML response will be nested about 6 levels. I had > planned on using ElementTree to build the DOM and then respond with the > text output. If you are already thinking of creating the XML yourself, TG2 is perfectly fine. Just decorate with the proper content-type, and return it. However, may I suggest using Genshi instead of pure ElementTree? It's much easier to the eye, and we simply produced templates out of sniffed client-server-communication that we then dynamized. Of course we were in an inverse position to you, but if you can generate a mock-server with e.g. apache axis, you should be good. Diez -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

