From: "NAKAMURA, Hiroshi" Date: 2004-07-04T22:20:00+09:00 Subject: Re: SOAP maintainer Hi, dross@code-exec.net wrote: > Who maintains SOAP4R? would it be possible to get implementation notes? The > documentation out there on the internet is seriously outdated and cannot be > used. I am curious how to implement the reply below in my code. I plan on > making large documents after understanding SOAP4R. The examples alone do > not > tell how to correctly implement things are servlets or methods. --David > Ross > > > > > I'm the maintainer. Here's the code snipet to create untyped SOAP request (SOAP XML instance does not include any "xsd:type=..." kind of attributes). But I still am not clear on your requirements. I hope you can find something from my example. 0% cat baz.rb require 'soap/rpc/driver' server = ARGV.shift drv = SOAP::RPC::Driver.new(server, "urn:test") drv.default_encodingstyle = ::SOAP::EncodingStyle::ASPDotNetHandler::Namespace class Customer attr_accessor :Name, :Last def initialize(name, last) @Name, @Last = name, last end end drv.add_method("getCustomer", "CustomerData") drv.wiredump_dev = STDOUT drv.getCustomer(Customer.new("Hi", "Na")) 0% ruby baz.rb Wire dump: = Request ! CONNECTION ESTABLISHED POST / HTTP/1.1 SOAPAction: "" Content-Type: text/xml; charset=utf-8 User-Agent: SOAP4R/1.5.2 (http-access2.rb/1.39, ruby 1.9.0 (2004-07-03) [i386-cygwin]) Date: Sun Jul 04 21:44:56 GMT+9:00 2004 Content-Length: 430 Host: Na Hi Regards, // NaHi