# Wsdl ,not able to pass a complex type to a method

**URL:** <https://www.ruby-forum.com/t/wsdl-not-able-to-pass-a-complex-type-to-a-method/176526>\
**Category:** Ruby\
**Created:** [October 1, 2009, 5:14pm UTC](https://www.ruby-forum.com/t/wsdl-not-able-to-pass-a-complex-type-to-a-method/176526 "2009-10-01T17:14:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahul883](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b5a626/32.png) [@rahul883](https://www.ruby-forum.com/u/rahul883)\
**Post date:** [October 1, 2009, 5:14pm UTC](https://www.ruby-forum.com/t/wsdl-not-able-to-pass-a-complex-type-to-a-method/176526/1 "2009-10-01T17:14:33Z")

</div>

I’m trying to use a web service .  
I am using ‘soap/rpc/driver’ after creating an object of the driver  
class , i am able to authenticate by calling a method on it .

- 
- 
- 

i am able to authenticate using the code below  
driver = SOAP::RPC::Driver.new(URL, NAMESPACE)  
driver.add\_method(‘authenticate’,‘username’,‘password’)  
driver.add\_method(‘authenticateResponse’,‘authenticateReturn’)  
sid= driver.authenticate(‘uname’,‘pwd’)

I want to use the hostCreate method , it takes the instance of  
HostTransport as argument, I cannot figure out ,how can I pass this as  
argument. Pls help .  
I have pasted the related wsdl below

- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
-
