I am trying to get a security header generated in my SOAP request as below but without any luck
<soap:Header>
<SecureHeader xmlns="http://tempuri.org/service">
<UserName>username</UserName>
<Password>password</Password>
</SecureHeader>
</soap:Header>
I used wsdl2java -client to generate client code. I see that the
generated code has ObjectFactory.java with a method
'createSecureHeader()' and also a SecureHeader.java, but can't figure
out how to use it. Any help?
Thanks,
Anu
