• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

HttpSOAPConnectionFactory not found

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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(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
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is no greater crime than stealing somebody's best friend. I miss you tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic