# Saturday, April 23, 2005
« Error Handling Discussion | Main | CodeSmith rocks! »

If you are using DIME attachments, and you want to use them in a Windows client, this tip will save you some time. I created a File Upload/Download web service for a client I am currently working with, and until this week is was used solely on a web front end. However, there was a request for a Windows client, so I set out to create one using the same code.

All seemed well, until I went to compile. My Web Service is called FileService (for the purposes of this discussion), and in order the use DIME attachments after setting a web reference, you need to use the FileServiceWse version of the web reference (the wse class). The problem was, one wasn't generated in the proxy. I debated using the proxy for the web application, but then decided to try something a little different.

I removed the existing Web Reference, added a reference to System.Web to my project, then added the Web Reference again. Viola! My wse version was available now, and my code compiles! I decided to post this to save someone else a bit of time, as well as a reminder to myself in the future.