From: Andrew Tongen Date: 2006-11-01T01:35:55+09:00 Subject: Re: adding soap element attributes Thanks Hiroshi, that got me started. Soap4r is great, I just wish this app had a WSDL! I may consider writing a WSDL for this application, but for now I only need a subset of fucntionality. The request objects are all pretty simple, but I am having trouble accessing data from the response objects. After calling: get_account = driver.get_account('user@example.com') The raw XML response for this command looks something like this: value1 value2 value3 ... I need to access the key/value pairs in the a attributes, but get_account.account.a simply returns an array of [value1, value2, value3, ...] and seems to ignore the attributes. Many response objects for this app take this form, so it would be nice to be able to create a hash, or ruby object dynamically based on the key/values. Can I access the raw response XML somehow, or is there a better way to do this? The app I am using is Zimbra, in case anyone has any experience or advice for use with Soap4r. Thanks again, Andrew -- Posted via http://www.ruby-forum.com/.