aboutsummaryrefslogtreecommitdiffstats
path: root/actionwebservice/lib/action_web_service/protocol
Commit message (Collapse)AuthorAgeFilesLines
* Ousted ActionWebService from Rails 2.0David Heinemeier Hansson2007-11-215-682/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure that DispatcherError is being thrown correctly when a malformed ↵Kent Sibilev2006-12-111-0/+2
| | | | | | request is received. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5713 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for decimal types. Closes #6676.Kent Sibilev2006-12-032-10/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5670 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed XMLRPC multicall when one of the called methods returns a struct object.Kent Sibilev2006-08-231-0/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4810 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix soap type registration of multidimensional arrays (closes #4232) [Kent]David Heinemeier Hansson2006-03-171-21/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3903 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix a ton of issues with AWS (yes, Kent saved it from being unbundled in ↵David Heinemeier Hansson2006-03-032-4/+15
| | | | | | 1.1) #4038 [Kent Sibilev] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3750 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* add 'system.multicall' support to XML-RPC. boxcarred methods must still existLeon Breedt2005-08-161-1/+1
| | | | | | | | 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
* Add API::Base.soap_client and API::Base.xmlrpc_client helper methods to ↵Leon Breedt2005-08-122-0/+18
| | | | | | | | | | | | | | | | | 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
* we should respect charset for incoming messages and not assuming incoming isLeon Breedt2005-07-161-2/+12
| | | | | | | 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
* always send back SOAP responses as UTF-8, we can't guarantee that SOAP4RLeon Breedt2005-07-131-16/+15
| | | | | | | | | | | 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
* Tuned documentation for release (AWS)David Heinemeier Hansson2005-07-061-2/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1727 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix WSDL generation, change the way protocols are instantiated, and add Leon Breedt2005-06-255-12/+27
| | | | | | | | 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
* Add workaround for SOAP4R changing find_mapped_soap_class return value ↵Leon Breedt2005-06-131-1/+14
| | | | | | [Shugo Maeda] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1409 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* add base64 signature type (thanks, Shugo Maeda!)Leon Breedt2005-05-072-7/+36
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1293 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* default to using UTF-8 as response encoding for SOAP if none isLeon Breedt2005-04-283-8/+26
| | | | | | | | 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
* add charset=utf-8 to SOAP response content type, and make base_uriLeon Breedt2005-04-281-1/+1
| | | | | | | | | 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
* initial go at making :layered dispatching generate WSDL for SOAP, and haveLeon Breedt2005-04-052-6/+9
| | | | | | | :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
* make XMLRPC::FaultException have a #message, otherwise the thrown exceptionLeon Breedt2005-04-051-0/+4
| | | | | | | is useless in functional test backtraces git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1093 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* be explicit about the object to do #instance_eval in for delegated dispatching,Leon Breedt2005-04-051-6/+3
| | | | | | | clean up iterations to use #zip (bitsweat), git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1090 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* filter out embedded nil values for XML-RPCLeon Breedt2005-04-021-2/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1073 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* * collapse 'ws' back into protocols, it just added complexity and ↵Leon Breedt2005-04-025-64/+396
| | | | | | | | | | | | | indirection, and was hard to extend. * extract casting into seperate support file * ensure casting always does the right thing for return values, should fix interoperability issues with Ecto and possibly other XML-RPC clients * add functional unit tests for scaffolding * represent signature items with classes instead of symbols/Class objects, much more flexible * tweak logging to always show casted versions of parameters and return values, if possible. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1072 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* first pass of web service scaffolding. add ability to quickly generate anLeon Breedt2005-03-293-2/+62
| | | | | | | | action pack request for a protocol, add missing log_error when we fail to parse protocol messages. add RDoc for scaffolding and functional testing. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1037 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* don't hide exceptions when we fail to parse XML-RPC messages.Leon Breedt2005-03-281-2/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1031 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* generalize casting code to be used by both SOAP and XML-RPC (previously only ↵Leon Breedt2005-03-283-37/+17
| | | | | | | | | | XML-RPC). switch to better model for API methods, and improve the ability to generate protocol requests/response, will be required by upcoming scaffolding. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1030 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* make the response QName match up with that declared for the message in theLeon Breedt2005-03-201-1/+1
| | | | | | | | WSDL, to not do so violates the spec. also fixes this error that occurred with SOAP::WSDLDriverFactory: "RuntimeError: Cannot find {}return as a children of {urn:ServiceName}messageName" git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@920 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* dup the value received from @request, so we modify the copy and not the ↵Leon Breedt2005-03-151-0/+1
| | | | | | | | | original, and avoid frozen errors. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@912 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make all custom types and method calls are declared in the ↵Leon Breedt2005-02-274-20/+20
| | | | | | | | | | | | | | | | | | | | | | | 'urn:ActionWebService' namespace as a default, fixes SOAP marshaling for .NET, a regression since the merge. Make array annotation be recursive in WS::Marshaling::SoapMarshaling, this makes typed arrays buried in nested structures still be annotated correctly. Support :layered dispatching mode for XML-RPC namespaced method names. Change WS::ParamInfo.create signature to require type_binding, and update all uses of this. Restore #default_api_method functionality, fixes a regression since the merge. Fix marshalling of ActiveRecord::Base derivatives, fixes a regression since the merge. This changeset closes #676, #677, and #678. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@811 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* merged the changes for the upcoming 0.6.0:Leon Breedt2005-02-255-780/+118
| | | | | | | | | | | | | | | | | | | | | seperate out protocol marshaling into a small 'ws' library in vendor, so that AWS itself only does integration with ActionPack, and so we can keep protocol specific code in AWS proper to a minimum. refactor unit tests to get 95% code coverage (for a baseline). be far more relaxed about the types given to us by the remote side, don't do any poor man's type checking, just try to cast and marshal to the correct types if possible, and if not, return what they gave us anyway. this should make interoperating with fuzzy XML-RPC clients easier. if exception reporting is turned on, do best-effort error responses, so that we can avoid "Internal protocol error" with no details if there is a bug in AWS itself. also perform extensive cleanups on AWS proper. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@800 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* refactoring:Leon Breedt2005-02-192-15/+0
| | | | | | | | | | | | | | | | | | | | | * move dispatching out of the Container into Dispatcher, it makes more sense for Container to only contain the list of web services defined in it. * collapse Wsdl and ActionController "routers" into an ActionController-specific module, no advantage to having them seperate as they were quite tightly coupled. rename to Dispatcher, to avoi confusion with Routing. * add a "_thing" suffix to concept-specific filenames. this is so that we don't end up with many soap.rb files, for example. * remove "virtual invocation" support. adds complexity, and it doesn't seem to add any value. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@679 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* rename entire package to Action Web ServiceLeon Breedt2005-02-184-0/+850
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@672 5ecf4fe2-1ee6-0310-87b1-e25e094e27de