Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

HttpSOAPConnectionFactory not found

Posts: 2
  • 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();
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(

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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic