wcf
wcf copied to clipboard
Add Soap with Attachments / SwA-Support
Currently there is no direct support for "Soap with Attachments". The only thing I could currently find was:
https://github.com/microsoftarchive/msdn-code-gallery-community-s-z/tree/master/Send%20Soap%20with%20Attachments%20using%20WCF
The code still works. However, I have to say that I'm not a fan of using code that was once part of an article and no longer receives any maintenance. Therefore I would be very happy if a native support for "Soap with Attachments" could be implemented.
Here are a few refs. to the spec.
https://www.w3.org/TR/SOAP-attachments/ https://www.w3.org/TR/soap12-af/
+1 for this. Use case: we have to invoke legacy services using SwA (Java 1.6) exposed by government agencies. In the end it's not that different from MTOM, but different enough that it's not compatible with it. Even just updating the custom code or publishing an article using the current WCF packages would be great.
I am not sure .NET Web Services Enhancements (WSE) for .NET Framework 2.0 supported SwA let alone .NET Windows Communication Foundation (WCF) which was introduced for .NET Framework 3.0. So, I imagine this would be a feature for supporting interoperability scenarios with early 2000s-era java-based SwA services (Apache Axis 1.x?). Perhaps this could be done with some type of custom MessageEncodingBindingElement. Not sure if anyone has attempted to write such a thing.