Forum: Ruby Attributes for Soap elements

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Roy Britten (Guest)
on 2007-02-21 05:01
(Received via mailing list)

I'm accessing a web service that is largely using attributes rather
than elements for the request. How can I create a request containing

I create the SOAP driver with

  require 'soap/wsdlDriver'
  driver =

and can elicit appropriate responses from the server for requests that
pass the data as elements:


However, most requests require the data to be passed as attributes.
For example, a simplified WSDL reads in part

   <element name="GetItem">
      <element name="itemRequest" type="impl:GetItemRequest"/>
      <complexType name="GetItemRequest">
    <attribute name="X" type="xsd:double"/>
    <attribute name="Y" type="xsd:double"/>

How will I craft a request to the GetItem service with appropriate
values for X and Y?

This topic is locked and can not be replied to.