You are probably hitting a limit on the url size. You may have to do a http post and pass the string in the document body or possibly call the transaction via the web service interface. Can you use the content manager API like I do in the post below?
Regards,
Christian