Path: csiph.com!usenet.pasdenom.info!news.albasani.net!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; 'python': 0.09; 'instance.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'stack,': 0.09; 'subject:software': 0.09; 'subject:python': 0.11; 'apache': 0.13; 'steve': 0.13; 'url:)': 0.13; 'library': 0.15; 'url:org)': 0.15; '(payment': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'stages': 0.16; 'subject:simple': 0.16; 'why,': 0.16; 'will:': 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; 'header:User-Agent:1': 0.26; 'i.e.': 0.27; 'integrate': 0.27; 'header:X-Complaints-To:1': 0.28; 'drupal': 0.29; 'far,': 0.29; 'toolkit': 0.29; 'handled': 0.29; 'url:code': 0.29; 'probably': 0.29; "i'm": 0.29; 'knows': 0.30; 'framework': 0.30; 'compatible': 0.30; 'point': 0.31; '(and': 0.32; 'running': 0.32; 'subject:service': 0.33; 'anyone': 0.33; 'to:addr:python- list': 0.33; 'likely': 0.33; "can't": 0.34; 'done': 0.34; 'third': 0.34; 'thanks': 0.34; 'received:org': 0.36; 'should': 0.36; 'problems': 0.36; 'uses': 0.37; 'quite': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'build': 0.39; 'list,': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'your': 0.60; 'back': 0.62; 'future.': 0.62; 'url:p': 0.63; 'request.': 0.64; 'within': 0.64; 'our': 0.65; 'forward': 0.66; 'header:Reply- To:1': 0.68; 'receive': 0.71; 'increase': 0.72; 'reply-to:no real name:2**0': 0.72; '>from': 0.75; 'reply-to:addr:gmail.com': 0.79; 'bottle': 0.84; 'exchanged': 0.84; 'hour,': 0.84; 'comment.': 0.91; 'light,': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Kev Dwyer Subject: Re: Suitable software stacks for simple python web service Date: Thu, 22 Nov 2012 06:42:22 +0000 References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Gmane-NNTP-Posting-Host: cpc4-hari14-2-0-cust605.20-2.cable.virginmedia.com Mail-Copies-To: kevin.p.dwyer@gmail.com User-Agent: KNode/4.7.2 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: kevin.p.dwyer@gmail.com List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 96 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1353566559 news.xs4all.nl 6854 [2001:888:2000:d::a6]:34519 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33788 Steve Petrie wrote: > On Wednesday, November 21, 2012 2:32:40 AM UTC-5, Kev Dwyer wrote: >> Hello List, >> >> >> >> I have to build a simple web service which will: >> >> >> >> - receive queries from our other servers >> >> - forward the requests to a third party SOAP service >> >> - process the response from the third party >> >> - send the result back to the original requester >> >> >> >> >From the point of view of the requester, this will happen within the >> >scope >> >> of a single request. >> >> >> >> The data exchanged with the original requester will likely be encoded as >> >> JSON; the SOAP service will be handled by SUDS. >> >> >> >> The load is likely to be quite light, say a few requests per hour, though >> >> this may increase in the future. >> >> >> >> Given these requirements, what do you think might be a suitable software >> >> stack, i.e. webserver and web framework (if a web framework is even >> >> necessary)? >> >> >> >> Candidates should be compatible with Python2.7, though I'd be happy to >> >> consider Python 3 if anyone knows of a Python3 SOAP library that has good >> >> WSDL support. >> >> >> >> Cheers, >> >> >> >> Kev > > I'm using the Bottle web framework (http://bottlepy.org) to integrate > requests and replies originating in a Drupal site, a Beanstream (payment > processor) account, and a Salesforce instance. > > Communication with Salesforce is done through the Salesforce Python > Toolkit (http://code.google.com/p/salesforce-python-toolkit/), which uses > Suds. > > Communication with the Drupal site uses Python's (and PHP's on the Drupal > side) native JSON support. > > This is under Python 2.6.8 and Apache 2.2.23 running on an AWS EC2 > instance. > > No (major) problems so far, though still in the early stages of this > project. > > Steve > > > > I chose Bottle after trying a few other frameworks because, well, I can't > remember exactly why, though thinking back it's probably because of the > clarity of Bottle's approach and the simplicity of the documentation. Hello Steve, Thanks for your comment. I'm curious, did you consider any web servers other than Apache? Kev