From: Tim Perrett Date: 2007-03-05T01:27:57+09:00 Subject: Solution consuming .NET SOAP service Hey all I have been trying to consume a .NET exposed web-service with soap4r and have found some things that might help others when doing the same thing Oddly, soap4r interprted the following WSDL As only having the one paramater, inAccountID. So to get around this and pass all three params as a struct object like this: soap = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver Request = Struct.new(:inAccountID, :inUsername, :inPassword) soap.GetAllProperties(Request.new('2', 'test', 'test')) And as its a .NET WS, i had to employ the following also: soap.default_encodingstyle = SOAP::EncodingStyle::ASPDotNetHandler.new Hope this helps somone Tim -- Posted via http://www.ruby-forum.com/.