# Web Service (server) and file\_column issues

**URL:** <https://www.ruby-forum.com/t/web-service-server-and-file-column-issues/99020>\
**Category:** Rails\
**Created:** [July 19, 2006, 8:46pm UTC](https://www.ruby-forum.com/t/web-service-server-and-file-column-issues/99020 "2006-07-19T20:46:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daveh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/85e7bf/32.png) [@daveh](https://www.ruby-forum.com/u/daveh)\
**Post date:** [July 19, 2006, 8:46pm UTC](https://www.ruby-forum.com/t/web-service-server-and-file-column-issues/99020/1 "2006-07-19T20:46:37Z")

</div>

Hi there,

I’m having some issues with using SOAP and file\_column. The Web service  
I  
created is pretty straight forward. It gets the 5 most recently updated  
members from the database. Nothing too spectacular. However, the Members  
class uses file\_column and when I try to connect to my web service I get  
this error:

TypeError in Connect to serviceController#display\_recent\_updates  
Do not know how to handle a string with value  
‘/Users/dhoefler/Projects/apps/rover/public/member/image\_path/147/866786797\_l.jpg’  
that was passed to a file\_column. Check if the form’s encoding has been  
set  
to ‘multipart/form-data’.

My web service API looks like the following for my server app:  
api\_method :find\_members\_recently\_updated, :returns =\> [[Member]]

And here’s how I call the service from my client app:

def display\_recent\_updates  
XSD::Charset.encoding = ‘UTF8’  
wsdlfile = “[http://localhost:3000/community/wsdl](http://localhost:3000/community/wsdl)”  
driver = SOAP::WSDLDriverFactory.new(wsdlfile).create\_rpc\_driver

```
@result = driver.FindMembersRecentlyUpdated

```

end

I have about 30 columns in my members table, but I’d prefer to return  
only a  
few columns (nickname, email\_address, the URL of their thumbnail image,  
updated\_at). I don’t want to expose all the columns through the web  
service.

Any ideas?

Thank you,  
Dave H.
