Commit Graph

96 Commits

Author SHA1 Message Date
Leon Breedt
9aafcd92de fix invalid request XML generation in test process.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2050 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-24 19:46:11 +00:00
Leon Breedt
fbba128f73 special-case non-existent target method handling for 'system.multicall' calls when the
method does not exist, to conform to the RFC and return the error inline in the multicall response.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2023 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-16 05:54:12 +00:00
Leon Breedt
9d79880e81 add 'system.multicall' support to XML-RPC. boxcarred methods must still exist
on the target service(s), value casting will still be performed, and recursive
'system.multicall' calls are not allowed.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2021 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-16 05:45:03 +00:00
Leon Breedt
2eba713445 Fix duplicate XSD entries for custom types (#1729), and prevent recursive type
traversing.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2014 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-14 18:43:39 +00:00
Leon Breedt
056838d2fc Allow multiple invocations in the same WS test #1720
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2013 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-14 17:27:28 +00:00
Leon Breedt
cbf709fc5c fix rendering of scaffolding (@content_for_layout has to be set on the template.)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1998 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-12 22:55:23 +00:00
Leon Breedt
eaadd18f3f Add API::Base.soap_client and API::Base.xmlrpc_client helper methods to construct
an internal client.

Example:

{{{
$ ./script/console
>> c = MyApi.soap_client 'http://app.com/ws/api'
>> c.method arg1, arg2
}}}


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1994 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-08-12 16:38:42 +00:00
Leon Breedt
03d9159025 we should respect charset for incoming messages and not assuming incoming is
always UTF-8, and only force UTF-8 for our response.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1842 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-16 21:08:27 +00:00
Leon Breedt
f92f6a1301 add changelog entry.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1824 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-13 06:27:52 +00:00
Leon Breedt
b7f3751ce0 make sure that we get back a SOAPString when $KCODE is UTF-8
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1823 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-13 06:25:45 +00:00
Leon Breedt
dfc422b784 always send back SOAP responses as UTF-8, we can't guarantee that SOAP4R
supports any encoding sent by caller.

add documentation describing how to ensure :string types don't get converted
into :base64 by SOAP4R when containing non-ASCII chars and $KCODE is not set
to a value.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1822 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-13 06:05:13 +00:00
David Heinemeier Hansson
4259199c2c Made ready for release of 0.13.1
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1814 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-11 07:36:18 +00:00
Leon Breedt
f8be47a6a3 ensure the second manual WS request of scaffolding contains the same state as
the original request as much as possible (so that things relying
on hostnames &c will keep on working)


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1743 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-06 22:10:35 +00:00
Leon Breedt
d01c44d550 fix bug in unit test causing spurious failures, and make sure the
unit test requires the Rails libraries from *Source Control* first, or
we'll get false positives. add ActiveRecord require to abstract_unit.rb.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1742 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-06 21:50:27 +00:00
David Heinemeier Hansson
a0d31fcd81 Pegged the versions for release
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1739 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-06 12:48:14 +00:00
David Heinemeier Hansson
72104faa58 Tuned documentation for release (AWS)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1727 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-06 08:25:04 +00:00
Leon Breedt
1b07366c2f add RDoc for base signature types
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1512 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-25 18:57:33 +00:00
Leon Breedt
07f237bdae clean up cases where we override #inherited
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1511 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-25 18:06:52 +00:00
Leon Breedt
ebb6fb0928 fix WSDL generation, change the way protocols are instantiated, and add
the ability to override the namespace used in WSDL instead of always forcing
'urn:ActionWebService'


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1501 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-25 06:27:39 +00:00
Leon Breedt
fa7f4a0664 Add workaround for SOAP4R changing find_mapped_soap_class return value [Shugo Maeda]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1409 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-13 03:22:01 +00:00
Leon Breedt
887e67c80e Fix moduled controller URLs in WSDL, and add unit test to verify the generated URL.
See ticket #1428.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-13 02:58:44 +00:00
David Heinemeier Hansson
5add31eda4 CSS needs "red" not #red
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1388 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-06 09:48:48 +00:00
Leon Breedt
46e68538c0 fix scaffolding template paths (Pathname does weird things on Win32)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1375 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-31 02:50:02 +00:00
Leon Breedt
92b925b1c5 memo to self: add :rest dispatching mode, and vanilla XML message support
a.l.a Backpack API...its so Web 2.0 :)


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1333 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-20 01:36:02 +00:00
David Heinemeier Hansson
6ea6a725c4 Push to .org instead
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1310 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-19 16:42:47 +00:00
Leon Breedt
979880dd24 add test to ensure the bug fixed by [1295] can't occur again.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1296 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-08 19:58:15 +00:00
Leon Breedt
190eaf9307 fix that functional testing for :layered SOAP would complain that it
was not XML-RPC.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1295 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-08 19:34:54 +00:00
Leon Breedt
884fd4792d support using invocation filters in :direct controllers as well, for
consistency. action pack filters don't necessarily include enough information
about the request since they occur before AWS actually sees the request and
unpacks it.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1294 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-07 23:49:45 +00:00
Leon Breedt
47a7084b94 add base64 signature type (thanks, Shugo Maeda!)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1293 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-07 22:57:08 +00:00
Leon Breedt
421045e2ff remove usages of @request, @response, @params, and replace with #request, #response, #params,
except for test_invoke (values come from the test case) and one scaffold RHTML template.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1287 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-05 16:59:07 +00:00
Leon Breedt
811f6a7aab fix boolean field rendering in scaffolding
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1286 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-05 16:11:49 +00:00
Leon Breedt
a02f1b85f0 fix :delegated invocation in the scaffolding
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1285 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-05 16:07:06 +00:00
Leon Breedt
a080b1a231 add support for structured types as input parameters to scaffolding,
fixes scaffolding for APIs like metaWeblog that require an input
struct (by dropping structs in nested <ul> lists).


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1265 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-01 05:07:37 +00:00
Leon Breedt
8694a79bb2 default to using UTF-8 as response encoding for SOAP if none is
supplied, but if an encoding is supplied by caller, use that for the
response instead (NAKAMURA Hiroshi)


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1245 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-28 17:55:34 +00:00
Leon Breedt
896fea505b add charset=utf-8 to SOAP response content type, and make base_uri
respect relative_url_root for the endpoint of SOAP messages (Shugo
Maeda). if WSDL was retrieved over HTTPS, use HTTPS in the endpoint
URLs as well.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1244 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-28 01:19:52 +00:00
Leon Breedt
74c9fd2ba5 add entry for nil casting change
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1243 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-27 19:43:28 +00:00
Leon Breedt
3cf461323c Fix regression where nil values were incorrectly being cast into the
default values for their base types.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1234 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-19 19:00:06 +00:00
David Heinemeier Hansson
77af61be40 Added xml_http_request/xhr method for simulating XMLHttpRequest in functional tests #1151 [Sam Stephenson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-19 16:34:44 +00:00
David Heinemeier Hansson
7d01005514 Fixed documentation and prepared for release of 0.12
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-18 20:10:11 +00:00
Leon Breedt
c11cc309fa add backwards compatibility for the public API change made to #api_methods, as it is
being used in some apps.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-17 17:20:44 +00:00
Leon Breedt
5feb7e26e8 Send a stripped down message in the text following 500, and leave the detailed
response for the body, or we may generate invalid HTTP responses that causes 404's.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1172 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-16 21:59:55 +00:00
Leon Breedt
7f32666924 Remove a cause of casting failure for XML-RPC by ignoring structure members not
defined in the target type, and perform more sanity checks to make more obvious
what the resolution should be when neglecting to provide a valid signature or
failing to attach an API to a service implementation class.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1171 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-16 19:29:42 +00:00
Leon Breedt
a04fc268b7 add missing public API change
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1124 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-10 03:36:19 +00:00
David Heinemeier Hansson
bd9a81ca2d Moved to new server
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1102 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-07 06:20:54 +00:00
Leon Breedt
6427133584 support SOAP invocation of layered services in scaffolding too, fix bug when
method takes no parameters


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1098 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-05 22:29:01 +00:00
Leon Breedt
1155ea0aa3 initial go at making :layered dispatching generate WSDL for SOAP, and have
:layered process SOAP method calls correctly as well, may be unstable


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1097 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-05 21:37:48 +00:00
Leon Breedt
97e39fcb64 make XMLRPC::FaultException have a #message, otherwise the thrown exception
is useless in functional test backtraces


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1093 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-05 16:25:47 +00:00
Leon Breedt
9b42cd8cc1 add API::Method#expects_to_hash convenience as well
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1092 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-05 16:00:28 +00:00
Leon Breedt
7a5bac1de0 add API::Method#expects_index_of helper to get the index of
a named parameter


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1091 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-05 15:41:04 +00:00
Leon Breedt
361dcad8fd be explicit about the object to do #instance_eval in for delegated dispatching,
clean up iterations to use #zip (bitsweat), 


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1090 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-04-05 05:39:45 +00:00