wood burning stoves 2.0
The moose likes Web Services and the fly likes HttpSOAPConnectionFactory not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "HttpSOAPConnectionFactory not found" Watch "HttpSOAPConnectionFactory not found" New topic

HttpSOAPConnectionFactory not found

Paul Cahoon

Joined: Jun 24, 2003
Posts: 2
I am trying to connect to a webservice, however the following line of code is causing is not working.
SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
javax.xml.soap.SOAPException: Unable to create SOAP connection factory: Provider
com.sun.xml.messaging.client.p2p.HttpSOAPConnectionFactory not found
at javax.xml.soap.SOAPConnectionFactory.newInstance(Unknown Source)
at WebService3.main(WebService3.java:32)

I have add the saaj-ri.jar file to my classpath, but is has com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory class in it, and mine code is looking for the HttpSOAPConnectionFactory class not in the saaj package.
I am using the jwsdp-1_0_01 and have added the following to my classpath:
c:\jwsdp-1_0_01\common\lib\jaxp-api.jar;c:\jwsdp-1_0_01\common\endorsed\dom.jar;c:\jwsdp-1_0_01\common\endorsed\sax.jar;c:\jwsdp-1_0_01\common\endorsed\xalan.jar;c:\jwsdp-1_0_01\common\endorsed\xercesImpl.jar;c:\jwsdp-1_0_01\common\endorsed\xsltc.jar;c:\jwsdp-1_0_01\common\lib\saaj-api.jar;c:\jwsdp-1_0_01\common\lib\saaj-ri.jar;c:\jwsdp-1_0_01\common\lib\activation.jar;c:\jwsdp-1_0_01\common\lib\commons-logging.jar;c:\jwsdp-1_0_01\common\lib\dom4j.jar;c:\jwsdp-1_0_01\common\lib\mail.jar;c:\jwsdp -1_0_01\common\lib\jaxrpc-api.jar;c:\jwsdp-1_0_01\common\lib\jaxrpc-ri.jar

Any help would be greatly appriecated.
Paul Cahoon
hh hjhkhj

Joined: Dec 13, 2004
Posts: 1
I agree. Here's the link: http://aspose.com/file-tools
subject: HttpSOAPConnectionFactory not found
It's not a secret anymore!