We are using visual studio 2010.
When the createAttachment webservice method is executed, we get the following error:
Error - could not perform the operation, policy limit exceeded
I have read some threads regarding usage of WSE. But that is not working in VS 2010.
Experts, please guide!
Any ideas here for Chirag?
The SDM createAttachment call is using DIME to add the attachment, however Microsoft WSE (starting from 3.0) does not support this method of transferring binary data anymore. The error you receive is because of the missing DIME structure in the SOAP call.
See c# - How can I use DIME with WSE 3.0? - Stack Overflow for someone with a similar problem. The solution would be to either try to use WSE 2.0 in your project or to use another .net component that supports DIME (I'm not aware of any 3rd part library that could do that, but I haven't searched for something like this).
Extensive search led me to a post where I found a very simple solution to this.
Installing WSE 2.0 or WSE 3.0 did not help.
Adding reference to Microsoft.web.services2.dll did the trick.
After adding this dll you can use DIME and implement attachments successfully!!
Thanks Chirag for letting us know!