Messaging with Attachments Using WSE 2.0

You might have noticed a common theme in dealing with some of the extras that come with WSE with regard to web service communication. Many of the additional industry standards, such as WS-Attachments, WS-Security, and so on, can be accessed via methods and properties of the WSE RequestSoapContext and ResponseSoapContext properties.

The same is true of attachments. To attach a file to a message being sent to a web service (or any other WSE-based SOAP endpoint, such as the TCP samples from earlier in the chapter), all you need to do is simply add the file to the Attachments collection by creating a DimeAttachment.

Introduction to DIME

DIME (Direct Internet Message Encapsulation) is a standard for sending ...

Get Microsoft® Visual C#® .NET 2003 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.