D
Darren Parr
Guest
Thanks Peter. After looking more closely at it, I think there's perhaps another way but I could be wrong on this and so I'll ask you. The DOH is just using the standard Write() method of the EntityWriter. This has a special case for errors which I think is where my issue lies. In my webhandler (non DOH requests) I catch any error and just assign my error object to poReposne:Entity. This works fine. With the DOH requests, the DOH is passing this error object to the entity writer and it calls writeError if its a progress.lang.error. I've not had to try to override this before but I've seen some of your other stuff on extending the jsonentitywriter but to be honest what I've done so far hasn't worked. I've added to the registry in the handlerequest call. Cant I just write it to the entity in here or do I have to write a full blown json dump with byte counts to make this all work. .
Continue reading...
Continue reading...