Forum Discussion

soapui_wcf's avatar
16 years ago

SoapUI request to WCF service with MTOM encoding failing - charset problem?

Hello,

I am trying to test a WCF service using MTOM encoding and I get an error when uploading an XML file through SoapUI 2.5.1. I have attached the xml file to the request and the Content type was then automatically set to "text/xml" and Type was set to "XOP". I have set the HTTP Version to 1.1 (tested the others also) and on the request I have set "Enable MTOM" to "true" and "Force MTOM" to "false"

The response I get is:


 
     
        a:InternalServiceFault
        Content-Transfer-Encoding 'quoted-printable' not supported for binary part. Must be 'binary'.
       
           
             
             
              Content-Transfer-Encoding 'quoted-printable' not supported for binary part. Must be 'binary'.
etc...

When I check the request from SoapUI the actual part concerning the file looks like this:

------=_Part_2_29543406.1247746892362
Content-Type: text/xml; charset=Cp1252
Content-Transfer-Encoding: quoted-printable
Content-ID:



 
 
 
    1997-08-21
 

 
    1998-01-14
 

 
    Ombyggnad av skolg=C3=A5rd
 

 
    Ekorren 3
 

 
    B=C3=B6rjes bygg AB
 

 
    Erik Andersson
 

 
      Ans=C3=B6kan godk=C3=A4nd
 

 
      1998-01-06
 

 
   
   
   
 

 
 
 
   
   
     
   

 

   
   
   
     
   

 



I have verified that the file is in UTF-8 so I'm a bit surprised that SoapUI sets charset=cp1252. Can this be why the service thinks it is binary data that is being sent in the file?

Thanks,
Kim