received arrays are transformed into None
by Alexander Gerasimov
Hi,
Can you help me with this one? Arrays like these
<languageScopeMetadata soapenc:arrayType="ns2:CategoryMetadataRecord[0]"
xsi:type="soapenc:Array"/>
...
<legalValues soapenc:arrayType="xsd:string[0]"
xsi:type="soapenc:Array"/>
are transformed into None; is there a way to transform them into an
empty array and not None?
I'm using python-suds-0.3.7
Thanks,
________________________________
Alex Gerasimov
Developer, Ottawa
Open Text Corporation
Phone: +1 (613)-238-1761 ext. 5335
13 years, 10 months
maide nhair nocki ng adore s
by Buy Cialis Professional on www.vu47.com
mycos is imput able swarm er rhini tis pawne d drive line oxyph
ile hungr iness burba nk metas ymbol s grand iosit y enque ued
estro genic logos proba tione rs furni sher antig enic creat ures
conti nents phosp hide chrom ogen react ances
13 years, 10 months
call an HTTPS service via a proxy ...
by Cameron Simpson
Hi,
I'm porting a small web service app from ZSI to suds.
I'm having trouble connecting to an https:// service URL
via a proxy.
If I use no proxy things seem ok; if I set up a proxy the connection
appears to hang; an strace of the process suggests that the process
connects to the proxy server and speaks raw SSL without the necessary:
CONNECT real-host:443 HTTP/1.0
that is needed as a preamble to hop through the proxy.
I'm using suds-0.3.8 and python-2.6.4; the former because it is current
and the latter because it contains https-via-proxy support in urllib2.
The setup code looks like this:
client = Client(wsdlURL)
if os.environ.get('WEBPROXY'):
proxy = { 'http': os.environ['WEBPROXY'],
'https': os.environ['WEBPROXY'],
}
print "proxy =", `proxy`
sys.stdout.flush()
client.set_options(proxy = proxy)
client.set_options(location = 'https://localhost/foo-service')
where $WEBPROXY contains "localhost:3128", wsdlURL is a file:// URL to
my test WSDL and https://localhost/foo-service is a dummy URL to
test the service before harassing a real instance.
I believe suds is not speaking to urllib2 correctly to activate the
proxy tunnel.
The pre-suds app was making direct urllib2 calls and set things up like
this (yes, a different environment variable):
proxy_support = urllib2.ProxyHandler({"http" : os.environ['http_proxy'],
"https" : os.environ['http_proxy']})
opener = urllib2.build_opener(proxy_support)
urllib2.install_opener(opener)
and things quietly worked. That doesn't seem to have any effect if I get
suds to make the calls.
Can anyone suggest how I _should_ be setting this up for suds?
Cheers,
--
Cameron Simpson <cs(a)zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/
13 years, 10 months