Hi Erhan,
Sorry for the delay replying - I have been on holidays
The authorization error is a problem with the ...ByIdentification method. I had this problem too, and could only work around the problem by setting up a Communication Arrangement.
The best bet is to rework the code, and substitute in the ByElements method in place of the ByIdentification - ByElements does not present any authorization problems, from what I can see.
Jon