Comments (7)
Scratch that. I'm pretty sure the issue is that I'm storing both python2 and python3 data in the same cache.
Please ignore.
from python-zeep.
Yeah it is actually an issue I've run into myself a couple of times. Need to mark the cache entries with the python and zeep version.
I'll re-open this as a reminder
from python-zeep.
That works too. Thanks!
from python-zeep.
I must say that I don't understand the need to mark cache entries with the python version. IIUC zeep is caching the content of the wsdl thus for me this data is unrelated to a python version.
That being said, I have taken a look and notice that if the database is created from python2 then unicode
are retrieved afterwards in python2 and str
in python3.
If the database is created from python3 then bytes
are retrived by python3 and buffer
in case of python2.
In both case the _decode_data()
call will fail. I think that what should be stored should be consistent and thus since it is base64 data I would always use bytes (encoding to ascii
and wrapping it in a buffer when in python2 should do the trick I think).
What do you think about this?
from python-zeep.
Hi @nicoe, that sounds like the better solution indeed. Do you want to create a PR for this?
from python-zeep.
- Michael van Tellingen [2016-06-02 21:01 +0200]:
Hi @nicoe, that sounds like the better solution indeed. Do you want to create a PR for this?
Yep, I'll try to work on it this weekend.
from python-zeep.
merged 👍
from python-zeep.
Related Issues (20)
- DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13 HOT 8
- RuntimeWarning: Running interpreter doesn't sufficiently support code object introspection
- Wrongs Namespace
- while requestHeader method generates header based on operation name soaptype returns request header
- passing a composite element to a service operation HOT 1
- does it support multiple return values? HOT 1
- Access to HTTP request? HOT 1
- NS0
- [4.2.1] Validation Error Exception
- Cloudflare and <soap:Header>
- Zeep fails to parse `24:00:00` as `xsd:time` (ValueError: hour must be in 0..23) HOT 2
- Add a network pytest mark for tests that use the network
- httpx: DeprecationWarning: Use 'content=<...>' to upload raw bytes/text content.
- Input message with multi parts
- Client only parses xsd type extensions one level
- AsyncClient has a blocking constructor
- Zeep fails trying to instantiate a client in python3.12 HOT 4
- Zeep parser produces dictionary keys that don't exist in raw XML
- Some XML elements do not have attributes (inconsistently)
- Getting 404 on loading https://schemas.xmlsoap.org/soap/encoding/ HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-zeep.