https webservice와의 통신 중 오류가 발생했습니다. 나는 아래 봄의 WebServiceTemplate를 사용하고SSLHandshakeException이 Spring WebServiceTemplate을 사용하여 https 웹 서비스와 통신합니다.
org.springframework.ws.client.WebServiceIOException: I/O error:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid
certification path to requested target; nested exception is
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX
path
building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid certification path to requested target
내가 쓴 샘플 자바 코드에서 soapui에서가 아닌 서비스를 칠 수 있어요 그것을
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:sws="http://www.springframework.org/schema/web-services"
xmlns:oxm="http://www.springframework.org/schema/oxm"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/web-services
http://www.springframework.org/schema/web-services/web-services-2.0.xsd
http://www.springframework.org/schema/oxm
http://www.springframework.org/schema/oxm/spring-oxm-1.5.xsd">
<bean id="webServiceTemplate"
class="org.springframework.ws.client.core.WebServiceTemplate"
p:marshaller-ref="jaxbMarshaller"
p:unmarshaller-ref="jaxbMarshaller"
p:defaultUri="https://XXXXXXXXXXXXXXXX"
p:messageSender-ref="messageSender">
<constructor-arg ref="messageFactory" />
</bean>
<bean id="messageSender"
class="org.springframework.ws.transport.http.CommonsHttpMessageSender" />
<!-- <bean id="messageSender"
class="org.springframework.ws.transport.http.HttpsUrlConnectionMessageSender" /> -->
<bean id="messageFactory"
class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory" />
<bean id="jaxbMarshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller"
p:contextPath="com.test.schemas" />
</beans>
내 XML 구성입니다. 어떤 사람이 왜 이런 일이 일어나고 있는지 그리고 어떻게 해결할 수 있는지를 알려 주실 수 있습니까? 우리는 3thrd party wsdl 사람들로부터 보안 인증서를 받아야합니까?
업데이트 -이 기사에 따라 서버의 인증서를 (점점 시도 - http://www.mkyong.com/webservices/jax-ws/suncertpathbuilderexception-unable-to- find-valid-certification-path-to-requested-target /) 및 jdk 트러스트 스토어에 추가하지만 지금 아래 오류가 발생합니다 - org.springframework.ws.client.WebServiceTransportException : Precondition Failed [412] – user3097172
can anyone PLZ 도움? – user3097172