Hi. I'm trying to read data from a stream connected to a socket. I can write without any problem but though the read doesn't work. Here's a snippet of code :
________________________________________________ ________________________________________________ | elements result | elements := XMLDOMParser parseDocumentFrom: socketStream. result := ((((elements elements at: 1) elements at: 1) elements at: 1) elements at: 1) asString. ^ result ________________________________________________ ________________________________________________
It seems the nextEntity method of the socket stream always returns nil. I don't really get what the true problem is but since I've tried with two different clients in differents languages and both keep hanging, I think the problem rather comes from the server. Here's its code: _________________________________________________ _________________________________________________ xmlWriter startTag: 'methodResponse'; endTag; startTag: 'params'; endTag; startTag: 'param'; endTag; startTag: 'value'; endTag; startTag: resultData key; endTag; pcData: resultData value; endTag: resultData key; endTag: 'value'; endTag: 'param'; endTag: 'params'; endTag: 'methodResponse'. xmlWriter flush. ___________________________________________________ ___________________________________________________
Thanks in advance for your help.
squeak-dev@lists.squeakfoundation.org