# SOAP simple and complex types

**URL:** <https://www.ruby-forum.com/t/soap-simple-and-complex-types/162005>\
**Category:** Ruby\
**Created:** [March 4, 2009, 6:35pm UTC](https://www.ruby-forum.com/t/soap-simple-and-complex-types/162005 "2009-03-04T18:35:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewneal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4491bb/32.png) [@andrewneal](https://www.ruby-forum.com/u/andrewneal)\
**Post date:** [March 4, 2009, 6:35pm UTC](https://www.ruby-forum.com/t/soap-simple-and-complex-types/162005/1 "2009-03-04T18:35:56Z")

</div>

I am hoping someone can point me in the right direction here. I am  
trying to put together a soap client that has some pretty complex  
messaging structures, and I have run into a problem with how to pass  
data that isn’t a native type(int,string,etc)

here is a sample of what the XML should look like

```
<!--element name=TRANS-NUM type=unit:RPC-trans minOccurs=1

```

maxOccurs=1 --\>  
  
XX

if I try to pass the value to the a method like this

arguments = {“TRANS-NUM” =\>rpc\_trans}  
parameters = {“args” =\> arguments}  
puts obj.method(parameters)

I get I looked through all of  
the files generated by wsdl2ruby.rb, and I don’t see that any RPC-trans  
or TRANS-NUM classes  
were generated, so I am unsure how to make this work. Does anyone have  
any ideas?

Thanks
