I found a working solution to this problem, using WSE 3.0.
Using WSE it can be changed the default service proxy, as described here. Basically:
- Add reference to
Microsoft.Web.Services2.dll
- Add service reference to the service with DIME attachments
- Manually change the extended class in the auto-generated
Reference.cs
file toMicrosoft.Web.Services2.WebServicesClientProtocol
This will give you access to the ResponseSoapContext
member of the service client.
The ResponseSoapContext
contains the Attachments
member: it's a collection of the DIME attachments of the last executed web method.