Hello Paul, Thanks for pointing me in the right direction. I had already downloaded and installed ZSI 2.0 but failed to gain any utility from it. Now I know where to apply my efforts. I'm still trying to get a basic call response working with ZSI. :\ I'll post for posterity when I figure out how to convert the above code to ZSI.
-Steve On Dec 11, 5:57 am, "Paul Nendick" <[email protected]> wrote: > Hello Steve, > SOAPy appears to be moribund. I was once using it within a Python SOA > I'd worked with and chose to abandon it when we moved that system to > Python 2.5. It wasn't an issue for us as SOAP was going nowhere (for > us anyway). > Good news for you (possibly) is the SOAP infrastructure generally > discussed by the Twisted Matrix community: ZSI. > > Relevant code:http://tinyurl.com/betterthansoapy > > Full project:http://pywebsvcs.sourceforge.net/ > > What I feel is the best XML library for > Python:http://uche.ogbuji.net/tech/4suite/amara/ > > regards, > > /p > > 2008/12/11 Steve <[email protected]> > > > > > This may be a more of a generic Python question, but I'm working with > > Django so thought that I'd see if there's a Django specific solution > > to it. > > > I'm trying to work with SOAP. I'm new to it and a Jr. programmer as > > well. From Dive into Python it has this great example about how to > > handle SOAP calls. > >http://www.diveintopython.org/soap_web_services/index.html > > > The problem is that I'm trying to install the SOAPpy module and it > > requires pyxml, which appears to be no longer available or supported. > >http://pyxml.sourceforge.net/ > > > My main goal is to configuremy system to get this code, from the dive > > into python link above, to run. Or to find an equivalent set of > > packages that work instead. I'm working on windows with python 2.5.1, > > with Django .96. I deploy on ubuntu linux. Any thoughts? > > > ........... > > from SOAPpy import WSDL > > > # you'll need to configure these two values; > > # seehttp://www.google.com/apis/ > > WSDLFILE = '/path/to/copy/of/GoogleSearch.wsdl' > > APIKEY = 'YOUR_GOOGLE_API_KEY' > > > _server = WSDL.Proxy(WSDLFILE) > > def search(q): > > """Search Google and return list of {title, link, description}""" > > results = _server.doGoogleSearch( > > APIKEY, q, 0, 10, False, "", False, "", "utf-8", "utf-8") > > return [{"title": r.title.encode("utf-8"), > > "link": r.URL.encode("utf-8"), > > "description": r.snippet.encode("utf-8")} > > for r in results.resultElements] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" 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/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

