Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do I add mustunderstand attribute into Java SOAP header?

843833Jul 14 2010 — edited Jul 15 2010
Hi

I am having a bit of trouble setting the mustUnderstand="1" attribute in my outbound soap header. I have read a lot of tutorials, but I have absolutely no luck. I can add headers, just not set the mustunderstand attribute.

I understand I must use SOAPHeaderElement, but I then get different errors, saying certain functions aren't being overridden etc. When I attempt to fix those errors I just walk into a bunch of new errors....

I have been developing in PHP for years now, so my java knowledge isn't at a stage yet where these things just come naturally, so I think my lack of knowledge is the cause of me not using the SOAPHeaderElement interface correctly.


Does anyone know of an easy/reliable way of setting mustunderstand to true? With or without SoapHeaderElement? I use Java 1.6, and Netbeans 6.9.

Thanks all
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 12 2010
Added on Jul 14 2010
1 comment
485 views