나는 상호 SSL 인증을 사용하는 웹 서비스를 가지고있다. 클라이언트 인증서를 설치하면 브라우저에서 제대로 액세스 할 수 있습니다.서버가 클라이언트 인증서를 기대할 때 wsimport를 사용하는 방법?
서비스에 액세스하기위한 Java 코드를 생성하려면 wsimport
을 사용하여 액세스 할 수 있어야합니다.
wsimport
을 사용하여 URL에 액세스 할 수 있도록 내 자격 증명을 설정하려면 어떻게해야합니까?
다음은 내가 시도하는 예입니다. 그러나 인증 할 수 없기 때문에 시간이 초과되었습니다. 어떤 도움
wsimport ./sample.wsdl -p com.company.ws.sample -Xnocompile -d ./src -extension -keep -XadditionalHeaders
감사
편집 :
이 무엇 wsimport
인쇄입니다. WSDL에 확실히 유효하며, 지정된 위치에, 그것은 인증 내 자격 증명을 전달하는 방법을 알아내는의 문제 :
wsimport https://wsdl.location.com?WSDL -p com.company.ws.sample -Xnocompile
-d ./src -extension -keep -XadditionalHeaders
parsing WSDL...
[ERROR] Received fatal alert: handshake_failure
Failed to read the WSDL document: "https://wsdl.location.com?WSDL", because 1) could
not find the document; /2) the document could not be read; 3) the root element of
the document is not <wsdl:definitions>.
[ERROR] failed.noservice=Could not find wsdl:service in the provided WSDL(s):
At least one WSDL with at least one service definition needs to be provided.
Failed to parse the WSDL.
오류/예외 스택 추적을 공유하면 다른 사람들이 문제를 이해하는 데 도움이됩니다. – sundar
게시물을 업데이트하여 자세한 내용을 표시했습니다. 감사합니다 – Cuga
http://ibswings.blogspot.in/2008/12/running-axis-wsdl2java-on-https-wsdl.html 이것을 시도하십시오 – sundar