Displaying 20 results from an estimated 9000 matches similar to: "Rspec, Puppet Custom Functions and Mocking.."
2011 Dec 13
1
Puppet integration with SecretServer (Thycotic)
I''ve done some more development on my Puppet module that handles password integration with Secret Server from Thycotic, and now it handles certificates as well.
This allows you to have a ''password'' define that ensures the password is stored in SecretServer, and changes it on a regular basis:
password { ''root'': maxage=>60; }
password {
2006 Jan 31
0
webservice problem (cant make client)
hey, i have made a webservice
http://twodecode.pilot.localhost.be:3000/backend/wsdl
here i can see the wsdl file
i have a method string Authenticate(string twa, string login, string pass)
when i do /invoke i can test it, this all works
backend_api.rb
class BackendApi < ActionWebService::API::Base
api_method :authenticate,
:expects => [{:twa =>:string},{:login
2007 Jul 31
0
wsdlDriver won't run under Rails (SSL)
I have a wsdl client that will work standalone but as soon as I put
identical code into a Rails controller I get an Errno::ECONNREFUSED
#(Connection refused -connect(2)...) Any ideas?
=======================
||Standalone: (works) ||
=======================
require ''soap/wsdlDriver''
require ''http-access2''
user = ''fwkaufm''
wsdl
2008 May 09
1
SSOAP: arguments passed as
Hi,
I have a SOAP service, provided by BioMoby
which I'd like to call via SSOAP.
My service breaks during genSOAPClientInterface()
genSOAPClientInterface(def=service, verbose = TRUE)
Operation MassBank_Simple_2
Error: Cannot resolve SOAP type in empty context
Problem seems to be that there are no <types> defined in the WSDL,
and that the service passes input/output as a single
2006 Sep 06
0
soapenc:base64 and xsd:base64Binary
Hello guys,
I have a little mix in all those webservices and wsdl files and all
this things, and I have maybe a strange question.
I''m trying to consume webservice from different webservice
implementation than ror. And I there is one thing from ror regenerated
wsdl file. Method parameter defined by :base64 type is defined in wsdl
as ''soapenc:base64''. My question is, why
2008 Oct 23
4
Soap4R
The following two line code creates the issue:
factory =
SOAP::WSDLDriverFactory.new("http://aspire388:8080/ClubConcierge306/axis/LWFlowerService?wsdl")
soap = factory.create_rpc_driver
The error message is:
part: requestParams cannot be resolved
RAILS_ROOT: E:/Pavo/csat
Application Trace | Framework Trace | Full Trace
c:/ruby/lib/ruby/1.8/wsdl/soap/methodDefCreator.rb:144:in
2010 Jun 22
0
Working cludge [Re: SSOAP fails with .types[[1]] : subscript out of bounds]
Hi,
so, last post from here unless I can provide any more input
to fix the upstream package.
On Tue, 2010-06-22 at 10:02 +0200, Steffen Neumann wrote:
> So I got a bit further, the reason for the error is
> that the WSDL *does not have* any <wsdl:types>...</wsdl:types>,
I created a local copy and inserted a dummy
<wsdl:types>...</wsdl:types> element.
Then, my
2006 Jan 26
3
Calling a SOAP service from within a Rails controller
The following works fine as a standalone ruby program:
**********************************************************************************************
t = Time.now
starter = Time.local(t.year,t.mon, t.day) + (24 *3600)
ender = starter + 7 * 24 *3600
lat = 40.352039
lon = -74.191961
require ''soap/wsdlDriver''
params = {:maxt => false, :mint => false, :temp => true, :dew
2011 Jul 20
1
SSOAP & chemspider
Dear all,
I've been trying on and off for the past few months to get SSOAP to work with chemspider. First I tried the WSDL file:
cs<-processWSDL("http://www.chemspider.com/MassSpecAPI.asmx?WSDL")
Error in parse(text = paste(txt, collapse = "\n")) :
<text>:1:29: unexpected input
1: function(x, ..., obj = new( ?
^
In addition:
2008 Jul 01
0
Mocking global variables in rspec
What''s the best way to mock global variables in rspec?
For the model group I would like database interaction.
For the controller group I would like to mock the behavior.
However it''s failing in the ExampleGroup and defining a before(:all)
is overkill since I only require db transaction for the model test.
Any ideas?
Thanks in avance :)
2009 Jun 24
1
Qualified parameters in SOAP body using .SOAP
Hello,
I am trying to reach a web service using the SOAP package. I succeeded
calling the web service, but not sending parameters to it. After much
research and tries, I think I found that the problem lies in the
namespace including the parameters in the SOAP body.
In short, my question is: how can I send unqualified parameters in the
SOAP body of a call produced through the SOAP package?
2006 Jun 27
0
Calling SOAP based Web Services over SSL
Ok, here we go.
1) I am trying to talk to a soap web service @ the url
https://rsvcstage.e2ma.net/emmaTestCalls
2) I can talk to the web service in plain ruby if I:
2.1) disable site ruby (by renaming the site_ruby directory to
something else)
2.2) use the WDSLDriverFactory instead of an actionwebservice
The working ruby code looks like this:
2010 Jun 10
1
RSpec 2: uninitialized constant - mocking belongs_to AR relation
gems/ruby-1.9.2-head/bundler/gems/rspec-
core-2398fcadf5beb256bed9c548c59445d3b4c8a047-master/lib/rspec/core/
backward_compatibility.rb:26:in `const_missing'': uninitialized
constant Message::User (NameError)
from /Users/kristianconsult/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rspec-expectations-996c752171a0a0e16347e934dadc25767e31186c-master/lib/
2010 Sep 23
0
rspec problems mocking classes based on mongoid
I am getting errors when running my rspecs.
My project uses rails 3, mongoid, factory_girl, rspec 2.0.0.beta.22,
rspec-mocs, etc
http://pastebin.com/raw.php?i=WkaGiFag
Getting: Failure/Error: @product = assign(:product,
stub_model(Product, undefined method `to_sym'' for nil:NilClass
I''m pretty sure stub_model has no clue on how to handle objects based
on mongoid.
Any ideas?
2006 Apr 07
2
ActionWebService and namespaces
Hi all,
I''ve tried to search the mailing list, web, etc. and haven''t found
anything that seems to answer my question.
I have a WSDL for a web service written in Java, and I''m trying to
consume it in ruby using ActionWebService. I''ve created my API and some
struct classes. I''ve found the :namespace option to
ActionWebService::Client::Soap.new, but
2012 Mar 28
0
Performance for SOAP and HTTP
Hi everyone, I hope someone can help me with the following problem.
I want to issue SOAP request from rails to connect to a legacy system
in the backend. First I tried savon as a SOAP client. Everything
worked fine, but the performance was bad. The following code
client = Savon::Client.new
client.http.headers["Content-Type"] = "application/soap+xml;
charset=utf-8"
2012 Jun 11
0
SSOAP Parameter Structures: Nested Arrays
Dear list,
I've been using R for a while, but am new to web services. I'm a relatively
novice programmer; advance apologies for incorrect terminology.
I'm trying to send queries and get results back from a SOAP server, using
the SSOAP package. My code contains sensitive API keys and URLs, and
unfortunately I'm unable to share it uncensored. I have not been able to
reproduce the
2005 Mar 02
0
Re: AWS Client Usage
On Wed, 2 Mar 2005 11:51:51 -0600, Chris Brinker
<chris.brinker-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> I was talking on #rubyonrails some more and they seem to think that
> the model classes have to be copy and pasted/available to the
> ruby:client, in addition to the api. I find this advice a little odd
> considering .Net and apparently ColdfusionMX need no such
2007 Nov 12
1
Microsoft SOAP - Help!!
Hello,
I am trying to access Microsoft Live Search Using SOAP through R.
In R I am using the RCurl packages to make the calls.
I have the following situation that looks crazy and cannot figure out how to
solve it:
#SOAP Request
library(RCurl)
h = basicTextGatherer()
body='<?xml version="1.0" encoding="ISO-8859-15"?>
<SOAP-ENV:Envelope
2007 Jul 16
4
RSpec - concerns about mocking
I''m getting into RSpec more after getting the awesome Peepcode
screencast about it. So far I love it, but coming form Test::Unit with
Rails, I have some concerns about the recommendation to mock models and
database calls in controller and view specs.
Lets say you have a method on your User model called
User.find_activated, and you have models specs for it. Then in your
controller specs