From: "dross@..." Date: 2004-07-02T03:43:25+09:00 Subject: Re: SOAP4R API question - INSTRUCTIONS I will be creating very good documents for all of you to use later on. Right now I need to get this project done so I can get paid. My original question was how could I get in the body of SOAP this.. High paying cusomters ....122 entries.. The answer to the problem was to implement a special array myfile.rb -------------------------------------- require 'soap/marshal' #licensed public domain class GetCustomer; include SOAP::Marshallable # must include to marshalize data # multiple lines for readability attr_accessor :name attr_accessor :phoneNo attr_accessor :otherEntry # wont show because I didn't set it def initialize(setName,setPhoneNo) @name, @phoneNo = setName, setPhoneNo # must set instance variables or soap entries do not show # the order of assignment matters. # if @name, @phoneNo = setName, setPhoneNo then # # 965-7516 # Edward Sirg # # if @phoneNo, @name = setPhoneNo, setName # # Edward Sirg # 965-7516 end end customer = [ GetCustomer.new("John Doe","555-555-555"), GetCustomer.new("Edward Sirg","965-7516") ] if $0 == __FILE__ customer.each do |cPerson| print SOAP::Marshal.marshal(cPerson) end end -------------------------------------------- Output: John Doe 555-555-555 Edward Sirg 965-7516 Of course this can be inserted into a SOAP service with ease. Well im out to finish my project. Talk later --David Ross Original Message: ----------------- From: Eric Schwartz emschwar@pobox.com Date: Fri, 2 Jul 2004 02:57:49 +0900 To: ruby-talk@ruby-lang.org (ruby-talk ML) Subject: Re: SOAP4R API question "dross@code-exec.net" writes: > nm, problem solved :P Er, how did you solve your problem? For the rest of us who are just reading about this, can you be more specific? -=Eric -- Come to think of it, there are already a million monkeys on a million typewriters, and Usenet is NOTHING like Shakespeare. -- Blair Houghton. -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .