Strange, the code I've written now seems to be working, but my debug statements are still not visible (in debugview). Won't they work with deploy infopath forms? I've got another question tho. My form has a dataconnection to submit data to a webservice. The webservice needs a paramater which is a custom class, for example Company. When ...