Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'attribute': 0.07; "subject:' ": 0.07; 'arguments': 0.09; 'attributes': 0.09; 'messing': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; '(another': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'soap,': 0.16; 'subject:type': 0.16; 'ignore': 0.16; 'library': 0.18; 'trying': 0.19; 'passing': 0.19; 'examples': 0.20; 'otherwise,': 0.22; 'header:User-Agent:1': 0.23; 'pass': 0.26; 'defined': 0.27; 'header:X-Complaints-To:1': 0.27; 'involving': 0.30; "i'm": 0.30; '(maybe': 0.31; 'writes:': 0.31; 'probably': 0.32; 'figure': 0.32; 'stuff': 0.32; 'trouble': 0.34; 'could': 0.34; 'subject:with': 0.35; 'objects': 0.35; 'but': 0.35; 'charset:us-ascii': 0.36; "i'll": 0.36; 'similar': 0.36; 'two': 0.37; 'handle': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'details.': 0.61; 'received:217': 0.63; 'email addr:gmail.com': 0.63; 'provide': 0.64; 'finally': 0.65; 'experience.': 0.67; 'subject:Found': 0.84; 'subject:find': 0.84; 'subject:skip:F 10': 0.84; 'incredibly': 0.96 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: dieter Subject: Re: SOAPpy: Expected to find node type 'Element' with name 'CountriesFetchingRequest'; Found node type 'Element' with name 'FetchCountries' Date: Mon, 22 Sep 2014 08:53:51 +0200 References: <257bc927-4ada-4020-8b9c-7781d0802bbc@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gmane-NNTP-Posting-Host: pd9e0b69c.dip0.t-ipconnect.de User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux) Cancel-Lock: sha1:l/5qqPn7NUmRMErrucfiJD9jROY= 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: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1411368848 news.xs4all.nl 2887 [2001:888:2000:d::a6]:42530 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:78126 vek.m1234@gmail.com writes: > I'm messing with SOAP, trying to write a small library to handle stuff I buy from Aramex (shipper). I'm learning XML/SOAP and I'm familiar with RPC from C (Stevens) but no other relevant experience. If this is incredibly dumb just ignore it since I'll probably figure it out eventually. > ... > The trouble is I don't understand how to call 'CoutriesFetchingRequest' or pass it to FetchCountries. Could someone clarify? I have no experience with "SOAPpy", but with "suds" (another Python SAOP client). A "suds" client exposes two attributes "factory" and "service". You use the "factory" to create Python objects for types defined by the WSDL; you then set their attributes with standard Python means (maybe involving other "factory" calls). Finally you call the methods via the "service" attribute passing arguments of the appropiate type in the normal Python way. I suppose, it is similar with "SOAPpy". Looking at its documentation and/or its examples may provide you with the necessary details. Otherwise, you could also use "suds".