simple SOAP method doesn't work,

2007-02-02 Thread Grzegorz Smith
Hi All. I 'm learning ZSI to use SOAP and I desperately need help. I'm working on example from tutorial -> (examples/server/send_response/ simple/wsdl/). Here are my wsdl files -> http://pastebin.com/873488. I made wsdl2py wsdl2py --complexType --file=binding.wsdl and get Example_services.py and Ex

Re: ZSI and WSDL schema

2007-02-01 Thread Grzegorz Smith
o be proper response. Any help? Please Gregor Thanks Simon On 1 Lut, 12:42, "Simon Brunning" <[EMAIL PROTECTED]> wrote: > On 1 Feb 2007 03:14:14 -0800, Grzegorz Smith <[EMAIL PROTECTED]> wrote: > > > Hi all. I have problem with ZSI and WSDL schema.I generate fr

ZSI and WSDL schema

2007-02-01 Thread Grzegorz Smith
Hi all. I have problem with ZSI and WSDL schema.I generate from WSDL by wsdl2py client method for webservice. I made soap call and something goes wrong. Doeas anyone know hot to create some server code by ZSI from WSDL?? I just suspectes that my return data from webservice is in incorrect envelope

Python and Soap protocol

2007-01-16 Thread Grzegorz Smith
Hi folks I must write webb application that will comunicate with delphi desktop application by SOAP protocol. Can you recommend any Python Soap Libary? I founded: SOAPpy and Zolera SOAP Infrastructure (ZSI). Any tip which is better to use? Thanks for any help Gregor -- http://mail.python.org/mailm

MySQLDB - return strange type of variable

2006-03-25 Thread Grzegorz Smith
Hi all. I'm trying get data from text field in MySQl 5.0 with my National characters. Data are stored in utf8 encodings. Here is the script: import MySQLdb, MySQLdb.cursors conn = MySQLdb.connect(host='localhost', user='root', passwd='123456', db='profile_locale') c = conn.cursor(MySQLdb.cursors.Di

how to write file with cp1250 encodings?

2006-02-26 Thread Grzegorz Smith
Hi all. I have got situation: i load data from database(MSSQL) wchich are encoded cp1250 and I fill template with that data (Cheetah Template), after all i want to save template to file on disk. I'm using newfile = open("template.html",w") newfile.write(str(template)) newfile.close() But data enco

decorator and function local variable

2006-02-20 Thread Grzegorz Smith
Hi all. I have got situation that I need make parameter injection into function and I want that parametet be a local variable of that function. eg. something like def decorator(): @decorator def myfun(): a = 20 and in myfun i can use b wariable like that: b = "ok it's working" I try to

trying to get hash from os.urandom

2006-01-23 Thread Grzegorz Smith
Hi all I'm writing small python module which will be a password generator. I read that python can use system random generator on machine whit *nix os. So i start using os.urandom and when i generate random string i get something like this: urandom(8) -> '\xec2a\xe2\xe2\xeb_\n',"\x9f\\]'\xad|\xe6\x