I'm using Rails 1.2.3 on a project. ( Upgrading rails is not an option ). I've created a simple test web-service using Rails. I've tested using the Rails invoke scaffold. It seems to generate the response with no problems.
I'm trying to setup a client via .NET. I've created an ASP.NET Web App project in C#. I am adding a "Web Reference", add the Reference URL into the URL field of the wizard,
http://mydomain.com:3000/backend/api
then I receive an error from the wizard:
There was an error downloading 'http://mydomain.com:3000/backend/api' The request failed with the error message:
GET not supported
There was an error downloading 'http://mydomain.com:3000/backend/api/$metadata' The request failed with the error message:
GET not supported
My code is:
# in app/apis/address_api.rb
class AddressApi < ActionWebService::API::Base
api_method :gettest, :returns => [:string]
end
# in app/controllers/backend_controller
class BackendController < ApplicationController
wsdl_service_name 'Backend'
web_service_api AddressApi
web_service_scaffold :invoke
def gettest
return "hello"
end
end
Are there any known issues between ActionWebService and .NET or am I doing something wrong? Is my URL correct for a rails web-service?