search for: googlesearch

Displaying 5 results from an estimated 5 matches for "googlesearch".

2006 Dec 21
4
Stubbing Kernel#open
...test code, and the failures: body = File.open(File.dirname(__FILE__) + ''/../fixtures/google_search_california.html'').read Object.any_instance.expects(:open).with(''http://www.google.com/search?q=california'').returns(stub(:body => body)) @response = GoogleSearch.new(''california'') assert_equal body, @response.body 1) Failure: test_new(GoogleSearchTest) [(eval):1:in `open'' /Users/kev/code/vanna/config/../lib/google_search.rb:5:in `initialize'' ./test/unit/google_search_test.rb:7:in `test_new'']...
2006 Jun 27
0
Calling SOAP based Web Services over SSL
...******************************* which I was told was because the factory could not resolve the https. As a test to ensure that i could write something that would talk soap I created a call to google that looked like this: ******************************************************************* def googleSearch soap_client = SOAP::WSDLDriverFactory.new("http://api.google.com/GoogleSearch.wsdl") driver = soap_client.create_rpc_driver driver.generate_explicit_type = true query=params[:query] key = "this is the place for my key" @retVal = driver.doGoogleSearch(key...
2005 Dec 21
1
ActionWebService and WSDL
The suggested approach for developing a web service using ActionWebService appears to be start by defining the API you want and then you can generate WSDL. I want to start from WSDL. I''ve tried wsdl2ruby but the Ruby code it generates does not appear to play well with Rails. Is there a way I can get what I want? I''m new at this so if the answer is a forehead slapper,
2010 Aug 08
5
Can I run program that needs to open a port?
...lltion. The same thing happens when I try to create a new photobook (some less important functionality). Is there some way which I can allow for wine to use this port on my Ubuntuinstalltion so the program will function? (Please forgive me if this is a duplicate post, I have really tried to browse/googlesearch the forums and maillists to avoid it). Thank you for your time and assistance in this matter! With kind regards /JavaRat
2005 May 31
2
Rails Web Services
This deals with the Rails book, but ActionWebService in general. I''m having trouble getting the Rails book''s example in the Web Service chapter working. Everything else works (all the ''depot'' site features up to that point have been built and work). I don''t think it''s an issue with the book code being wrong, because the ActionWebService API