From: Hasham Date: 2007-08-01T21:40:04+09:00 Subject: Re: Using .Net SOAP service Thanks Ben, I finally figured out the problem i had to pass arguments as hash like this: puts driver.GetVals(:parameter => "136") On Aug 1, 10:25 am, Ben Burkert wrote: > Try putting the '136' in a SOAP::SOAPString or SOAP::SOAPInt: > > p driver.GetVals(SOAP::SOAPString.new("136")) > or > p driver.GetVals(SOAP::SOAPInt.new(136)) > > If that doesn't work, i try using the wsdl2ruby generator to create > the class stubs. It will create a class for each parameter. In your > case, it will be something like: > > p driver.GetVals( GetVals.new(SOAPString.new("136"))) > > -Ben > > On Aug 1, 2007, at 12:00 AM, Hasham wrote: > > > Hi, > > > I am getting this error while trying to access .NET based SOAP Web > > service > > > #: > > System.Web.Services.Protocols.SoapException: Server was unable to > > process request. ---> System.NullReferenceException: Object reference > > not set to an instance of an object. (SOAP::FaultError) > > > My code to access this service is: > > > require 'soap/wsdlDriver' > > wsdl = 'http://www.dotnetsite.com/MyService/Service.asmx?WSDL > > driver = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver > > puts driver.GetVals('136') > > > I have tried many things but still i am not able to get this code > > working. Please tell what should i do to get this working