Jacqueline Greiss

Greenhorn
+ Follow
since Nov 30, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jacqueline Greiss

Thanks a lot for you reply

I tried but it didn't have any effect at all.

I found another good solution though, I extended SOAPHeaderElement class, and override its outputImpl(SerializationContext context) method, then used document builder to build my XML header element, at the end I call this context.writeDOMElement(elem);

And it works!

Regards.
11 years ago
Hi,

I try to add a header in my java client using "SOAPHeaderElement" like below:


SOAPHeaderElement header = new SOAPHeaderElement(
"uri", "headerName");

((Stub)port).setHeader(header);


The issue is that the created "SOAPHeader" has unneeded attributes "mustUnderstand" and "actor" which the schema can't parse. I need to fix this in my client as it's not possible to update the schema...

<soapenv:Header>
<ns1:headerName soapenv:actor="" soapenv:mustUnderstand="0" xmlns:ns1="uri">
...........
</ns1:headerName>
</soapenv:Header>

Thanks!
11 years ago