> response->setContents(pidf); What are you doing with the response after you set the contents? (also it looks like you have a memory leak between the first two lines of your example) -Michael.