首页 文章

Oracle Service Bus - 不支持从MIME Content-Transfer-Encoding = '7bit'解码MIME附件

提问于
浏览
0

我在OSB 12c中开发了一个启用了MTOM的代理服务

我可以成功发送二进制文件为pdf,doc,ppt或xls,但是一旦发送文本文件,就会出现以下错误:

请求:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:upl="http://UploadFileService.acme/">
   <soap:Header/>
   <soap:Body>
      <upl:scanDocRequest>
         <requestMsg>
            <doc>cid:719461305114</doc>
         </requestMsg>
      </upl:scanDocRequest>
   </soap:Body>
</soap:Envelope>

soap-ui settings

响应:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
   <soap:Body>
      <con:fault xmlns:con="http://www.bea.com/wli/sb/context">
         <con:errorCode>OSB-382118</con:errorCode>
         <con:reason>Decoding of MIME attachments from MIME Content-Transfer-Encoding='7bit' not supported</con:reason>
         <con:location>
            <con:node>AntivirusPipelinePairNode</con:node>
            <con:pipeline>request-a00020f.N696e5fe3.0.15143454755.N8000</con:pipeline>
            <con:stage>ReportingIn</con:stage>
            <con:path>request-pipeline</con:path>
         </con:location>
      </con:fault>
   </soap:Body>
</soap:Envelope>

响应失败了

不支持从MIME Content-Transfer-Encoding ='7bit'解码MIME附件

1 回答

  • 1

    Content-type = application / octet-stream而不是plain / text解决了我的问题

相关问题