read(): 1st argument can't be coerced to byte[]

Etienne Antoniutti Di Muro eantoniutti at univ.trieste.it
Tue Mar 2 07:55:51 EST 2004


Hi there everybody,
I want to build a WEB Service client for a test Web Service of mine.
I am using jython.
The code is as follow:

(...)
1 response = request.POST() # posts SOAP to the web service  and waits for
2                           # response
3 instr = response.getInputStream()
4 reader = Sax2.Reader()
5 doc = reader.fromStream(instr)
(...)

Well, at line 5, I get the error:

read(): 1st argument can't be coerced to byte[]

Does not seem to be a DOM parsing problem.

Any tip about this ?


Thanks in advance
Etienne






More information about the Python-list mailing list