Skip to content
Advertisement

Tag: saaj

Unable to create SAAJ meta-factory after packaging as JAR

For testing an application I am creating SOAP messages. This works when run directly from Eclipse (Oxygen.1a) but after packaging as runnable jar (option: package required libraries into generated jar) I get the following error: triggered by: So I understand that the MessageFactory uses a sun package But I am absolutly clueless as to why it is unable to find

Setting socket read timeout with javax.xml.soap.SOAPConnection

I am using the javax.xml.soap API (javax.xml.soap.SOAPConnectionFactory, javax.xml.soap.SOAPConnection, and friends) to make a web service call to a remote server, for the most part with great success. However, sometimes there is a problem and the program gets stuck reading forever. To address this, I’d like to add a read timeout. I found several ways it might be possible to achieve

Advertisement