Sending XML to a WEB Service and Getting Response Back

Anurag Chourasia anurag.chourasia at gmail.com
Tue Dec 21 14:26:52 EST 2010


Thanks for the response all.

I tried exploring suds (which seems to be the current) and i hit
problems right away. I will now try urllib or httplib.

I have asked for help in the suds forum. Hope somebody replies.

When i try to create a client, the error is as follows.

>>> from suds.client import Client
>>> url = 'http://10.251.4.33:8041/DteEnLinea/ws/EnvioGuia.jws'
>>> client = Client(url)

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "suds/client.py", line 112, in __init__
    self.wsdl = reader.open(url)
  File "suds/reader.py", line 152, in open
    d = self.fn(url, self.options)
  File "suds/wsdl.py", line 136, in __init__
    d = reader.open(url)
  File "suds/reader.py", line 79, in open
    d = self.download(url)
  File "suds/reader.py", line 101, in download
    return sax.parse(string=content)
  File "suds/sax/parser.py", line 136, in parse
    sax.parse(source)
  File "/usr/local/lib/python2.7/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/local/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/local/lib/python2.7/xml/sax/expatreader.py", line 211, in feed
    self._err_handler.fatalError(exc)
  File "/usr/local/lib/python2.7/xml/sax/handler.py", line 38, in fatalError
    raise exception
xml.sax._exceptions.SAXParseException: <unknown>:1:62: syntax error
>>> [3] + Stopped (SIGTSTP)        python

This seems to be a old problem passing versions.

Regards,
Anurag

On Wed, Dec 22, 2010 at 12:40 AM, John Nagle <nagle at animats.com> wrote:
> On 12/20/2010 11:45 PM, Ian Kelly wrote:
>>
>> On 12/20/2010 11:34 PM, John Nagle wrote:
>>>
>>> SOAPpy is way out of date. The last update on SourceForge was in
>>> 2001.
>>
>> 2007, actually: http://sourceforge.net/projects/pywebsvcs/files/
>>
>> And there is repository activity within the past 9 months. Still, point
>> taken.
>
>   The original SOAPpy was at
>
>        http://sourceforge.net/projects/soapy/files/
>
> but was apparently abandoned in 2001. Someone else picked
> it up and moved it to
>
>        http://sourceforge.net/projects/pywebsvcs/files/SOAP.py/
>
> where it was last updated in 2005.  ZSI was last updated in
> 2007.  Users are still submitting bug reports, but nobody
> is answering.  Somebody posted "Who maintains the pywebsvcs webpage?"
> in February 2009, but no one answered them.
>
>    There's also "Python SOAP"
>
> http://sourceforge.net/projects/pythonsoap/
>
> abandoned in 2005.
>
>    The "suds" module
>
> http://sourceforge.net/projects/python-suds/
>
> was last updated in March, 2010.  That version
> will work with Python 2.6, and probably 2.7.
> There's very little project activity, but at
> least it's reasonably current.
>
>                                John Nagle
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list