MessagePlugin bug?
by Isaac Wagner
I am subclassing MessagePlugin like this:
class FixText(MessagePlugin):
def sending(self, context):
context.envelope = "something else"
I've run the Python debugger and traced through my code and my plugin is
getting called. However, when the SOAP request hits the wire it contains
the original text, not my new text. Is there a workaround for this or is
this a known issue?
13 years, 5 months
(no subject)
by Roberta Gee
WHAT A GREAT IDEA!
Ring anytime 1-801-461-5023 We proubgdrvide a coel9zshdncept that will allozelfz97w anyoi80rne with sufficient wodip1afrk experience todrag7
o5dmxelfwxbtain a fully verifiable University Degree.
Bachelo57bkcfozrs, Masters or1rx4r even a Dodh56z61actomd0elw54rate.
Think oxfkelf it, within fo6rel8ur to4xm six weeks, yo3ac2nymtu tozmo22 cos5guld be a coaelynllege graduate.
Many peo4dbmple share the same frustratioselhn, they are doxr2duing the wokiym6bfrk oxxnrt7asf the persoqah6dn
that has the degree and the persodqxn that has the degree is getting all the moy9v1ney.
Doelf7u9nt yo3861nqu think that it is time yoy81j2u were paid fair cowvfmpensatiot1rh7g2fn fom1c2r the level oxtrf
wovwmrk youb9u are already doa48k374ying?
This is yo87mm4ur chance towxhprjw finally make the right mo089j9ryve and receive yo7v5ur due
benefits.
If yojgu are moz5belmxre than qualified with yo0mqur experience, but are lacking that
prestigiofzrelus piece o5ukx85hpf paper knoib131fwn as a diplo9mpdq5dma that is oahoften the passpon6tmqb0urt tonb242t
success.
CALL US TOcf2fyzqDAY AND GIVE YOzk8g2gwqUR WO6aft1jsRK
EXPERIENCE THE CHANCE Todi395 EARN YO80fU
THE HIGHER CO30fs8zMPENSATIO81N YObkuwfhmU DESERVE!
Ring anytime 1-801-461-5023
13 years, 5 months
Wrong xml created
by Johann Spies
navraag = qclient.factory.create('search')
print 'Navraag (search): %s' % navraag
==========================================
(search){
queryParameters =
(queryParameters){
databaseID = "WOS"
editions[] = <empty>
queryLanguage = "en"
symbolicTimeSpan = None
timeSpan =
(timeSpan){
begin = None
end = None
}
userQuery = "CU = *South Africa* and PY = 1945"
}
retrieveParameters =
(retrieveParameters){
collectionFields[] = <empty>
count = 5
fields[] = <empty>
firstRecord = 1
options[] = <empty>
}
================================================
This seems correct but look at the SOAP request sent to the server where
I have indicated the troublesome lines with "Problem -->" which should not
be there. How do I solve this?
===================================
qclient.service.search(navraag)
ERROR:suds.client:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://woksearch.cxf.wokmws.thomsonreuters.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<ns0:Body>
<ns1:search>
Problem --> <queryParameters>
<queryParameters>
<databaseID>WOS</databaseID>
<queryLanguage>en</queryLanguage>
<userQuery>CU = *South Africa* and PY = 1945</userQuery>
</queryParameters>
<retrieveParameters>
<count>5</count>
<firstRecord>1</firstRecord>
</retrieveParameters>
Problem --> </queryParameters>
</ns1:search>
</ns0:Body>
</SOAP-ENV:Envelope>
======================================
Help will be appreciated.
Regards
Johann
--
Johann Spies Telefoon: 021-808 4699
Databestuurder / Data manager
Sentrum vir Navorsing oor Evaluasie, Wetenskap en Tegnologie
Centre for Research on Evaluation, Science and Technology
Universiteit Stellenbosch.
"He that loveth father or mother more than me is not
worthy of me: and he that loveth son or daughter more
than me is not worthy of me. And he that taketh not
his cross, and followeth after me, is not worthy of
me." Matthew 10:37,38
13 years, 5 months
Performance issues
by Branton Davis
I am having trouble with suds performance. I am using version 0.4 and
am sending a request using the service api. I'm not sure that I should
post the WSDL, as it is not public, but I could definitely post sample
requests and responses if helpful.
I've done some digging to try to figure out where all of the time is
being spent. So, for an example call that the service provider says
should take 10 - 20 seconds, the request takes 3-4 minutes. I've run
cProfile and see that most of the time is spent on parsing the xml.
Here's the output from pstats:
% sort time
% stats 10
Thu Nov 11 20:40:27 2010 ss_profile
188760610 function calls (173229448 primitive calls) in
727.425 CPU seconds
Ordered by: internal time
List reduced from 1530 to 10 due to restriction <10>
ncalls tottime percall cumtime percall filename:lineno(function)
17433501/11932426 155.135 0.000 343.951 0.000
suds/xsd/sxbase.py:579(next)
443640 90.804 0.000 324.615 0.001
suds/xsd/sxbase.py:121(children)
15987882 50.111 0.000 60.333 0.000 suds/xsd/sxbase.py:528(next)
17433501 46.838 0.000 61.628 0.000 suds/xsd/sxbase.py:567(top)
14657010 35.916 0.000 35.916 0.000 {isinstance}
38900366/29716796 31.571 0.000 130.412 0.000 {len}
3473347 21.630 0.000 33.102 0.000 suds/xsd/sxbase.py:547(push)
3014915 18.229 0.000 25.163 0.000
suds/sudsobject.py:134(__setattr__)
155131 17.586 0.000 305.249 0.002
suds/xsd/sxbase.py:148(get_child)
14864753 13.263 0.000 13.263 0.000 {method 'append' of
'list' objects}
Is it possible that the response is so large that it simply takes that
long to parse? Could anyone recommend anything else that I can check?
I'll also see if I can clean a version of the WSDL and code to share if
that would really help.
Thanks for any advice!
Branton
13 years, 5 months
Symantec AV/F detected a virus in a document you authored
by HFmail02
Please contact your system administrator
The scanned document was QUARANTINED.
Virus Information:
The attachment highfashion.com.hk.zip contained the virus W32.Mydoom.M@mm
and could NOT be repaired.
The attachment highfashion.com.hk.zip(highfashion.com.hk.htm
.com) contained the virus W32.Sality.U and could NOT be repaired.
13 years, 5 months
How to set the http-proxy
by Johann Spies
This is my first experience of SOAP and suds and help will be
appreciated.
According to the suds documentation the way to set the proxy is:
d = dict(http='host:80', https='host:443', ...)
client.set_options(proxy=d)
My question is how it is possible to do that if the invoking of the
object 'client' requires an url and needs the proxy to reach the url?
In the following code I tried to overcome this problem but without
success: The proxy setting gets ignored and the process ends with a
SYN_SENT and timeout:
=============================================================
import sys
# sys.path.append('../')
import logging
import traceback as tb
import suds.metrics as metrics
from suds import WebFault
from suds.client import Client
from suds.transport.http import HttpAuthenticated
p = dict(http ='http://proxy.sun.ac.za:3128', https ='https://proxy.sun.ac.za:3128')
url = 'http://search.isiknowledge.com/esti/wokmws/ws/WOKMWSAuthenticate?wsdl'
t = HttpAuthenticated()
import os
proxyOpts = dict()
if os.environ.has_key('http_proxy'):
proxyOpts['http'] = os.environ['http_proxy'].replace('http://', '')
elif os.environ.has_key('HTTP_PROXY'):
proxyOpts['http'] = os.environ['HTTP_PROXY'].replace('http://', '')
else:
proxyOpts['http'] = 'proxy.sun.ac.za:3128'
client = Client(url, proxy = proxyOpts, transport = t, username='x', password='y')
# Configure HTTP proxy from OS environment (e.g. http_proxy="http://proxy.example.com:8080")
==============================================
So how do I procede from here?
Regards
Johann
--
Johann Spies Telefoon: 021-808 4699
Databestuurder / Data manager
Sentrum vir Navorsing oor Evaluasie, Wetenskap en Tegnologie
Centre for Research on Evaluation, Science and Technology
Universiteit Stellenbosch.
"O death, where is thy sting? O grave, where is
thy victory?" 1 Corinthians 15:55
13 years, 5 months
Mailing/Email lists for sale
by Renee Mccullough
This week only I can sell you ANY individual list below for just $99 or 3 for $249:
( HEALTHCARE )
- Doctors (34 different specialties)
- Chiropractors
- Alternative Medicine
- Dentists
- Veterinarians
- Hospitals
- National Health Service Corp Clinics
- Nursing Homes
- Pharmaceutical Companies
- Physical Therapists
- Oncology Doctors
- US Surgery Centers
- Massage Therapists
- Acupuncturists
- Medical Equipment Suppliers
- Mental Health Counselors
- Visiting Nurses & RN's
- Optometrists
- Psychologists
( BUSINESS LISTS )
- Hotels
- Real Estate Agents
- American Business Email List
- US New Business Database
- Manufacturers Database
- Financial Planners Database
- Finance and Money Professionals Database
( CONSUMER LISTS )
- American Consumer Database
- Credit Inquiries Database
- American Homeowners
( PROFESSIONALS LISTS )
- USA Lawyers Database
- Police and Sheriff Services
- Criminal Attorneys - 142,906
email me here for counts & samples: routetosuccess(a)gmx.com
Send email to purgefile(a)gmx.com for deleted status
13 years, 6 months