This is great but my first thought is to use the wrapper function name: "google"
instead of "do-google-search" You could probably also use google with refinements for additional features... rishi --- Maarten Koopmans <[EMAIL PROTECTED]> wrote: > I second this. Anybody coding ;-) > > > >Here's how web services could be supported by REBOL > : > > > >* code example : > > > >service: open > soap://api-ab.google.com/search/beta2/GoogleSearchService > >res: insert service [ doGoogleSearch [ > > key: #00000000000000000000000000000000 > > q: "shrdlu winograd maclisp teletype" > > start: 0 > > maxResults: 10 > > filter: true > > restrict: none > > safeSearch: false > > lr: none > > ie: 'latin1 > > oe: 'latin1 > >]] > >close service > > > >* Of course a short 'read call should also be > possible : > > > >res: read > soap://api-ab.google.com/search/beta2/GoogleSearchService > [ > > doGoogleSearch [ > > key: #00000000000000000000000000000000 > > q: "shrdlu winograd maclisp teletype" > > start: 0 > > maxResults: 10 > > filter: true > > restrict: none > > safeSearch: false > > lr: none > > ie: 'latin1 > > oe: 'latin1 > > ] > >] > > > >I like this one a lot! :-) > > > >* all XML stuff should be kept hidden in the 'soap > scheme. > > > >* on opening the 'soap port, port/locals will be > loaded with all available > >methods found in the WSDL file. The functions > "spec" could be stored like > >this : > > > >>>probe service/locals > >>> > >[ > > doGoogleSearch [ > > key string! > > q string! > > start integer! > > maxResults integer! > > filter logic! > > restrict string! > > safeSearch logic! > > lr string! > > ie string! > > oe string! > > ] > > doGetCachedPage [...] > > doGetSpellingSuggestion [...] > > > >] > > > >or if you prefer : > > > >[ > > Do-Google-Search [...] > > Do-Get-Cached-Page [...] > > Do-Get-Spelling-Suggestion [...] > >] > > > >Maybe we could also use 'help to pretty print these > infos. > >(>> help service) > > > >* The 'soap scheme should also take care of > arguments conversion. > >For example : > > > >key: #000... => string! => "000..." > >restrict: none => string! => "" > > > >* if you want a wrapping func in the global > context, just do : > > > >Do-Google-Search: func [data [block!]][ > > read > soap://api-ab.google.com/search/beta2/GoogleSearchService > reduce ['doGoogleSearch data] > >] > > > >My 0,02eu... > > > >-DocKimbel. > > > > > >Carl Sassenrath wrote: > > > >>I think it's good to invent some smart way to make > Web Services easier via REBOL. So, that's the best > way to get > >>there from here? For example: > >> > >>REBOL Google search: > >> > >>Do-Google-Search [ > >> key: #00000000000000000000000000000000 > >> q: "shrdlu winograd maclisp teletype" > >> start: 0 > >> maxResults: 10 > >> filter: true > >> restrict: none > >> safeSearch: false > >> lr: none > >> ie: 'latin1 > >> oe: 'latin1 > >>] > >> > >>XML SOAP Google search: > >> > >[...] > > > >>Your thoughts? > >> > >>-Carl > >> > > > -- > To unsubscribe from this list, please send an email > to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. > __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
