[ajug-members] Problem with SAAJ when calling a web service

Oghie Ojior oghieojior at yahoo.com
Mon Jun 21 20:00:13 EDT 2004


Hi All,

When I attempt to call a web service using SAAJ I get an exception. Below is part of my code that results in the exception:

code: 
---------------------------------

SOAPConnectionFactory soapConnectionFactory =
                    SOAPConnectionFactory.newInstance();
 
            connection =
                    soapConnectionFactory.createConnection();
            endpoint = new URL("http://prob.test.com/ltc");
           
 response = connection.call(message, endpoint);


---------------------------------


Here is part of the exception I get: 

code: 
---------------------------------

Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to get header stream in saveChanges: 
	at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:128)
	at mil.af.ilss.mass.web.wsclient.ProcessILSSTransactionSoapWorker.sendSOAPMessage(ProcessILSSTransactionSoapWorker.java:62)
	... 32 more
Caused by: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to get header stream in saveChanges: 
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:121)
	... 33 more
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to get header stream in saveChanges: 
	at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:541)
	at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:223)
	at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:151)
	... 35 more
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: SOAP exception while trying to externalize: 
  

---------------------------------


Any help that you can provide would be greatly appreciated.

Thanks!

Ojior 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ajug.org/pipermail/ajug-members/attachments/20040621/e35e9113/attachment.html 


More information about the ajug-members mailing list