I want to use soap web service with this wsdl by java:
https://sadad.shaparak.ir/services/MerchantUtility.asmx?wsdl
but this error happens when I run some methods:
Failed to access the WSDL at: https://sadad.shaparak.ir/services/MerchantUtility.asmx?wsdl. It failed with: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.
I use codes below to do this :
MerchantUtilitySoap port;
MerchantUtility service = new MerchantUtility();
port = service.getMerchantUtilitySoap();
And for example use this method from this web service:
long timeStamp = Long.parseLong(port.calcTimeStamp());
who can fix this problem? what should I do to fix it for my website?
Also I read these solutions but they can not help me to solve this problem:
javax.xml.ws.WebServiceException: Failed to access the WSDL
"PKIX path building failed" and "unable to find valid certification path to requested target"