Attributes for Soap elements


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

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


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs