Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8695313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:00:02+00:00 2026-06-13T01:00:02+00:00

I want to consume a web service in Java and I am using JAX.WS.

  • 0

I want to consume a web service in Java and I am using JAX.WS. Everything is working fine until I try to consume a webservice over SSL (https). I have added the certificate of the site to keystore using keytool. Still no success. Anyone has done it before ? The webservice is from a third party payment gateway like paypal-payflo etc… so regular webservice whose certificate comes from Verisign. Any tip would help. It is a SOAP webservice with wsdl.

The error trace:

Exception in thread “main” javax.xml.ws.WebServiceException: Failed to
access the WSDL at:
xxxxx.xxxxxx.xxx/creditcardWS/CreditCardService/v1?wsdl. It failed
with: Got Connection refused: connect while opening stream from
xxxxxx.xxxxxx.xxx/creditcardWS/CreditCardService/v1?wsdl. at
com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLPars‌​er.java:173)
at
com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.ja‌​va:155)
at
com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.ja‌​va:120)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.jav‌​a:260)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.(WSServiceDelegate.java:2‌​23)
at
com.sun.xml.internal.ws.client.WSServiceDelegate.(WSServiceDelegate.java:1‌​71)
at
com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java‌​:96)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T01:00:05+00:00Added an answer on June 13, 2026 at 1:00 am

    Does setting your own keystore to javax.net.ssl.trustStore help?

    String keystorePath = "local.keystore";
    System.setProperty("javax.net.ssl.trustStore", keystorePath);
    

    Be sure to check if you can read from that path (current example assumes local.keystore is in classpath.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to consume a web service over https from a java client. What
I have to consume a Java web service and want to do it using
I want to consume Java based web service with c#.net client. The problem is,
I want to consume a web service using jquery's get function. There is no
I want to consume a web service that is running on the local machine
I have a web service defined in .Net and I want to consume it
I want to consume WCF web service from Android application. I have worked on
I want to consume a json web service , this is the url :
I am currently writing a java REST Web Service using Netbeans and Glassfish. The
I have an asp.net web service that I want to consume from another asp.net

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.