[Rails] How to consume Asp.net web service in ruby on rails
Guys i m new to Ruby on rails ,
Task - i m trying to consume a webservice in ruby on rails and this web
service is made in asp.net .
my controller code is through which i m trying to consume webservice is
-
class WebserviceController < ApplicationController
def getMsg
hello_client = ActionWebService::Client::Soap.new(HelloWorld,
"http://localhost:50739/WebService/RubyConsumeIt.asmx/HelloWorld")
@service_output= hello_client.getMsg(params[:name])
end
end
and this is my controller view -
<html>
<head>
<title>Hello Web Service</title>
</head>
<body>
<h1>Hello Web Service </h1>
<p>
</p>
<p>
<%= @service_output %>
</p>
</body>
</html>
and i m getting an error -
uninitialized constant ActionWebService
please help , if there is any sample code to consume asp.net webservice
in
ruby on rails . it will be much appreciated.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home