[Fedora-suds-list] Re: <unknown>:1:0: syntax error
Jeff Ortel
jortel at redhat.com
Fri Dec 4 20:52:19 UTC 2009
Looks like the reply is not a valid XML document. My guess, is that the URL used to
invoke the method is not correct.
On 12/04/2009 01:27 PM, Ajai Joy wrote:
> 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
> <mailto: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
>
>
>
> _______________________________________________
> fedora-suds-list mailing list
> fedora-suds-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-suds-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5126 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/suds/attachments/20091204/8c400184/attachment.bin
More information about the suds
mailing list