Displaying 12 results from an estimated 12 matches for "soap_protocol".
Did you mean:
so_protocol
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 Dec 30
4
soap4r 1.5.5 seems to break actionWebService tests
...ib/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_service/test_invoke.rb:36:in
`prepare_request''...
2005 Dec 30
5
AWS api_method :returns not accepting ActiveRecord::Base
I''m trying to use the feature of AWS where it will take an object derived
from ActiveRecord::Base instead of an AWS::Struct object. Whenever I try
it, though, I get the craziest error:
NoMethodError: You have a nil object when you didn''t expect it!
The error occured while evaluating nil.new
/usr/lib/.../actionwebservice/lib/action_web_service/casting.rb:105:in
2006 Jun 23
0
SOAP Web Service Exception
...would have no problem posting
code if anyone wanted me to.
Thanks in advance for any help given!
Full stacktrace:
NoMethodError (undefined method `collect'' for
#<SOAP::SOAPNil:0x24ea1bc>):
/usr/local/lib/ruby/gems/1.8/gems/actionwebservice-1.1.2/lib/action_web_service/protocol/soap_protocol.rb:61:in
`decode_request''
/usr/local/lib/ruby/gems/1.8/gems/actionwebservice-1.1.2/lib/action_web_service/protocol/soap_protocol.rb:45:in
`decode_action_pack_request''
/usr/local/lib/ruby/gems/1.8/gems/actionwebservice-1.1.2/lib/action_web_service/protocol/discovery.rb:20:in
`...
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 Jul 30
0
Laszlo to AWS SOAPAction problem
...client requests against a Rails AWS backend. I
got unclear error messages and a backtrace which showed Rails going into
XML-RPC protocol code.
After some code analysis, it seems that AWS requires a non-empty
SOAPAction attribute in the header. After commenting out a one-line
check for this in soap_protocol.rb, everything seems to work fine. Also
I didn''t see any subsequent use of this string once it was validated to
be present.
Does anyone have any knowledge in this area to help determine if this is
a good long-term fix?
Also, it seems the strategy of attempting XML-RPC processing once...
2006 Jan 07
1
AWS, SOAP, and Exceptions
Can someone shed some light on how to convert an Exception to a
SOAPFault on Rails 1.0/AWS 1.0? I''ve been digging through the source
code and see that in soap_protocol.rb there is a method called
encode_response() that seems to perform the translation of an Exception
to a SOAPFault. However, if I use the following code block within my Web
Service controller:
def get_calendar(calId)
begin
return Calendar.find(calId)
rescue Exception => e...
2007 Aug 09
0
layered SOAP webservices
Hi all,
My SOAP web service works with direct and delegated dispatching. But
as soon as I switch to layered, I get an error message
no such web service ''api''
Now, the actionwebservice/lib/action_web_service/protocol/
soap_protocol.rb, in function
decode_action_pack_request(action_pack_request),
service_name = action_pack_request.parameters[''action'']
But doesn''t this mean the service_name is always going to be set to
''api'' in case of layered dispatch? Shouldn''t the se...
2006 Mar 05
1
TypeError in Rpc#invoke_submit
...trace:
/home/www/lib/lib/ruby/1.8/xsd/qname.rb:78:in `name=''
/home/www/lib/lib/ruby/1.8/soap/rpc/element.rb:118:in `set_param''
/home/www/lib/lib/ruby/1.8/soap/rpc/element.rb:116:in `set_param''
/home/www/lib/gems/gems/actionwebservice-1.0.0/lib/action_web_service/protocol/soap_protocol.rb:78:in `encode_request''
/home/www/lib/gems/gems/actionwebservice-1.0.0/lib/action_web_service/scaffolding.rb:79:in `invoke_submit''
/home/www/lib/lib/ruby/1.8/benchmark.rb:293:in `measure''
/home/www/lib/gems/gems/actionwebservice-1.0.0/lib/action_web_service/scaffolding....
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
2005 Dec 31
1
Error when Testing AWS API (ArgumentError: illegal refid http://test.host/login)
...rexmlparser.rb:27:in
`do_parse''
/usr/local/ruby/lib/ruby/1.8/soap/parser.rb:92:in `parse''
/usr/local/ruby/lib/ruby/1.8/soap/processor.rb:39:in `unmarshal''
/usr/local/ruby/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0/lib/action_web_service/protocol/soap_protocol.rb:84:in
`decode_response''
/usr/local/ruby/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0/lib/action_web_service/test_invoke.rb:59:in
`decode_rpc_response''
/usr/local/ruby/lib/ruby/gems/1.8/gems/actionwebservice-1.0.0/lib/action_web_service/test_invoke.rb:11:in
`inv...
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/.