From: Allan Date: 2006-05-25T10:32:52+09:00 Subject: Ruby Client to Microsoft .Net Webservice ------=_Part_9390_10758475.1148520767583 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline ---------- Forwarded message ---------- From: Allan Date: May 25, 2006 9:31 AM Subject: Ruby Client to Microsoft .Net Webservice To: ruby-talkl@ruby-lang.org Hi all, I am trying to write a client to communicate to Microsft .Net Webservice, and the request contains a array of struct, The request we want should like 2 2 1 1 2 2 However the request we got is 2 2 1 1 2 2 Notice that each element of the array is automaticlly given the title 'item', how can I change it to what I want or let it disapear. my code is like require 'soap/rpc/driver' require 'soap/wsdlDriver' require 'cgi' require 'soap' driver =3D SOAP::RPC::Driver.new(" http://services.spaces.msn.com/contactcard/contactcardservice.asmx ", "http://www.msn.com/webservices/spaces/v1/", "http://www.msn.com/webservices/spaces/v1/GetXmlFeed ") driver.wiredump_dev =3D STDOUT Re =3D Struct.new (:auth1, :auth2) auth =3D Array.new auth1 =3D auth.new(1,1) auth2 =3D auth.new(2,2) Request =3D Struct.new (:authCache, :Mark, :Re) request =3D Request.new(2,2,Re.) driver.add_method('refreshInformation','Request') driver.default_encodingstyle =3D SOAP::EncodingStyle::ASPDotNetHandler::Namespace driver.refreshInformation (request) ------=_Part_9390_10758475.1148520767583--