Forum: Ruby on Rails rails - web service - method name formatting problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
124d2d6c478b716268fb894e1bee86a7?d=identicon&s=25 Steven S. (sshingler)
on 2006-06-13 11:16
Hi all,

I'm using AWS to consume a web service written in Java.

I set up the API class with:

api_method :extractName, :expects => [{:arg0 => :string}], :returns =>
[:string]

Note the lowercase 'e' of the method name - (because the service is
written in Java :))

My problem is that when this goes out across http, it becomes formatted
as "ExtractName" - with an uppercase 'E'

Is there an option I can pass to the Generator to control this change to
the method name AWS is making?

My generator looks like this:

web_client_api :eewindow,
               :soap,
               "http://the.java.web.service",
               :namespace => "http://the.java.namespace",
               :driver_options => {:default_encodingstyle =>
SOAP::EncodingStyle::SOAPHandler::Namespace}

I have tried the other default_encodingtyle choices, to no avail. How
can I find out what other possible options can be passed in?

Am on Windows XP, Rails 1.1.2, Ruby 1.8.2, actionwebservice gem 1.1.2

I hope that is clear - any advice gratefully received,

Many Thanks,
Steven
124d2d6c478b716268fb894e1bee86a7?d=identicon&s=25 Steven S. (sshingler)
on 2006-06-13 11:25
Actually - I just noticed AWS is also spitting out the w3 schema
definition - Possibly w3 guidelines state that method names should all
be uppercase?
This topic is locked and can not be replied to.