-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Andrew Tongen wrote:
> I am using soap4r to write a simple library to consume web services from 
> an application.  The application does not include a WSDL document, so I 
> have to write everything by hand.

Unlucky.

> The application requires attributes in certain elements of the soap 
> request, and I am having a little trouble figuring out how to do this. 
> So far, a portion of my test code looks like this:
> 
> driver = SOAP::RPC::Driver.new(endpoint, 'urn:namespace')
> driver.add_method_as('get_account', 'GetAccountRequest', 'account')
> get_account = driver.get_account('user / example.com')

You need to set up a request object by yourself.

  ele = SOAP::SOAPString.new('user / example.com')
  ele.elename = XSD::QName.new(nil, 'account')
  ele.extraattr[XSD::QName.new(nil, 'by')] = 'name'
  driver.get_account(ele)

It must be a hard work when it comes to a complex request object.  You
can write a WSDL from service definition first.

Regards,
// NaHi

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)

iQEVAwUBRUSS0B9L2jg5EEGlAQINDwf9E+xnyx8w7Ztbk8j6HEoiYyzHd2sxKoDm
T9GCqS2tSiu293pnqZg+daNhoufuRWXD7tOZvlByhz1nW3MqdbbQYBD4rjLPKQPy
06Sd08W6DSP/axgGgtATlHPEmotU/GYmi6s+J7Mf5VSx5Lh1ON+W3FZTfyV8YpWV
ui0JvcR0I0byjiso7E0xvOypXR1eISihiLFw1rpltk0LQyRGWt7pgmlBbB8wOsHn
+mlgRFCXOCKMExKs0tfVFTy0Szi4NHBHb58UMJuDCWj7ATGrUJo68FTd1ywJY5Th
EcdOPEiOaelg+VPDvhK0dByFjk467G6jFNjTPFMmFL/oohyzl8Zz6w==
=0Eph
-----END PGP SIGNATURE-----