Rails and .net webservices


#1

Hello.
I am novice in ruby.
How can i use .net webservice method from ruby.

Thanks.


#2

I am novice in ruby.
How can i use .net webservice method from ruby.

I’ve used soap4r to access a .net (soap) webservice:
http://dev.ctor.org/soap4r

Some examples of using soap4r:
http://www.pranavbihari.com/articles/2005/12/02/testing-paypal-web-services-with-ruby-soap4r
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/153441


#3

Can anybody write a working code to access to .net websrevice.

I have a simple web service

[WebMethod]
public string HelloWorld()
{
return “Hello!!!”;
}

And i have a ruby code

def HelloWorld
soap_client = ActionWebService::Client::Soap.new(Service1,
http://localhost/WebApplication4/Service1.asmx”)
soap_client.default_encodingstyle =
SOAP::EncodingStyle::ASPDotNetHandler::Namespace
soap_client.HelloWorld()
end

Is it correct?? Where can i write it??? Help please.

Thanks a lot.