Closed GoogleCodeExporter closed 9 years ago
This is the output XML which can't be processed
Original comment by FFHe...@gmail.com
on 14 Feb 2013 at 3:31
Attachments:
Can you provide sample code to reproduce the issue?
Original comment by reingart@gmail.com
on 14 Feb 2013 at 7:57
[deleted comment]
the wsdl_file is attached, I'm calling:
>>> client = SoapClient(wsdl=wsdl_file, trace=True)
>>> client.AddPackage(657, 33, 'Services', 'Comment', 1, datetime.now())
which produces the output.xml.txt attached to my previous comment. I attached a
complete trace, hope that helps.
Original comment by FFHe...@gmail.com
on 15 Feb 2013 at 7:46
Attachments:
If I set strict=False in line 420 in simplexml.py, everything works. Could you
provide a way to set strict=False via SoapClient?
Original comment by FFHe...@gmail.com
on 15 Feb 2013 at 9:23
[deleted comment]
After setting strict=False I get simple answers parsed correctly. But some more
complicated responses return only some None values like:
{'GetHostingPlanQuotasResult': {'diffgram': None, 'schema': None}}
with the xml-output showing LOTS of data.
Please find attached the full response-xml
Original comment by FFHe...@gmail.com
on 18 Feb 2013 at 3:36
Attachments:
It seems to be defining elements dynamically in the response, look at
<xs:schema id="NewDataSet" in SOAP Body ...
This is not supported right now in pysimplesoap, all schema definition should
be in the wsdl.
As a workaround, you could evaluate raw responses:
http://code.google.com/p/pysimplesoap/wiki/SoapClient#Raw_example
For example (untested):
response = SimpleXMLElement(client.xml_response)
for table in response("NewDataSet"):
print int(table("GroupID"))
print int(table("GroupName"))
For more info about XML manipulation, see:
http://code.google.com/p/pysimplesoap/wiki/SimpleXmlElement
If you can, please attach a full .py working sample so it is easier to test and
suggest fixes.
In this cases, I could offer commercial support for this kind of issues, as
they could need more prioritary dedication.
Original comment by reingart@gmail.com
on 18 Feb 2013 at 5:29
This issue was closed by revision e1d58014d108.
Original comment by reingart@gmail.com
on 22 Jan 2014 at 4:26
The error is now fixed in the latest developement version 1.12
Please download and test the latest source code from the repository until the
release:
https://pysimplesoap.googlecode.com/archive/default.zip
Added a test with some explanation in revision 71a6c4b47622
Original comment by reingart@gmail.com
on 22 Jan 2014 at 4:28
Hi, I am still getting the same error with version 1.14.
I set strict=False and it generated None fields too.
I attach sample code.
Could you please help me to fix this?
Thanks.
Original comment by gabriels...@gmail.com
on 24 Jun 2014 at 12:11
Attachments:
Sorry, but I don't see the error.
Also, this issue is closed (and it was related to other webservice).
Could you please elaborate and open a new issue (attaching some sample code and
the wsdl)?
Original comment by reingart@gmail.com
on 24 Jun 2014 at 6:29
Same problem with Version 1.14 - not in Version 1.10.
See also https://code.google.com/p/pysimplesoap/issues/detail?id=150
Original comment by karsten....@gmail.com
on 23 Jul 2014 at 12:51
Ok, thanks, will continue to work on issue #150, please add any new info there
if you can.
Original comment by reingart@gmail.com
on 23 Jul 2014 at 9:02
Original issue reported on code.google.com by
FFHe...@gmail.com
on 14 Feb 2013 at 3:08