From: "NAKAMURA, Hiroshi" Date: 2004-03-13T01:19:41+09:00 Subject: Re: SOAP4R newbie question Hi, > From: "Allton, Paul" > Sent: Friday, March 12, 2004 7:26 PM > not use cookies. It works how you describe above except that rather than > sending the token as a parameter to each method it sends it in the SOAP > Header. > > Does soap4r support adding complex types (in this case a simple object with > just a string id) to the SOAP Header? Sort of, with soap4r/CVS code at http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/lib/soap4r/ . Sample server and client are at http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/lib/soap4r/sample/soap/authheader/ . The sample client sends userid/passwd via SOAP Header, receives token via SOAP Header, and sends the token in the SOAP Header. "Passing all authentication information on SOAP Header" model (maybe slightly different from your service). SOAP::Header::SimpleHeaderHandler handles SOAP Header through Hash. You can pass a Hash of a Hash of ... so you can send and receive some kind of "complex type" XML element. If it's not enough, you must use bare SOAP::Header::Handler. Would you try soap4r/CVS code at your leisure? Regards, // NaHi