๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #12

Re: SOAP

#12
From: Hector Vergara R.
Date: Sat, 07 Jan 2006 16:49
47 lines
2173 bytes
hola, esta es como una implementacion SUPER basica... cliente y servidor..

tienes que bajarte esta implementacion (SOAPpy) desde aca:
http://sourceforge.net/project/showfiles.php?group_id=26590&package_id=18246
 e instalarla asi:  "python setup.py install"



--------servidor--------
import SOAPpy

def holaMundo ():
  return "Hola Mundo!"

server = SOAPpy.SOAPServer (("localhost", 8080))
server.registerFunction(holaMundo)
server.serve_forever()
---- fin servidor---------


----- cliente ------
import SOAPpy

proxy = SOAPpy.SOAPProxy("http://localhost:8080")
print proxy.holaMundo()
----- fin cliente ----


de ahi puedes empezar a jugar con los wsdl o con servicios mas complejos...

saludos!


":: g A b R i E L ::" <nospam@nospam.org> escribi๏ฟฝ en el mensaje 
news:43BF6A6F.3010902@nospam.org...
> Saludos.
>
> Alguien que me pueda ayudar/guiar en SOAP con python (para servidor de web 
> services).
>
> Revise TODO lo que me mostro google y es muy basico, no logro hcaer algo 
> que funke, siquiera un "hola mundo"...
>
> gracias!
>
> :: g A b R i E L ::
> 
Technical Details
Message-ID: <dporcq$tet$1@news.nivel5.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!not-for-mail
References: <43BF6A6F.3010902@nospam.org>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,a004c8105267db61
X-Google-Thread: 114e1a,a004c8105267db61
X-Google-Thread: 1054ea,a004c8105267db61
X-Google-Attributes: gid1593cb,gid114e1a,gid1054ea,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!not-for-mail
From: "Hector Vergara R." <hvergara@nospam.gmail.com>
Newsgroups: chile.comp.programacion,chile.comp.internet,chile.comp.unix
Subject: Re: SOAP
Date: Sat, 7 Jan 2006 13:49:20 -0300
Organization: Varios
Lines: 49
Message-ID: <dporcq$tet$1@news.nivel5.cl>
References: <43BF6A6F.3010902@nospam.org>
NNTP-Posting-Host: pc-75-16-83-200.cm.vtr.net
X-Trace: news.nivel5.cl 1136652506 30173 200.83.16.75 (7 Jan 2006 16:48:26 GMT)
X-Complaints-To: news@news.nivel5.cl
NNTP-Posting-Date: Sat, 7 Jan 2006 16:48:26 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response