actor and mustUnderstand added to envelope?

2004-12-06 Thread Kent Tong
Hi, In SignedSOAPEnvelope.java in the security example, the actor and mustUnderstand attributes are added to the envelope: env.addAttribute(Constants.URI_SOAP11_ENV, "actor", "some-uri"); env.addAttribute(Constants.URI_SOAP11_ENV, "mustUnderstand", "1"); Shouldn't they be added to the head en

should a handler remove a header that it has handled?

2004-12-05 Thread Kent Tong
Hi, Should a handler remove a header that it has handled? It seems to be what is required by the SOAP 1.1 spec. However, the LogHandler in the security sample doesn't do that. I understand it is just an example, but as a new comer I'd like to confirm whether LogHandler should also remove the header

getHeadersByActor returns invalid element?

2004-12-05 Thread Kent Tong
Hi, I'm working on a handler that verifies XML signatures. I use the following code to get the XML signature element: SOAPEnvelope env = (SOAPEnvelope) msgContext.getMessage().getSOAPPart().getEnvelope(); Document doc = env.getAsDocument(); doc.getElementsByTagNameNS("*", "Signature").item(0); I

SOAPPart setContent adds newlines

2004-12-05 Thread Kent Tong
Hi, As an experiment, I have written a client handler that is like: public void invoke(MessageContext msgContext) throws AxisFault { SOAPMessage msg = msgContext.getMessage(); SOAPEnvelope env = (SOAPEnvelope) msg.getSOAPPart().getEnvelope(); Document doc = env.getAsDocument();

DeserializationContext

2004-12-05 Thread Kent Tong
Hi, It seems that DeserializationContextImpl requires that the inputsource be a document that is already canonicalized. Is it true? Is it an general requirement or just a requirement specific to this implementation? Thanks!

Peculiar behavior of addHeader

2004-12-05 Thread Kent Tong
Hi, I'm studying the security example in Axis 1.1, in particular the SignedSOAPEnvelope class. To sign a message, it needs to add a header: SOAPEnvelope env; ... SOAPHeaderElement header = new SOAPHeaderElement( XMLUtils.StringToElement(SOAPSE