Suds is not reusing cached WSDLs and XSDs, although I expect it to
by Lin, Mike M
I've been having major performance problems creating clients with large WSDL and XSD files. Here's a question about caching I posted on StackOverflow<http://stackoverflow.com/questions/6038226/suds-is-not-reusing-cached-wsd...>, but never got an answer to. I think I might be misunderstanding the way suds does caching. Can anyone confirm that my thinking is wrong?
Thanks,
Mike
Suds is not reusing cached WSDLs and XSDs, although I expect it to<http://stackoverflow.com/questions/6038226/suds-is-not-reusing-cached-wsd...>
I'm pretty sure suds is not caching my WSDLs and XSDs like I expect it to<https://fedorahosted.org/suds/wiki/Documentation>. Here's how I know that cached objects are not being used:
1. It takes about 30 seconds to create a client: client = Client(url)
2. The logger entries show consistent digestion of the XSD and WSDL files during the entire 30 seconds
3. Wireshark is showing consistent TCP traffic to the server storing the XSD and WSDL files during the entire 30 seconds
4. I see the files in the cache being updated each time I run my program
I have a small program that creates a suds client, sends a single request, gets the response, then ends. My expectation is that each time I run the program, it should fetch the WSDL and XSD files from the file cache, not from the URLs. Here's why I think that:
1. client.options.cache.duration is set to ('days', 1)
2. client.options.cache.location is set to c:\docume~1\mlin\locals~1\temp\suds and I see the cache files being generated and re-generated each time I run the program
3. For a moment I thought that maybe the cache is not reused between runs of a program, but I don't think a file cache would be used if that were the case, because an in-memory cache would do just fine
Am I misunderstanding how suds caching is supposed to work?
12 years, 2 months
Suds not implementing xs:attributes
by James Stewart
Hello all,
I'm using suds (0.4) to interact with HP Service Manager's web services. This is an excerpt from the wsdl in question:
<xs:element name="RetrieveIncidentRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="model" type="IncidentModelType"/>
</xs:sequence>
<xs:attribute name="attachmentInfo" type="xs:boolean" use="optional"/>
<xs:attribute name="attachmentData" type="xs:boolean" use="optional"/>
<xs:attribute default="true" name="ignoreEmptyElements" type="xs:boolean" use="optional"/>
</xs:complexType>
</xs:element>
When suds creates a method for RetrieveIncidentRequest, it only appears to implement the xs:sequence and not the subsequent xs:attributes:
(IncidentManagement)
Methods (8):
CloseIncident(IncidentModelType model, )
CreateIncident(IncidentModelType model, )
ReopenIncident(IncidentModelType model, )
ResolveIncident(IncidentModelType model, )
RetrieveIncident(IncidentModelType model, ) <---Expecting arguments derived from xs:attributes
RetrieveIncidentKeysList(IncidentModelType model, )
RetrieveIncidentList(IncidentKeysType[] keys, )
UpdateIncident(IncidentModelType model, )
Does anybody know if this is a limitation of Suds, or if there is a way that I can access the other attributes as defined in the wsdl?
Thanks,
James
Information contained in this communication (including any attachments) is confidential and may be privileged or subject to copyright. If you have received this communication in error you are not authorised to use the information in any way and Optiver requests that you notify the sender by return email, destroy all copies and delete the information from your system. Optiver does not represent, warrant or guarantee that this communication is free from computer viruses or other defects or that the integrity of this communication has been maintained. Any views expressed in this communication are those of the individual sender. Optiver does not accept liability for any loss or damage caused directly or indirectly by this communication or its use.
Please consider the environment before printing this email.
12 years, 2 months
For courage of your wiener
by Brain Tyler
>>> www.buypharma.com.ua
- There is no reason to feel depressed if you, like so many other men today, have hit the rough spot of your sexual life when you cannot seem to be performing as well as you used to do. Your agitation and frustration are easily understood, and still you should know that with the modern development of worldwide pharmacological industries it is but natural that there is bound to be a solution for your own needs when it comes down to solving your erectile dysfunction problems.
- We suggest you getting erectile dysfunction drugs from our online drugstore cheaply, easily and without much to-do. You will always be taken care of and attended to with extreme care, and you will have the possibility of choosing from a wide range of erectile dysfunction products to find a solution that will best suit your particular needs.
- The whole world puts great trust in those famous diamond shaped pills, and if you are not an exception we would like to revise some basic points that speak in favor of putting your male health in the hands of those magical tablets.
Firstly, there is no need for regular therapy – those blue pills have to be taken directly before the planned sexual contact, and extra convenience shines through when you come to realize that the pills will not start working unless sufficient sexual stimulation is provided.
- Secondly, this erectile dysfunction solution is known for its extremely low adverse side effects profile, which makes it available for all age groups of patients. Besides, it really does not matter how old you are when it goes about taking erectile dysfunction pills – just make sure that you do not overdose, and they will work for you at their best!
- Finally, those fabulous pills do not only provide you with stable erection that can be maintained for as long as you need it – they also help you to achieve unheard sensitivity during the sexual act as well as make your genitals look much more sizey!
- Think of all those benefits of taking erectile dysfunction pills and the effect you can produce on your loved one – and do not hesitate to make your order and / or refills right away!
--- > www.buypharma.com.ua < ---
_V______C________L
___I_______I_______E
_____A_______A_______V
_______G_______L_______I
_________R_______I_______T
___________A_______S_______R
_____________________________A
This lover's doping will make you strong enough to maintain good tempo with your girl all night long! The effect starts in 15 minutes after taking and no side effects will damage you! Try the most effective solution for male vigor today!
-
- - -
--------- www.buypharma.com.ua
- - -
-
12 years, 2 months
SUDs client using WSDL does not return complex type
by T. Pascal
I have some simple code to call a soap service (not public, sorry)
that should return a complex type "ArrayOfstring". This works in any
perl client, but no workable python client. I'm assuming that python
clients cannot accept return codes of complex (dict or list) type?
The wsdl is too long and unfriendly to generate, describe or post --
one of the most severe problems with SOAP imho. But you can clearly
see the response contains the correct xml and both entries in the
ArrayOfstring, but python does not get a list, only a string.
Code:
from suds.client import Client
url = 'http://localhost/wsdl/assets.wsdl'
client = Client(url)
print client
result = client.service.get_pools_by_availabilityzone('dev1')
print client.last_received()
print result
Result:
Python 2.4.3 (#1, May 5 2011, 16:39:10)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2
Suds ( https://fedorahosted.org/suds/ ) version: 0.3.9 GA build: R659-20100219
Service ( assetInventory ) tns="http://localhost/assets/Assets"
Prefixes (1)
ns0 = "http://localhost/assets/Assets"
Ports (1):
(assetInventorySoap)
Methods (2):
get_computeunits_free_by_pool(xs:string pool, )
get_pools_by_availabilityzone(xs:string availabilityzone, )
Types (1):
ArrayOfstring
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<soap:Body>
<get_pools_by_availabilityzoneResponse
xmlns="http://localhost/assets/Assets">
<s-gensym3 xsi:type="xsd:string">pool2-xen-dev1</s-gensym3>
<s-gensym5 xsi:type="xsd:string">pool1-xen-dev1</s-gensym5>
</get_pools_by_availabilityzoneResponse>
</soap:Body>
</soap:Envelope>
pool1
In perl the result is:
VAR1 => (
"pool1",
"pool2",
)
12 years, 2 months
Bombard her hole of love
by Candice Wynn
I used to be skeptical about impotence medications. Now I‘m ready to try anything at all!
Dear suds,
Even if your sex life is already rich and fulfilling... Imagine you had a little more energy... if your erections stayed harder... or you could go just a little longer...
Or maybe you worry, when you climb under the covers, that you’re starting something you can’t finish?
Well, now advancements in natural medicine are making it easier than ever to promote a strong libido, firm, natural erections and enhanced desire.
Now thanks to this exciting natural breakthrough, you could get an erection “on demand” and when you do, sustain it long enough – and keep firm enough — to fully satisfy your wife in bed. Even if you’re in your 50s, 60s, 70s, 80s or older!
As a doctor, I’ve learned something over the years that may surprise you — age has very little to do with sex. There are men out there having the best sex of their lives well into their 80th year and beyond.
And those men have three key things in common that their sex starved friends don’t:
Hard, recurring erections...
Heightened desire and stamina...
And a reproductive system that could be functioning at the top of its game...
Lucky? You bet.
But you too could give your body the nutrients it needs to support your entire sexual health.
If your wife is in depression after giving birth to your child you should be ready to help!
----------------------------------------------------
>>> www.buypharma.com.ua <<<
----------------------------------------------------
12 years, 2 months
Accpac, AS400, ACT, Cloud, Peoplesoft, Infor, Microsoft( Exchange , Dynamics etc), HR, Healthcare, Technology, Industry, ERP, CRM, VAR customer lists
by Mike Gordon
Hi,
This email is to introduce Repharm Technologies and lists we provide. We have a comprehensive business database of B2B records & B2C records. Our lists can be used Email Campaigns, Telemarketing, Fax Marketing and Direct Mailing. The list would be for your perpetual use with no restriction on the number of usage.
Below are some of our lists that may interest you, let me know if you require any other lists by providing the industry, job titles, etc.If you would like to discuss further any of your requirements, please contact me at 905-728-6708, or visit our web site at www.repharm.ca.
Technology Lists# of CompaniesIndustry Specific Lists# of CompaniesExecutive Lists# of Companies
Baan2,000Agriculture10,100CEO/President200,000
Epicor3,000Forestry and Fishing8,000CFO/VP Finance175,000
JD Edwards2,800Communications10,000CIO/CTO/Director IT150,000
Lawson 3,100Construction35,000VP/Director HR190,000
Microsoft AX2,000Finance33,000VP/Director Logistics35,000
Microsoft GP 11,000Insurance 12,000VP/Director Manufacturing75,000
Microsoft NAV5,000Real Estate11,000VP/Director Marketing160,000
Microsoft SL 2,200Manufacturing95,000VP/Director Sales175,000
Microsoft NAV3,500Mining4,000VP/Director Purchasing100,000
Microsoft Exchange20,000Public Administration8,000VP/Director Supply Chain40,000
Microsoft SharePoint18,000Retail Trade70,000
Oracle E-Business Suite8,000Services180,000
PeopleSoft3,200Transportation25,000
Primavera2,600Utilities7,000
SAP 12,000Wholesale Trade45,000
Siebel2,400
Fields: Contact Name, Job Title, Email, Main Phone Number, Physical Address, Company, Industry, SIC Code, Website, Company revenue, Employee size, etc.
License: The list is provided for perpetual use with no restriction on the number of usage.
Accuracy Rate: 85%.
Let me know which of the above lists interest you so that I can get back to you with counts, a few samples and other details.
Kind Regards,
Mike Gordon
VP Business Development
Repharm Technologies
Please consider the environment before printing this e-mail
To unsubscribe please reply to this email with "remove" in the subject line.
The information contained in this e-mail message and any attachments are confidential information intended only for the use of individuals or entities named above. If the reader of this message is not the intended recipient you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail at the originating address.
12 years, 2 months
suds created an extra xml tag
by Lam, Kai
I have used soapui to send a request to the server successfully to subscribe a service. However when using suds, the server gives error. The tcpdump from soapui request and from suds shows that the suds tcpdump has an extra dataw tag-element:
Suds tcpdump:
===========
User-Agent: Python-urllib/2.5
Connection: close
Content-Type: text/xml
...................................
<SOAP-ENV:Header/>
<ns1:Body>
<ns0:create>
<dataw>
<dataw> <-- here is the extra xml tag
<isEnabled>true</isEnabled>
<subscriberId>31633333333</subscriberId>
<data>
<rule>
<copyaddress copyAddress="31633333330" protocol="Number"/>
</rule>
</data>
</dataw>
</dataw>
</ns0:create>
</ns1:Body>HTTP/1.1 500 Internal Server Error
X-Powered-By: Servlet/2.5
.........................
<message>STATUS CODE 604: Exactly one of attributes (subscriberId, cosId, coiId) must be set</message>
Soapui tcpdump:
=============
<soapenv:Header/>
<soapenv:Body>
<aut:create>
<dataw>
<subscriberId>31633333</subscriberId>
<data>
<rule invert="?">
<copyaddress copyAddress="31633333335" protocol="number"/>
</rule>
</data>
<extendedServiceData>?</extendedServiceData>
<isEnabled>true</isEnabled>
</dataw>
</aut:create>
</soapenv:Body>
</soapenv:Envelope>
Here is the initialized object, as you can see there is only 1 dataw, while the xml created by suds in the tcpdump contains 2 dataw.
>>> print c_o
(create){
dataw =
(autoCopyDataWrapper){
extendedServiceData = None
isEnabled = True
subscriberId = 31633333333
coiId = None
cosId = None
data =
(autoCopyData){
rule =
(copyAddressRule){
endpointFilter =
(endpointFilter){
criterion[] = <empty>
recordId = None
_invert = ""
_role = ""
}
name = None
scheduleFilter =
(simpleActiveRange){
activeDays =
(activeDays){
day[] = <empty>
}
activeTime =
(simpleTimeRange){
startTime =
(simpleTime){
_hour = ""
_minute = ""
}
endTime =
(simpleTime){
_hour = ""
_minute = ""
}
}
recordId = None
_invert = ""
_timeZone = ""
}
substringFilter =
(substringFilter){
globalPhraseId = None
localPhrase =
(phraseHolder){
phrase7Bit = None
phraseUCS2 = None
}
recordId = None
_invert = ""
}
_invert = ""
copyaddress =
(copyAddressData){
_copyAddress = 31633333330
_protocol = "Number"
}
}
}
}
}
Suds version:
version: 0.3.9 (beta) build: R658-20100210 with Python 2.5
Traceball error:
>>> c.service.create(c_o)
Traceback (most recent call last):
File "<pyshell#61>", line 1, in <module>
c.service.create(c_o)
File "build\bdist.win32\egg\suds\client.py", line 539, in __call__
return client.invoke(args, kwargs)
File "build\bdist.win32\egg\suds\client.py", line 598, in invoke
result = self.send(msg)
File "build\bdist.win32\egg\suds\client.py", line 633, in send
result = self.failed(binding, e)
File "build\bdist.win32\egg\suds\client.py", line 684, in failed
r, p = binding.get_fault(reply)
File "build\bdist.win32\egg\suds\bindings\binding.py", line 238, in get_fault
raise WebFault(p, faultroot)
WebFault: Server raised fault: 'STATUS CODE 604: Exactly one of attributes (subscriberId, cosId, coiId) must be set'
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
12 years, 2 months
Losing your nether stiffness?
by Carmen Rankin
>>> www.bestpharmaonline.com.ua
- There is no reason to feel depressed if you, like so many other men today, have hit the rough spot of your sexual life when you cannot seem to be performing as well as you used to do. Your agitation and frustration are easily understood, and still you should know that with the modern development of worldwide pharmacological industries it is but natural that there is bound to be a solution for your own needs when it comes down to solving your erectile dysfunction problems.
- We suggest you getting erectile dysfunction drugs from our online drugstore cheaply, easily and without much to-do. You will always be taken care of and attended to with extreme care, and you will have the possibility of choosing from a wide range of erectile dysfunction products to find a solution that will best suit your particular needs.
- The whole world puts great trust in those famous diamond shaped pills, and if you are not an exception we would like to revise some basic points that speak in favor of putting your male health in the hands of those magical tablets.
Firstly, there is no need for regular therapy – those blue pills have to be taken directly before the planned sexual contact, and extra convenience shines through when you come to realize that the pills will not start working unless sufficient sexual stimulation is provided.
- Secondly, this erectile dysfunction solution is known for its extremely low adverse side effects profile, which makes it available for all age groups of patients. Besides, it really does not matter how old you are when it goes about taking erectile dysfunction pills – just make sure that you do not overdose, and they will work for you at their best!
- Finally, those fabulous pills do not only provide you with stable erection that can be maintained for as long as you need it – they also help you to achieve unheard sensitivity during the sexual act as well as make your genitals look much more sizey!
- Think of all those benefits of taking erectile dysfunction pills and the effect you can produce on your loved one – and do not hesitate to make your order and / or refills right away!
--- > www.bestpharmaonline.com.ua < ---
_V______C________L
___I_______I_______E
_____A_______A_______V
_______G_______L_______I
_________R_______I_______T
___________A_______S_______R
_____________________________A
If you want to bang her tonight… without problems with making your tool stiff, without lack of stamina and with lots of her hot moans. Try it. Just pop one pilule, bought in our web-store and experience super boost tonight!
-
- - -
--------- www.bestpharmaonline.com.ua
- - -
-
12 years, 2 months