It seems that the SoapEnvelope is not completely populated at the time of creation. The getLocalName Method and getQualifiedName Method return empty string. but should return Envelope and soapenv:Envelope respectively.
<JunitTestCase> public void testSoapEnvelope()throws Exception { SOAPMessage message = MessageFactory.newInstance().createMessage(); SOAPElement element = message.getSOAPPart().getEnvelope(); System.out.println("Element Name=" + element.getElementName ().getLocalName()); System.out.println("Element QName=" + element.getElementName ().getQualifiedName()); } </JunitTestCase>
<Output> Element Name= Element QName= </Output>
I have filled a bug in bugzilla for the same issue?
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20739
John
_________________________________________________________________
Bollywood's back! Will June keep up the tempo? http://server1.msn.co.in/features/junemovies03/index.asp
