Displaying 20 results from an estimated 100 matches similar to: "Strange error when testing layered web service"
2005 Dec 31
1
Error when Testing AWS API (ArgumentError: illegal refid http://test.host/login)
OK, I''m finally starting to play around with the AWS part of Rails,
and I''m running into problems with the functional tests. If I use the
generator to create the web service as
./script/generate web_sevice MyTest do_it
and then run the unit tests without further editing the code, I get
the following error:
test_do_it(MyTestControllerApiTest):
ArgumentError: illegal
2005 Aug 23
8
Web Services testing... Agile Book p. 435
I am attempting to test the web services added during chapter 20 of the
Agile book. The code as written in the book yields 2 errors:
test_find_product_by_id(BackendControllerApiTest):
XMLParserError: syntax error
Anyone hit this yet and get it to work?
Thanks.
Ken
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2006 Mar 17
10
good javascript xml parser
Anyone know of a javascript function that will take an xml document and
turn it into an associative array?
Basically it would take something like this:
<body>
<item>
<id>1</id>
<name>Bob</name>
</item>
<item>
<id>2</id>
<name>John</name>
</item>
</body>
And turn it into something like this:
{
2011 May 17
3
xargs with max each line / argument
How do I pass xargs input one line at a time to subsequent command?
For example I want to install rubygems by reading a text file as shown
below, however the arguments are getting passed all at once to the
'gem install' command. I hace tried -L (max-lines) and -n (max args)
options, but it didn't work. What's missing here?? Any help?
$ cat gem.list.1
mkrf
rake
xmlparser
$ awk
2009 Jun 25
2
Bad Form?
Hi,
This is my first post, I wanted to ask a quick question about "Bad Form" --
rather, am I doing something with Mechanise I shouldn''t be doing?
Here''s the long and short of it - I am using Mechanize with Cucumber and
RSpec to test a *ahem* Perl XML web service.. talk about technology soup,
but I have it working quite well.
I have an example project on GitHub that
2008 May 17
5
Help needed
Hi All,
I am new to rspec and it seems that I don''t understand some basics.
I need to have a XML import which should parse through XML data
and saves all that in various mysql tables. The XML part works just
fine and I can test this with rspec. However when I try to execute
it "should find country object for DE" do
I get an error. @user.country is a one-to-many relation in
2012 Feb 28
4
JIRA anyone?
I''m trying to evaluate what use I can make of JIRA with Rails/Ruby and am
getting frustrated.
The jira4r gem will install but the soap4r gem won''t load.
literally: ''irb -r soap4r'' returns :cannot load such file...
I also set this up in a Gemfile and tried to run this from the rails
console:
2006 Feb 01
3
Parsing RDF coming from a URL
Hello,
i''m writing an application that needs geocoding information for locations
outside of the US.
I''m using the brainoff.com geocoding service
mappoint = Net::HTTP.new(''brainoff.com'', 80)
response = mappoint.get(''/geocoder/rest/?city=Gent,BE'')
logger.debug response.body
and the body of the response is in the following form :
<rdf:RDF
2006 May 24
0
webservice integration test?
Hey railers,
I''m a newbie, so excuse me if the answer is obvious. We''re using a layered
dispatch model for our back-end and I''d like to run some integration tests
for things login and session authentication. The integration examples I''ve
seen, however, make get/post calls to controllers and not web services. How
would I do a sess.post w/ SOAP headers? Do I
2005 Dec 30
4
soap4r 1.5.5 seems to break actionWebService tests
Hi,
I just upgraded to soap4r 1.5.5, and now all my Rails Functional tests
for the action_web_services fail as follows, any ideas what I did wrong?
Thanks
TypeError: can''t modify frozen object
/usr/local/lib/ruby/1.8/xsd/qname.rb:78:in `name=''
/usr/local/lib/ruby/1.8/soap/rpc/element.rb:118:in `set_param''
2006 Apr 14
8
Error with Web Service tests after upgrading to Rails 1.1.2
Hello.
I hope this is the right place to describe my problem ?
After upgrading to Rails version 1.1.2 from rails version 1.0.0, Web
Service functional tests seem broken.
I upgraded rails (as the root user / administrator) with:
# gem update rails --include-dependencies
then I upgraded my application (as myself) with:
? rake rails:update
% rake rails:update:configs
After these steps,
2016 Feb 04
3
Pi 2 Alternatives
We have a requirement for a new application that will be used
fixed, portable, and mobile.? The hardware requirements drive
the need for networking as well as some general purpose and
special purpose interfaces.? The software requirements are
quite simple in comparison to many of our much larger systems
with similar hardware requirements.? We are not significantly
restricted in choice of storage
2007 Aug 17
1
Testing webservices in Integration Tests with Jamis Buck's recipe?
Hello,
I''m using Jamis Buck''s recipe to do integration tests on an
application, but I got a nil.recycle! error while doing a webservice
call.
This is the situation.
def test_uploading_data
invoke :upload, data
invoke :upload, even_more_data
real_user_session = new_session_as @real_user
real_user_session.press_magic_button_to_enable_more_uploads
invoke :upload,
2009 Feb 03
1
PowerPoint 2007 filter
Hi,
I'm trying to write the PowerPoint2007 filter in the same manner that I
did for *.docx and *.xlsx but I'm getting the following error when I tru
an index.
The document is called:
Indexing "/Frisk in Power Point.pptx" as
application/vnd.openxmlformats-officedocument.presentationml.presentation ... caution: filename not matched: ppt/notesSlides/notesSlide*.xml
caution:
2006 Jan 30
3
Arrays of objects as parameters to webservices
I think I am missing something terribly obvious. Is it possible to have
an :expects parameter for a webservice that is an array of objects? I
want to have a single webservice that expects all my line items (for an
order). Is this something that is possible?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 23
4
XML parser fixed
Hi, I changed the XML parser who have been write by Greg (Gregory Hill)
and changed some things.
It did not work in IE and Safari and opera.
I fixed some bugs. Now it works fine in IE, Safari, Firefox and Opera.
/* --------------------------------------- */
XMLParser = Class.create();
Object.extend(XMLParser.prototype,
{
initialize: function (XMLFile, options)
{
2006 Dec 04
0
Paypal and soap4r gems
WSDL conversion as proposed in the paypal plugin howto doesn''t work. Any
idea what goes wrong? See the output below.
rsp@hollerith:~/workspace/pptest/vendor/plugins/paypal$ wsdl2ruby.rb
--wsdl http://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl --type client
--force
F, [2006-12-04T16:30:43.136405 #11579] FATAL -- app: Detected an
exception. Stopping ... undefined method `new'' for
2020 Feb 22
1
running .jar files on Centos 7
OT!!!!!
I'm trying to learn to use audio cleanup tools from clickrepair.net.
they're written in Java and distributed as .jar files.
I'm having trouble running them, due, I'm sure, largely to my ignorance.
I have icedtea installed, but it just errors out when I try to use it
to run any of the jar files:
Fatal: Read Error: Could not read or parse the JNLP file. You can try to
2006 Jul 20
6
Ruby on Rails & FastCGI 500 Error
I''m getting an error 500 and I''m at my wits end as to what could be
causing it. I''m sure the path to the ruby executable is correct so what
else could be causing it?
--
Posted via http://www.ruby-forum.com/.
2009 Mar 30
0
Problem with Tomcat
Hi,
Tomcat was running well and suddenly stop of working.
I am using tomcat5-5.5.23-0jpp.7.el5_2.1 on Centos 5.2
/etc/tomcat5/tomcat5.conf looks like as follows:
JAVA_HOME="/usr/lib/jvm/java"
CATALINA_HOME="/usr/share/tomcat5"
JASPER_HOME="/usr/share/tomcat5"
CATALINA_TMPDIR="/usr/share/tomcat5/temp"