[Fedora-suds-list] Re: <unknown>:1:0: syntax error

Ajai Joy ajai.joy at gmail.com
Fri Dec 4 19:27:31 UTC 2009


Trace back call :

<unknown>:1:0: syntax error
Traceback (most recent call last):
  File "test.py", line 29, in <module>
    result = client.service.loginUsingUserCredential('BLAdmin', '', 'SRP')
  File "../suds\client.py", line 535, in __call__
    return client.invoke(args, kwargs)
  File "../suds\client.py", line 595, in invoke
    result = self.send(msg)
  File "../suds\client.py", line 624, in send
    result = self.succeeded(binding, reply.message)
  File "../suds\client.py", line 656, in succeeded
    r, p = binding.get_reply(self.method, reply)
  File "../suds\bindings\binding.py", line 141, in get_reply
    replyroot = self.parser.parse(string=reply)
  File "../suds\sax\parser.py", line 141, in parse
    sax.parse(source)
  File "C:\Python26\lib\xml\sax\expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "C:\Python26\lib\xml\sax\xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "C:\Python26\lib\xml\sax\expatreader.py", line 211, in feed
    self._err_handler.fatalError(exc)
  File "C:\Python26\lib\xml\sax\handler.py", line 38, in fatalError
    raise exception
SAXParseException: <unknown>:1:0: syntax error
after calling service call################


On Fri, Dec 4, 2009 at 2:11 PM, Ajai Joy <ajai.joy at gmail.com> wrote:

>  When I execute a service call, the service executes successfully from the
> server side. If I run the suds client in debug mode, I can see the soap
> response (with a sessionId )printed on the console but then it hits
> exception block and prints
>
> <unknown>:1:0: syntax error
>
>
> Client code
>
> url = 'https://xx:9843/services/LoginService?wsdl'
>     client = Client(url)
>     print client
>     client.set_options(location= 'https://xx:9843/services/LoginService')
>     print 'before calling service call################'
>     result = client.service.loginUsingUserCredential('Admin', '', 'SRP')
> except Exception, e:
>     print e
>
> Any ideas what this syntax error means ?
>
>
>
> debug log
>
> </ns2:return><ns2:returnSessionId>*
> urn:uuid:A4284D5F75A94497C51259947971115*</ns2:returnSessionId></
> ns2:loginUsingUserCredentialResponse></soapenv:Body></soapenv:Envelope>
> *--MIMEBoundaryurn_uuid_A4284D5F75A94497C51259947975820--
> <unknown>:1:0: syntax error
> *
> --
> Best Regards,
> AJ
>



-- 
Best Regards,
Ajai Joy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/suds/attachments/20091204/e331c6dd/attachment.html 


More information about the suds mailing list