---
title: "关于在 .net 里使用 mime 附件"
author: "zwhc"
date: "2011-06-03T16:11:31Z"
tags: []
categories: ["编程语言"]
slug: "net-mime"
draft: false
lastmod: "2011-06-03T16:11:31Z"
id: 1069665
url: "https://zwhc.iteye.com/blog/1069665"
---

关于在 .net 里使用 mime 附件

首先，看一下标准文件：
SOAP Messages with Attachments
http://www.w3.org/TR/SOAP-attachments

This version:
    http://www.w3.org/TR/2000/NOTE-SOAP-attachments-20001211 

也就是说，这个标准在 20001211 就已经制定完毕了。但是微软在 .net 里没有实现这个功能。
目前，有些系统，对外的 webservices 接口，用的还是这个。客户端用 .net 去实现比较困难，据说只好使用拼字段的方式。
（.Net (C#) and SOAP with Attachments
http://blog.rueedlinger.ch/2009/01/net-c-and-soap-with-attachments/）

目前，wse2.0 使用 DIME，wse3.0 使用 mtom。客户端如何使用 mime 方式，已经找了两天了，没有太多的头绪。可能，还得使用
拼字段的方式。

好象，当时微软对 web 应用还不是非常注重。
但现在注重了啊，为何还找不到相关的文档，可以方便地使用呢？