Never mind: Now I was missing Xerces.

-----Original Message-----
From: Eduardo Elgueta [mailto:[EMAIL PROTECTED] 
Sent: Viernes, 02 de Septiembre de 2005 11:10
To: [email protected]
Subject: NullPointerException on SOAPConnection.call

Hi All,

My code is this:

        SOAPConnectionFactory conFactory =
SOAPConnectionFactory.newInstance();
        SOAPConnection con = conFactory.createConnection();
        URLEndpoint endPoint = new
URLEndpoint(config.getParameter(PARM_SERVICE_URL));
        SOAPMessage reply = con.call( soapMsg, endPoint ); // <-- Exception
        con.close();
 
I get this:

 java.lang.NullPointerException
        at java.util.Hashtable.put(Unknown Source)
        at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(Unknown
Source)
        at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:261)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:582)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:447)
        at
org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:112)
        :
        :

I've dumped soapMsg (SOAP message with attachment) and it's Ok. endPonint
looks Ok too.

Any ideas? 

Thank you in advance.

Ed.

Reply via email to