How to pass NULL value for integer/fixnum type in ruby for SOAP request -
i need invoke method getquotedata() through soap request using parameters:
username, password, id, revnum
revnum revision number of data fetching. can have values ... 1,2,3... , on. if pass null value it, latest data.
how can initialize integer null value in ruby method call? method call not work if pass nil revnum or if not send parameter. below our sample method call:
getquotedata(:username => user, :password=> pass, id => "xks32", revnum=> 0) the wsdl definition of method is:
<s:element name="getquotedata"> <s:complextype> <s:sequence> <s:element minoccurs="0" maxoccurs="1" name="username" type="s:string" /> <s:element minoccurs="0" maxoccurs="1" name="password" type="s:string" /> <s:element minoccurs="0" maxoccurs="1" name="cartcompositenumber" type="s:string" /> <s:element minoccurs="1" maxoccurs="1" name="revnum" nillable="true" type="s:int" /> </s:sequence> </s:complextype> </s:element> thanks suggestions
Comments
Post a Comment