-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with .net client #16
Comments
Hello Michael. You can send me the SOAP message generated by the client .NET?. I can see what this is an error of the xml parser in the API. Thanks. Rodrigo. De: morsupil [email protected] Hello, Any Idea? |
Sorry, did not see the link :-) |
no problem... I've test a cast in the xml parser module to force NoneType object to an str... No error after this modification but I don't think that this is the solution :-((( |
here is my modified writexml : |
Hello,
I've this error return to a .net client :
Error in web service : 'NoneType' object has no attribute 'replace'
I don't have the problem with soapui and suds.
Here is the traceback of the error:
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/tornado/web.py", line 1042, in _execute
getattr(self, self.request.method.lower())(_args, *_kwargs)
File "/usr/local/lib/python2.6/dist-packages/tornadows/soaphandler.py", line 148, in post
self._request = self._parseSoap(self.request.body)
File "/usr/local/lib/python2.6/dist-packages/tornadows/soaphandler.py", line 229, in _parseSoap
body_elements = self._parseXML(body)
File "/usr/local/lib/python2.6/dist-packages/tornadows/soaphandler.py", line 265, in _parseXML
elem_list.append(xml.dom.minidom.parseString(element.toxml()))
File "/usr/lib/python2.6/xml/dom/minidom.py", line 45, in toxml
return self.toprettyxml("", "", encoding)
File "/usr/lib/python2.6/xml/dom/minidom.py", line 59, in toprettyxml
self.writexml(writer, "", indent, newl)
File "/usr/lib/python2.6/xml/dom/minidom.py", line 817, in writexml
node.writexml(writer,indent+addindent,addindent,newl)
File "/usr/lib/python2.6/xml/dom/minidom.py", line 812, in writexml
_write_data(writer, attrs[a_name].value)
File "/usr/lib/python2.6/xml/dom/minidom.py", line 301, in _write_data
data = data.replace("&", "&").replace("<", "<")
AttributeError: 'NoneType' object has no attribute 'replace'
The xml enveloppe send by the client is here:
http://pastebin.com/JnbrUWXj
Any Idea?
Michael
The text was updated successfully, but these errors were encountered: