How was the WSDL generated? Was it done on a Windows machine? If so,
it writes a Byte Order Mark at the start of Unicode documents by
default. *nix and Python however doesn't expect BOMs, so it chokes.

You need to remove the BOM from your WSDL file.

On 27 November 2010 17:46, sami nathan <itssami.g...@gmail.com> wrote:
> Thanks for notification I am trying to develop web service using
> django with soap interface i checked my code in python to open wsdl
> file but its showing error i am sure that wsdl file dosent have any
> errors this is my code>>> from SOAPpy import WSDL
>>> server=WSDL.Proxy('D/soap/FlyppSms.wsdl')
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "D:\Python25\Lib\site-packages\SOAPpy\WSDL.py", line 67, in __init__
>    self.wsdl = reader.loadFromString(str(wsdlsource))
>  File "D:\Python25\Lib\site-packages\SOAPpy\wstools\WSDLTools.py", line 47, in
> loadFromString
>    return self.loadFromStream(StringIO(data))
>  File "D:\Python25\Lib\site-packages\SOAPpy\wstools\WSDLTools.py", line 28, in
> loadFromStream
>    document = DOM.loadDocument(stream)
>  File "D:\Python25\Lib\site-packages\SOAPpy\wstools\Utility.py", line 602, in 
> l
> oadDocument
>    return xml.dom.minidom.parse(data)
>  File "D:\Python25\Lib\site-packages\_xmlplus\dom\minidom.py", line 1915, in 
> pa
> rse
>    return expatbuilder.parse(file)
>  File "D:\Python25\Lib\site-packages\_xmlplus\dom\expatbuilder.py", line 930, 
> i
> n parse
>    result = builder.parseFile(file)
>  File "D:\Python25\Lib\site-packages\_xmlplus\dom\expatbuilder.py", line 207, 
> i
> n parseFile
>    parser.Parse(buffer, 0)
> xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 
> 1
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to