Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'encoded': 0.05; 'frameworks': 0.05; 'python3': 0.05; '21,': 0.07; 'ec2': 0.07; 'json': 0.07; 'soap': 0.07; 'url:blog': 0.09; 'python': 0.09; '22,': 0.09; 'comment,': 0.09; 'instance.': 0.09; 'stack,': 0.09; 'subject:software': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'subject:python': 0.11; 'apache': 0.13; 'steve': 0.13; 'url:)': 0.13; 'library': 0.15; 'url:org)': 0.15; '(payment': 0.16; 'iis,': 0.16; 'stages': 0.16; 'subject:simple': 0.16; 'supported:': 0.16; 'why,': 0.16; 'will:': 0.16; 'wsgi': 0.16; 'wsgi.': 0.16; 'candidates': 0.17; 'wrote:': 0.17; 'requests': 0.18; 'load': 0.19; 'trying': 0.21; 'wednesday,': 0.22; "i'd": 0.22; 'cheers,': 0.23; "python's": 0.23; "i've": 0.23; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'cc:addr:gmail.com': 0.27; 'i.e.': 0.27; 'integrate': 0.27; 'url:au': 0.27; 'drupal': 0.29; 'far,': 0.29; 'toolkit': 0.29; 'url:05': 0.29; 'handled': 0.29; 'url:code': 0.29; 'probably': 0.29; "i'm": 0.29; 'knows': 0.30; 'framework': 0.30; 'thursday,': 0.30; 'compatible': 0.30; 'point': 0.31; '(and': 0.32; 'running': 0.32; 'subject:service': 0.33; 'anyone': 0.33; 'likely': 0.33; 'another': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'done': 0.34; 'third': 0.34; 'thanks': 0.34; 'received:209.85': 0.35; 'there': 0.35; 'cc:no real name:2**1': 0.36; "didn't": 0.36; 'should': 0.36; 'problems': 0.36; 'uses': 0.37; 'quite': 0.37; 'received:209': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'build': 0.39; 'list,': 0.39; 'think': 0.40; 'your': 0.60; 'telling': 0.61; 'stay': 0.61; 'back': 0.62; 'future.': 0.62; 'url:p': 0.63; 'request.': 0.64; 'within': 0.64; 'our': 0.65; 'forward': 0.66; 'receive': 0.71; 'increase': 0.72; '>from': 0.75; 'bottle': 0.84; 'exchanged': 0.84; 'hour,': 0.84; 'comment.': 0.91; 'light,': 0.91; 'received:209.85.213.184': 0.91; 'seriously,': 0.91 Newsgroups: comp.lang.python Date: Sat, 24 Nov 2012 04:52:03 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=108.176.195.148; posting-account=lE08uAoAAAAZJOHn1pwGQ8npUIyig_sx References: User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 108.176.195.148 MIME-Version: 1.0 Subject: Re: Suitable software stacks for simple python web service From: Steve Petrie To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org, kevin.p.dwyer@gmail.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 209 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1353761526 news.xs4all.nl 6958 [2001:888:2000:d::a6]:35097 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33886 On Thursday, November 22, 2012 1:42:42 AM UTC-5, Kev Dwyer wrote: > Steve Petrie wrote: >=20 >=20 >=20 > > On Wednesday, November 21, 2012 2:32:40 AM UTC-5, Kev Dwyer wrote: >=20 > >> Hello List, >=20 > >>=20 >=20 > >>=20 >=20 > >>=20 >=20 > >> I have to build a simple web service which will: >=20 > >>=20 >=20 > >>=20 >=20 > >>=20 >=20 > >> - receive queries from our other servers >=20 > >>=20 >=20 > >> - forward the requests to a third party SOAP service >=20 > >>=20 >=20 > >> - process the response from the third party >=20 > >>=20 >=20 > >> - send the result back to the original requester >=20 > >>=20 >=20 > >>=20 >=20 > >>=20 >=20 > >> >From the point of view of the requester, this will happen within the >=20 > >> >scope >=20 > >>=20 >=20 > >> of a single request. >=20 > >>=20 >=20 > >>=20 >=20 > >>=20 >=20 > >> The data exchanged with the original requester will likely be encoded = as >=20 > >>=20 >=20 > >> JSON; the SOAP service will be handled by SUDS. >=20 > >>=20 >=20 > >>=20 >=20 > >>=20 >=20 > >> The load is likely to be quite light, say a few requests per hour, tho= ugh >=20 > >>=20 >=20 > >> this may increase in the future. >=20 > >>=20 >=20 > >>=20 >=20 > >>=20 >=20 > >> Given these requirements, what do you think might be a suitable softwa= re >=20 > >>=20 >=20 > >> stack, i.e. webserver and web framework (if a web framework is even >=20 > >>=20 >=20 > >> necessary)? >=20 > >>=20 >=20 > >>=20 >=20 > >>=20 >=20 > >> Candidates should be compatible with Python2.7, though I'd be happy to >=20 > >>=20 >=20 > >> consider Python 3 if anyone knows of a Python3 SOAP library that has g= ood >=20 > >>=20 >=20 > >> WSDL support. >=20 > >>=20 >=20 > >>=20 >=20 > >>=20 >=20 > >> Cheers, >=20 > >>=20 >=20 > >>=20 >=20 > >>=20 >=20 > >> Kev >=20 > >=20 >=20 > > I'm using the Bottle web framework (http://bottlepy.org) to integrate >=20 > > requests and replies originating in a Drupal site, a Beanstream (paymen= t >=20 > > processor) account, and a Salesforce instance. >=20 > >=20 >=20 > > Communication with Salesforce is done through the Salesforce Python >=20 > > Toolkit (http://code.google.com/p/salesforce-python-toolkit/), which us= es >=20 > > Suds. >=20 > >=20 >=20 > > Communication with the Drupal site uses Python's (and PHP's on the Drup= al >=20 > > side) native JSON support. >=20 > >=20 >=20 > > This is under Python 2.6.8 and Apache 2.2.23 running on an AWS EC2 >=20 > > instance. >=20 > >=20 >=20 > > No (major) problems so far, though still in the early stages of this >=20 > > project. >=20 > >=20 >=20 > > Steve >=20 > >=20 >=20 > >=20 >=20 > >=20 >=20 > > I chose Bottle after trying a few other frameworks because, well, I can= 't >=20 > > remember exactly why, though thinking back it's probably because of the >=20 > > clarity of Bottle's approach and the simplicity of the documentation. >=20 >=20 >=20 >=20 >=20 > Hello Steve, >=20 >=20 >=20 > Thanks for your comment. >=20 >=20 >=20 > I'm curious, did you consider any web servers other than Apache?=20 >=20 >=20 >=20 > Kev You're telling me that there are other web servers? ;) I didn't try any others seriously, no. My experience is with Apache and II= S, and I try to stay away from Windows. I should mention, given Dieter Maurer's comment, that Bottle is a (fairly t= hin) layer built over WSGI. I've built applications directly over WSGI as = well; that's another way to go, it's quite straightforward. mod_python is = no longer supported: http://blog.dscpl.com.au/2010/05/modpython-project-soo= n-to-be-officially.html.