# Web Services (SOAP) naming conventions

**URL:** <https://www.ruby-forum.com/t/web-services-soap-naming-conventions/103714>\
**Category:** Rails\
**Created:** [May 9, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/web-services-soap-naming-conventions/103714 "2007-05-09T16:39:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![EmilSF](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ad7895/32.png) [@EmilSF](https://www.ruby-forum.com/u/EmilSF)\
**Post date:** [May 9, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/web-services-soap-naming-conventions/103714/1 "2007-05-09T16:39:44Z")

</div>

I’m writing a SOAP server…one that has to implement ‘specific’  
methods that the client will call. One of them is update\_customer.

I implement my method as “update\_customer” (with the underscore) and  
the api signature has the underscore. The problem I’m running into is  
how Rails forces the method to be exposed in the wsdl as  
UpdateCustomer (no underscore), therefore the client doesn’t recognize  
it.

Has anyone run into this or know of a workaround solution?

Thanks all.  
Emil  
San Francisco

---

<div class="post-metadata">

**Author:** ![EmilSF](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ad7895/32.png) [@EmilSF](https://www.ruby-forum.com/u/EmilSF)\
**Post date:** [May 9, 2007, 5:26pm UTC](https://www.ruby-forum.com/t/web-services-soap-naming-conventions/103714/2 "2007-05-09T17:26:04Z")

</div>

EmilSF wrote:

> I’m writing a SOAP server…one that has to implement ‘specific’  
> methods that the client will call. One of them is update\_customer.
> 
> I implement my method as “update\_customer” (with the underscore) and  
> the api signature has the underscore. The problem I’m running into is  
> how Rails forces the method to be exposed in the wsdl as  
> UpdateCustomer (no underscore), therefore the client doesn’t recognize  
> it.
> 
> Has anyone run into this or know of a workaround solution?
> 
> Thanks all.  
> Emil  
> San Francisco

Try

inflect\_names false

in your API class:

class DataLoaderApi \< ActionWebService::API::Base  
inflect\_names false

api\_method :version, :returns =\> [:string]  
end

---

<div class="post-metadata">

**Author:** ![EmilSF](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ad7895/32.png) [@EmilSF](https://www.ruby-forum.com/u/EmilSF)\
**Post date:** [May 9, 2007, 7:02pm UTC](https://www.ruby-forum.com/t/web-services-soap-naming-conventions/103714/3 "2007-05-09T19:02:01Z")

</div>

Thanks so much! That did it.

-emil

On May 9, 8:26 am, wintermute [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![EmilSF](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ad7895/32.png) [@EmilSF](https://www.ruby-forum.com/u/EmilSF)\
**Post date:** [May 9, 2007, 7:09pm UTC](https://www.ruby-forum.com/t/web-services-soap-naming-conventions/103714/4 "2007-05-09T19:09:02Z")

</div>

Thanks so much! That did it.

-emil

On May 9, 8:26 am, wintermute [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
