スタンドアロンの Java クラス (main
メソッドを含む) から jax ws Web サービスを呼び出そうとしています。SOAP UI でこれを試したところ、応答が返されました。
私のJavaコード: main()メソッド内:
GInformation getGMInfo = new GInformation();
GInformationResult getGMResult = new GInformationResult();
GKService GKProxy = getProxy();
//Set the Request
XMLGregorianCalendar xmlGreg = null;
getGMInfo.setRequestId("");
getGMInfo.setMessageDateTime(xmlGreg);
try {
//Get the response
getGMResult = GKProxy.getGInformation(getGMInfo);
System.out.println("Address: "+getGMResult.getInfo());
} catch (OperationFaultException e) {
e.printStackTrace();
} catch (SystemFaultException e) {
e.printStackTrace();
}
しかし、次のようなエラーで失敗しています:
org.apache.axis2.AxisFault: WSWS7130E: No Secure Sockets Layer (SSL) configuration is available for the https://mklip.verd.Gin/WS/v2.8 endpoint.
私はこれを非常に長い間修正しようとしてきましたが、気が狂う寸前です. 誰かが私がここで間違っていることを教えてもらえますか? スタンドアロンのJavaクラスからjax-wsを呼び出すことはまったく可能ですか、それともWebサーバーが必要ですか? ただし、このアプリケーションには Web サーバーがありません。