Hi All
In the meantime I bypassed the problem:

org.apache.axis.message.SOAPHeaderElement she = new
org.apache.axis.message.SOAPHeaderElement(elem){
            public String getNamespaceURI() { return( "dummy"); }
        };

But I think it should be modifyed in SOAPHeaderElement source with:

if(SOAPConstants.SOAP12_CONSTANTS.getEnvelopeURI().equals(getNamespaceURI())
)

Waddyathink?

Cheers
Marcello
 

> -----Messaggio originale-----
> Da: Marcello Marangio [mailto:[EMAIL PROTECTED] 
> Inviato: giovedì 18 novembre 2004 16.51
> A: Axis User
> Oggetto: NullPointerException in SOAPHeaderElement(Element e)
> 
> Hi all.
> I am trying to use the constructor SOAPHeaderElement (Element elem).
> My elem has no namespaceURI, so the constructor throws a 
> NullPointerException at line 109:
>       
>       if
> (getNamespaceURI().equals(SOAPConstants.SOAP12_CONSTANTS.getEn
velopeURI()))
> 
> Is it a bug?
> Is there a way to bypass this problem?
> Cheers
> Marcello

Reply via email to