Ruby soap4r header problem

Hi,

I am trying to build a header using soap4r that is supposed to look like
this

    <SOAP-ENV:Header>
<ns1:UserAuthentication
SOAP-ENV:mustUnderstand="1"
SOAP-ENV:actor="http://…api.address.com">
<ns1:iId>*****</ns1:iId>
<ns1:sPassword>*****</ns1:sPassword>
<ns1:sType>affiliate</ ns1:sType>
</ns1:UserAuthentication>

<ns1:getQuota SOAP-ENV:mustUnderstand="1" SOAP-
ENV:actor="http://api.affiliatewindow.com">true</ns1:getQuota>
</SOAP-ENV:Header>

What I have done is created a header derv. class

AffHeader < SOAP::Header::SimpleHandler

Created a UserAuthentification element.

def initialize
     @element = XSD::QName.new(nil, "UserAuthentification")
     super(@element)
   end

And return a hash

def on_simple_outbound
     self.mustunderstand = 1
     { "iId" => ID, "sPassword" => PASSWORD, "sType" => "affiliate" }
end

How can I make my header look like I want further. How do I add the
actor for example.

I am going to keep searching on this, any Help is very appreciated.

Thank you

···

--
Posted via http://www.ruby-forum.com/.