• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpSOAPConnectionFactory not found

 
Paul Cahoon
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to connect to a webservice, however the following line of code is causing is not working.
SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
error:
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.
Thanks,
Paul Cahoon
 
hh hjhkhj
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dsa
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic