[#3228] Core support for Gems, and namespace — "Luke A. Kanies" <luke@...>

Hi all,

21 messages 2004/07/27
[#3230] Re: Core support for Gems, and namespace — Austin Ziegler <halostatue@...> 2004/07/27

On Tue, 27 Jul 2004 11:39:08 +0900, Luke A. Kanies <luke@madstop.com> wrote:

[#3234] Re: Core support for Gems, and namespace — "Luke A. Kanies" <luke@...> 2004/07/27

On Tue, 27 Jul 2004, Austin Ziegler wrote:

[#3238] Re: Core support for Gems, and namespace — Austin Ziegler <halostatue@...> 2004/07/27

On Wed, 28 Jul 2004 00:14:29 +0900, Luke A. Kanies <luke@madstop.com> wrote:

Re: SOAP maintainer

From: "NAKAMURA, Hiroshi" <nahi@...>
Date: 2004-07-04 13:20:00 UTC
List: ruby-core #3127
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 
>  
> <Customer> 
> 	<Name></Name> 
> 	<Last></Last> 
> </Customer>

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 <somewhere>
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: <somewhere>

<?xml version="1.0" encoding="utf-8" ?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <env:Body>
     <n1:getCustomer xmlns:n1="urn:test">
       <n1:CustomerData>
         <n1:Last>Na</n1:Last>
         <n1:Name>Hi</n1:Name>
       </n1:CustomerData>
     </n1:getCustomer>
   </env:Body>
</env:Envelope>

Regards,
// NaHi

In This Thread

Prev Next