From: james@... Date: 2002-04-06T10:16:49+09:00 Subject: RE: how to make SOAP4R read WSDL files? > > Hi, > > Here at Google, we're about to start offering an API to our > search-engine, so that people can programmatically use Google through > a clean and clearly defined interface, rather than have to resort to > parsing HTML. Sweet. > > As a test, this seemed like a great opportunity to try out SOAP4R. > > I'm not knowledgeable about SOAP at all (I've read a couple of > O'Reillynet articles about it), so I'm probably making mistakes in my > basic assumptions. The SOAP4R documentation is also pretty scant. > > Anyway, the following short program works: > > > However, rather than have to spell all of this out in the program, I > would rather just have SOAP4R read Google's WSDL file. Unfortunately, > nothing I've tried so far will make this work. It's not even clear to > me that this is implemented. > > So, does anyone know how I can reduce much of the detail in the code > by simply having SOAP4R pull it out of a WSDL file? A scan through the soap4r code finds no matches on WSDL. I'm wondering if a method could be added to driver.rb for reading a WSDL source (local file, http, ftp, whatever). The driver would parse each WSDL method definition, calling addMethodWithSOAPAction as it goes. Of course, the devil is in the details: What XML parser to use, how good is the namespace support, how tedious is WSDL-method extraction, handling of the WSDL 'import' element, and so. But if the same information you pass to addMethodWithSOAPAction is in a WSDL file, then it's certainly doable. James > > Ian > -- > Ian Macdonald | But since I knew now that I could hope for > System Administrator | nothing of greater value than frivolous > Google, Inc. | pleasures, what point was there in denying > ian@google.com | myself of them? -- M. Proust > 650.330.0100 x1265 | >