search for: actionwebservice

Displaying 20 results from an estimated 303 matches for "actionwebservice".

2006 Mar 28
11
ActionWebService date casting error
I have defined a web service to return information from a database as follows. class BackendApi < ActionWebService::API::Base api_method :find_all_vobs, :returns => [[:int]] api_method :find_vob_by_id, :expects => [:int], :returns => [Vob] class BackendController < ApplicationController wsdl_service_name ''Backend'' web_service_scaffol...
2006 Jun 07
1
Web Service: NoMethodError (missing attribute: featured) !?!?!?!?!
...;1.0" ?><methodCall><methodName>player.find_by_id</methodName><params><param><value><i4>99</i4></value></param></params></methodCall> NoMethodError (missing attribute: featured): /usr/local/lib/ruby/gems/1.8/gems/actionwebservice-1.1.2/lib/action_web_service/casting.rb:125:in `cast_to_structured_type'' /usr/local/lib/ruby/gems/1.8/gems/actionwebservice-1.1.2/lib/action_web_service/support/signature_types.rb:206:in `each_member'' /usr/local/lib/ruby/gems/1.8/gems/actionwebservice-1.1.2/lib/action_we...
2006 May 02
1
SOAP client not seeing all of my AWS service methods
Hi all, Ruby 1.8.4 Rails 1.1.2 I''m a newb when it comes to SOAP, but I thought I''d give it a shot. I have several web services defined. However, when I try to connect with a SOAP client it seems the client is only picking up one of the services, called Hardware. require ''soap/wsdlDriver'' wsdl_url =
2005 Dec 30
4
soap4r 1.5.5 seems to break actionWebService tests
....8/xsd/qname.rb:78:in `name='' /usr/local/lib/ruby/1.8/soap/rpc/element.rb:118:in `set_param'' /usr/local/lib/ruby/1.8/soap/rpc/element.rb:116:in `each'' /usr/local/lib/ruby/1.8/soap/rpc/element.rb:116:in `set_param'' /usr/local/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0/lib/action_web_service/protocol/soap_protocol.rb:78:in `encode_request'' /usr/local/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0/lib/action_web_service/test_invoke.rb:55:in `encode_rpc_call'' /usr/local/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0/lib/action_web_serv...
2006 Jul 31
5
ActionWebService API
Hi *, I need to pass a hash to a webservice, so I defined my API with: api_method :search, :expects => [{ :tags => :string, :assignment => :string, :resource => :string, :lesson_plan => :string, :subject => :string, :all_types => :string }], :returns => [[Resource]] when I try to test the webservice with scaffold the
2006 Apr 06
2
Directory for ActionWebService classes?
Hi all, If ApplicationController subclasses live in app/controllers, and ActionWebService::API::Base subclasses live in app/apis, do subclasses of ActionWebService::Base live in app/services? This may be a "duh" question, but I couldn''t find an explicit mention of it anywhere. Thanks, Dan
2005 Feb 24
8
web services with ActionWebService
<noobalert> Uh, yeah. So my noob self is showing through again. I''m trying to write a simple hello-world type web service with the ActionWebService thingy. I didn''t get very far. I''ve only done web services stuff in .NET, so I''m not exactly used to this sort of thing. Anyhow, I have a file, person_api.rb in my app/apis folder. I want to take a single string as a parameter, and return an array of strings. I'&...
2005 Jul 25
2
ActionWebService woes
I''m currently writing an app that provides a Web Service. I''ve got a model Header and an associated has_one HeaderImage and I''m trying to find a way to make this data available. Defining a normal API: api_method :header, :expects => [{''id'' => :int}], :returns => [Header] Only returns the header object without associations, has anyone got
2005 Mar 08
2
ActionWebService SOAP Faults aren''t schema valid
I''m working with an ActionWebService client talking to an ActionWebService server through one of DataPower''s XS40 XML Security Gateways. One of the intrinsic functions of this gateway is automatic SOAP schema validation. When testing some failure cases, I noticed that SOAP Faults returned by ActionWebService aren''t...
2006 Apr 11
9
Rails failure after upgrade to 1.1.2
...the same result. Below I included the full trace when trying to reach the app. Line 3 in application.rb is : class ApplicationController < ActionController::Base Any hints on where I might be going wrong is much appreciated, /kristofer --Full trace from browser-- /usr/lib/ruby/gems/1.9/gems/actionwebservice-1.1.2/lib/action_web_service/container/action_controller_container.rb:66:in `match'' /usr/lib/ruby/gems/1.9/gems/actionwebservice-1.1.2/lib/action_web_service/container/action_controller_container.rb:66:in `require_web_service_api'' /usr/lib/ruby/gems/1.9/gems/actionwebservice-1.1.2...
2006 May 19
1
Getting a list of available methods from ActionWebService
Hi all, I dug around a bit, may have missed it. Is there a method automatically generated by ActionWebService (or XMLRPC::Server) that a client can use to list all available service methods (perhaps along with docs)? Or do I have to roll that myself? Thanks, Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is...
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 when I try to invoke an action on the web service I get the following error: : No Deserializer found to deserialize a ''urn:rocis-ws-pra-service...
2006 Jan 06
0
Rails ActionWebService and gSOAP interoperability problem
...g method name!): > /opt/local/lib/ruby/1.8/xmlrpc/parser.rb:478:in `parseMethodCall'' > /opt/local/lib/ruby/1.8/xmlrpc/marshal.rb:63:in `load_call'' > /opt/local/lib/ruby/1.8/xmlrpc/marshal.rb:32:in `load_call'' > /opt/local/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0/lib/ > action_web_service/protocol/xmlrpc_protocol.rb:36:in `decode_request'' > /opt/local/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0/lib/ > action_web_service/protocol/xmlrpc_protocol.rb:32:in > `decode_action_pack_request'' > /opt/local/lib/ruby...
2006 Jan 07
0
gSOAP and ActionWebService interop problems
...method call - missing method name!): /opt/local/lib/ruby/1.8/xmlrpc/parser.rb:478:in `parseMethodCall'' /opt/local/lib/ruby/1.8/xmlrpc/marshal.rb:63:in `load_call'' /opt/local/lib/ruby/1.8/xmlrpc/marshal.rb:32:in `load_call'' /opt/local/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0/lib/action_web_service/protocol/xmlrpc_protocol.rb:36:in `decode_request'' /opt/local/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0/lib/action_web_service/protocol/xmlrpc_protocol.rb:32:in `decode_action_pack_request'' /opt/local/lib/ruby/gems/1.8/gems/actionwebservi...
2006 Jun 07
0
Logger in ActionWebService::Base?
I''d like to split up my directly dispatched controller into a layered dispatch setup with one controller and two services derived from ActionWebService::Base. However, in doing this I found that logger is not a class_variable of AWS::Base. This kind of scares me away from using the layered dispatch mode, as I''d like to have logging in the method implementations. Is there a clean way of accessing the Rails::Configuration logger from Action...
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 =>:string},{:pass =>:string}], :returns => [{:responsecode =>:string}] end backend_controller.rb class BackendController < ApplicationController wsdl_service_name ''Backend''...
2005 Apr 19
3
Rails 0.12.0 / ActionWebService 0.7 bug?
Hi, Just upgraded to Rails 0.12.0 and ActionWebService 0.7. I''m using the special struct class to create custom structs. In version 0.6.2 I was able to receive nil values for members of the struct. As of version 0.7 all nil values seem to be rewritten to some default value (empty string for string member, 0 for int etc.), which breaks my a...
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...
2006 Apr 26
0
Re: gSOAP and ActionWebService interop problems
...t with gSOAP, but with Apache''s SOAP library. Just like Guido, XML-RPC works perfectly, but the SOAP request processing fails during protocol discovery. Rail''s SOAP client also works perfectly, so I''m fairly certain the error is not in my code. I am new to both ActionWebService and the Ruby XMLRPC module, so I''m not quite sure what is supposed to be going on in Protocol::Discovery::InstanceMethods#discover_web_service_request. However, it seems that it expects Protocol::XmlRpc::XmlRpcProtocol#decode_action_pack_request to return nil in the case that th...
2006 Apr 17
7
Should Perl talk to Rails via LWP
Hi folks, I need your opinions on a basic design issue. I''ve seen the light of RoR and have replaced my Perl (DBI/CGI) based web server <-> RDBMS communication with RoR, but I still have a whole host of users (other servers/OS''s etc) out there wanting to talk to my RDBMS and they only talk Perl. Also they don''t want to talk Perl/DBI directly (they are not allowed