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:sTypeaffiliate</ 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

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