How do you control the namespace formatting in headers?

0 views
Skip to first unread message

bn

unread,
Jun 9, 2008, 9:02:04 PM6/9/08
to soap4r
I'm trying to figure out how to get attribute namespaces to display
properly in my header.

I want them to display in a manner such as...

DESIRED OUTPUT
<exc14n:InclusiveNamespaces xmlns:exc14n="http://www.w3.org/2001/10/
xml-exc-c14n#">

but they are currently displaying like...
REAL OUTPUT
<exc14n:InclusiveNamespaces xmlns:n2="xmlns" n2:exc14n="http://
www.w3.org/2001/10/xml-exc-c14n#">

The above real output results from the following hash being returned
by my on_simple_outbound method in my CustomHeader subclass (of
superclass SOAP::Header::SimpleHandler):

{ XSD::QName.new(nil, 'exc14n:InclusiveNamespaces') => {
'xmlns:xmlattr_exc14n' => "http://www.w3.org/2001/10/xml-
exc-c14n#"
}
}

I know that you can configure your Driver object @obj so that
@obj.use_default_namespace = true. However, even when I apply that
assignment, I still am not able to get my desired output in my
headers. Any ideas how to make this happen?
Reply all
Reply to author
Forward
0 new messages