From: Patrick Chanezon Date: 2005-07-16T02:56:19+09:00 Subject: Re: soap4r mapping problem when using google adwords api ------=_Part_3035_25045201.1121450174832 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Yeah! Your fix works fine! I tested it with the campaign service this morning and it worked like a=20 charm. Thanks very much Hiroshi. I'll run more tests in the next week, with other AdWords API calls. Thanks very much for the fix. I'll study the diffs to try to better=20 understand how soap4r works. P@ On 7/14/05, NAKAMURA, Hiroshi wrote: >=20 > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > Hi Patrick, >=20 > Patrick Chanezon wrote: > > The Google Adwords sample that Nahi included in the samples at > >=20 > http://dev.ctor.org/soap4r/file/trunk/sample/wsdl/googleAdwords/client.rb > > does not work. > > > > In the course of fixing it I ran into a roadblock. > > Here's my current fix. I highlight the problems I have fixed, and > > areas where I'm not very happy with the fix I found. >=20 > > #problem: wiredump_dev does not output anything when running in SSL mod= e > > drv.wiredump_dev =3D STDOUT > > #the file based logger works > > drv.wiredump_file_base =3D "log" >=20 > Right. >=20 > > drv.headerhandler << HeaderHandler.new('email', 'patlist@chanezon.com') > > drv.headerhandler << HeaderHandler.new('password', 'your_password_here'= ) > > drv.headerhandler << HeaderHandler.new('useragent', 'P@ playing with > > the API from ruby') > > drv.headerhandler << HeaderHandler.new('token', 'your_token_here') > > camplist =3D drv.call("getAllAdWordsCampaigns", GetAllAdWordsCampaigns.= new > (123)) > > print camplist > > --- > > > > When I run that with a valid adwords developer account, the call is > > made and the correct repsonse is sent back, as seen in the filke log. > > However the mapper barfs. >=20 > Thank you for accurate report. With the response SOAP XML instance you > posted I could easily reproduced the problem. With default.rb generated > by wsdl2ruby.rb, SOAP Data which is defined as simpletype + restriction > was not be able to map correctly. >=20 > I think I fixed this problem at svn repository. Would you please try it > at your leisure? It still may have other problems but I want to fix > those and let soap4r interoperable with AdWards service. >=20 > Regards, > // NaHi > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.0 (Cygwin) >=20 > iD8DBQFC1mU1f6b33ts2dPkRAun7AJsFypg6KH6ecwk0K5rDobSDqoXyyQCfQgU6 > bIkOrAA9Oo7x34jj+bIfLaY=3D > =3D89kd > -----END PGP SIGNATURE----- > ------=_Part_3035_25045201.1121450174832--