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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 FranciscoTry inflect_names false in your API class: class DataLoaderApi < ActionWebService::API::Base inflect_names false api_method :version, :returns => [:string] end -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks so much! That did it. -emil On May 9, 8:26 am, wintermute <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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 > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---