Comments (5)
No me gusta ese cambio, es medio aparatoso.
Habría que probar cambiando en la linea 134 de simplexml.py:
if text is not None:
Tambien tendriamos que revisar el WSDL para ver si esto es algo standard o no.
Original comment by [email protected]
on 9 Jun 2011 at 5:56
- Changed state: Accepted
from pysimplesoap.
Estuve revisando las especificaciones de W3C y hasta donde pude ver no se
incluye el uso de etiquetas vacías.
http://www.w3.org/TR/2001/NOTE-wsdl-20010315
En http://www.w3.org/TR/2000/NOTE-SOAP-20000508/ (Sección "Rules for Encoding
Types in XML"):
"...A NULL value or a default value MAY be represented by omission of the
accessor element. A NULL value MAY also be indicated by an accessor element
containing the attribute xsi:null with value '1' or possibly other
application-dependent attributes and values. ..."
¿Esto implica que utilizar etiquetas vacías no sigue el estándar?
Original comment by [email protected]
on 10 Jun 2011 at 12:27
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from pysimplesoap.
Adjunto una modificación alternativa para client.py y simplexml. Se pasa
voidstr como booleano y se agregan elementos al request con string "" siempre
que SoapClient se haya creado con voidstr = True. Si el comportamiento no es
estándar, es posible omitir el kwarg (opción por defecto False). El elemento
se agrega al excluir del filtro los valores "" en la función sorted_dict
Original comment by [email protected]
on 11 Jun 2011 at 1:44
Attachments:
from pysimplesoap.
Ver branch reingart con un ajuste tentativo:
http://code.google.com/p/pysimplesoap/source/list?name=reingart
*IMPORTANTE*: dicho branch rompe compatibilidad hacia átras con ciertas formas
de enviar tags vacios, por lo que es necesario actualizar el codigo que lo
utiliza para enviar explicitamente None en vez de listas vacias, string vacios
o similares.
Original comment by [email protected]
on 4 Oct 2011 at 7:25
from pysimplesoap.
Corregido en la versión 1.05a
Original comment by [email protected]
on 8 Jan 2012 at 12:49
- Changed state: Fixed
from pysimplesoap.
Related Issues (20)
- The 'ascii' codec can't encode character error when passing unicode strings to server HOT 2
- RuntimeError: No scheme given for url
- Unexpected result in simple web services with web2py and pysimplesoap
- SoapClient.call() strips xmlns
- Wrong result generated. HOT 2
- Decimal values should not be serialized into XML with scientific notation HOT 3
- wsdl-reading ignores part of xsd file HOT 3
- wrong namespace and prefix in response - web2py HOT 3
- argument order diffrent
- Can't set attributes for request tag without children
- strange "Type mismatch" error
- Error TypeError: Tag: diffgram invalid (type not found)
- Python 3 HOT 1
- Webservice may fail when SOAPAction header is different then invoked method
- xsi:nil="true" value can't be parsed HOT 1
- Tag not found Error
- Problems with wsdl containing xs:base64Binary Master-Key mismatch HOT 1
- unable to parse WSDL
- need help how to generate Python client stub from wsdl files
- Invalid Arg structure error
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 pysimplesoap.