Home My Page Projects Code Snippets Project Openings DPWS Core
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files Mediawiki

[#398] WCF Interoperability issue: MTOM file transfert raises an exception

Date:
2013-04-18 09:44
Priority:
3
State:
Open
Submitted by:
Antoine Hincelin (ahincelin)
Assigned to:
Stéphane ROUGES (srouges)
Target Fix Version:
Unassigned
Product:
DPWS Core
Operating System:
All
Component:
DCRuntime
Version:
v2.4.0
Severity:
normal
Resolution:
Fixed
Hardware:
All
URL:
Summary:
WCF Interoperability issue: MTOM file transfert raises an exception

Detailed description
Tested with Visual Studio 2010, .Net Framework 4

sending file from .Net client to server with DpwsCore stack is OK.

receiving file raises following exception :
"Erreur lors de la création d'un lecteur pour le message MTOM"
"Type 'application/soap+xml; charset=utf-8' inattendu trouvé dans la partie MIME racine. L'en-tête du message précise 'application/soap+xml'."

removing "charset=utf-8" in header solves the problem.

proposed fix, in stdsoap2.inc :

--- stdsoap2.inc 2013-03-08 10:28:44.000000000 +0100
+++ stdsoap2_fix.inc 2013-04-17 16:35:38.461705500 +0200
@@ -11791,7 +11791,7 @@
s = "application/dime";
/* <SE> */
else if (soap->version == 2 && (soap->mode & SOAP_ENC_MTOM))
- s = "application/xop+xml; charset=utf-8; type=\"application/soap+xml; charset=utf-8\"";
+ s = "application/xop+xml; charset=utf-8; type=\"application/soap+xml\"";
/* </SE> */
else if (soap->version == 2)
s = "application/soap+xml; charset=utf-8";
Message  ↓
Date: 2014-02-12 14:15
Sender: Stéphane ROUGES

Blind fix done in trunk (will be verified by regression tests). Validated by a latest gSOAP version.

Attachments:
Size Name Date By Download
511 bytesstdsoap2.inc.diff2013-04-18 09:44ahincelinstdsoap2.inc.diff
Field Old Value Date By
ResolutionNone2014-02-12 14:15srouges
assigned_tonone2014-02-11 17:00srouges
File Added58: stdsoap2.inc.diff2013-04-18 09:44ahincelin