setHeader should work
You do not want to call setAttribute. That would set an attribute on the
<soap:Header> element. You want to create an attribute on the wsSoapHeader element.
Scott Nichol
Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message -----
From: "JEFF EMMINGER" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 10:06 AM
Subject: [newbie] setting headers?
hello,
really green here...
I'm writing a client, and I need to set the Username and Password for this
header:
<soap:Header>
<wsSoapHeader xmlns="http://ecommerce.mysite.com/wsFoo">
<Username>string</Username>
<Password>string</Password>
</wsSoapHeader>
</soap:Header>
I think I'm supposed to create a Header(), and setHeader() on my Call
object?
The problem I'm having is calling setAttribute() on the header, which needs
a QName attribute and a String value. I'm not sure which part is the
attribute and value...
help?
thanks,
jeff
CONFIDENTIAL NOTICE: This email including any attachments, contains
confidential information belonging to the sender. It may also be
privileged or otherwise protected by work product immunity or other
legal rules. This information is intended only for the use of the
individual or entity named above. If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or the taking of any action in reliance on the contents
of this emailed information is strictly prohibited. If you have
received this email in error, please immediately notify us by
reply email of the error and then delete this email immediately.