Displaying 20 results from an estimated 7000 matches similar to: "Returning related models with ActionWebService"
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 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 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 schema valid
to the SOAP 1.1 schema, specifically:
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
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''
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
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
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 application. Is this
a bug or a feature?
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,
2006 Mar 31
2
How to secure web services created by ActionWebService?
Hi,
Does anyone know how I can go about securing web services created from
ActionWebService? The manual from rubyonrails.org
(http://manuals.rubyonrails.com/read/book/10) doesn''t say anything at
all on this ... or do I have to implement my own access control?
--
Sau Sheong
http://www.saush.com
http://read.saush.com
http://jaccal.sourceforge.net
-------------- next part
2008 Nov 24
2
Actionwebservice as a SOAP client to .NET services.
I have read the (scant) documentation on the datanoise
actionwebservice gems and can''t figure out how you are supposed to
structure the SOAP client.
Has anybody ever used actionwebservice as a client? If so could
somebody please put a sample someplace?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
2009 Feb 26
1
Problem w/ActionWebService and Inheritance in Service Params
I have a service method that takes a PaymentMethod which can either be a
CreditCard or a PayPal account. When I request the service and pass one
or the other it always comes over as a PaymentMethod; the service
doesn''t seem to know that the parameter is really a CreditCard or
PayPal. Here''s some sample code that illustrates what I''m talking about
more concretely:
2006 Jul 28
3
ActionWebService Struct member name including ''-''
Hi
I am tryng to mirror a locked away, secure web service for testing
purposes and am almost there. Hoever as part of the definition for the
structure of the call to the webservice, I have this struct.
class MyCall < ActionWebService::Struct
member :username, :string
member :password, :string
member :"remote-ip", :string
end
However this does not work... Should
2006 Dec 17
1
actionwebservice soap client
So I''ve created a few actionwebservice soap servers now and have been
accessing them from a stand alone ruby client using soap4r. Now I
have a rails app that needs to act as a client to one of my soap
servers. From what I can tell, I basically have to copy all the api
definitions from the server and put them on the client? Is that
correct? Makes sense and seems kind of strange all at
2008 May 06
1
Problem with ActionWebService and UTF-8 encoding
Hello,
I have a Rails App which serve a Soap Web Service with ActionWebService.
I accept 2 string parameters that must contain xml.
The data sent are in UTF-8, but the non-ascii char (é, à ...) in the message
are crippled at the end.
I tested the app, database, html, ... all accept utf-8, a direct http post
works well, but going through the web service broke the content.
I tried to manually set
2009 Jul 03
1
ActionWebService - omit backtrace in error response
I''m using ActionWebService to expose a WebService of my application,
and I would like to control the error responses sent back to the
client.
At very least, I would like to prevent the XML to include the
backtrace.
How can I do this?
2007 Feb 21
1
Exceptions in Response (ActionWebservice)
Hello,
i have build an ActionWebservice which returns a string. But if it get
an exception in the controller i want to throw an exception. In java
it is a soapfault. But if I return in the controller an
Exception.new(message) i only get thte message as the return string.
NO soapfault. How can i get an soapfault?
I hope someone can help me.
--~--~---------~--~----~------------~-------~--~----~
2007 Jun 19
4
ActionWebService for many APIs in rails?
Hi,
We''ve a pretty large rails application and we are currently deciding
moving a part of the application front-end to a desktop GUI.
For communication between application and GUI we decided to use an API.
So basically what I need is a way to have our models functionality
accessible by the GUI.
The basic idea:
Rails app provides API for models <-> HTTPS Connection <-> GUI
2006 Apr 10
1
ActionWebService PDF...
Hello all - I''ve been lurking around the forums for awhile now and just
wanted to say that everyone here does a great job of helping each other
out...I think it goes a long way in helping even more people adopt Ruby
(and Rails)
I just wanted to let everyone know that I''m working on an online booklet
(PDF only) for O''Reilly that covers "Web Services with Ruby on
2006 Aug 16
7
ActionWebService: XMLRPC Server Multicall possible?
Hi all,
I have a question concerning ActionWebService XMLRPC servers: Is it
possible to send multicall requests to the Web service? I tried to
use multicall and get the error message:
no such method ''system.multicall'' on API [MyAPI]
In Changeset 2021 there is the following commit message:
add ''system.multicall'' support to XML-RPC. boxcarred methods must