I'm trying to generate a Security header for Axis. And i get stuck. I can generate all the XML Objects needed: Username Password and Created Timestamp but I'm not able to put it together.
If i try this:
... to put it together I get
org.apache.xmlbeans.impl.store.DomImpl$NotSupportedError: Document nodes may not be imported
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Hello Gunther. Of course I am sure it is possible. Unfortunately I don't know how to do this manually, but I am sure someone out there knows. Maybe this will help with some more information.
In case you already have the header constructed (I couldn't tell by looking at your code), you can look here on how to add a header to the SOAP envelope. Maybe this is what you were looking for?
But I think it must be complicated enough to handle all aspects of the WS-Security specification that a separate product (Rampart) exists. And with it, the whole security handling becomes a matter of complicated configuration, rather than complicated programming
1. Can you briefly mention the overall context of what you are doing and the software being used?
2. Looks like you are developing a client that consumes a security-enabled web service. Is that correct?
3. Also, what other software are you using, dev environment, etc.
4. Have you looked at this thread that I mentioned earlier? Maybe it will help.