• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HttpSOAPConnectionFactory not found

 
Greenhorn
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();
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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
dsa
 
If you open the box, you will find Heisenberg strangling Shrodenger's cat. And waving this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic