# MTOM problem

**URL:** <https://www.ruby-forum.com/t/mtom-problem/111185>\
**Category:** Rails\
**Created:** [August 3, 2007, 5:10pm UTC](https://www.ruby-forum.com/t/mtom-problem/111185 "2007-08-03T17:10:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![el2king](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/f08c70/32.png) [@el2king](https://www.ruby-forum.com/u/el2king)\
**Post date:** [August 3, 2007, 5:10pm UTC](https://www.ruby-forum.com/t/mtom-problem/111185/1 "2007-08-03T17:10:33Z")

</div>

I am trying to access a WSDL file directly in my Ruby. I have no  
problems accessing the WSDL and sending a request to the web service  
linked to the WSDL, but I am having a problem sending an MTOM attachment  
to the service. In my Ruby code, I specify a parameter with an object  
of type File:

“Attachment” =\> File.new()

However, when I look at the SOAP message created, the AttachedObject  
parameter is empty. Does anyone know if Ruby (specifically, SOAP4R) has  
full MTOM support? Thanks!
