Troubleshooting
Problem
DataStage Web Services Client stage fails with "Service invocation exception: unknown protocol: https" when calling a webservice using the HTTPS protocol. This will be seen in the job log as an Info message similar to the following:
com.ascentialsoftware.wsclient.ServiceInvocationException: Service invocation exception: unknown protocol: https
at com.ascentialsoftware.wsclient.OperationCall.createCall(OperationCall.java:459)
at com.ascentialsoftware.wsclient.OperationCall.invoke(OperationCall.java:260)
at com.ascentialsoftware.wsclient.WebService.callServiceInternal(WebService.java:1685)
at com.ascentialsoftware.wsclient.WebService.callService(WebService.java:1591)
at com.ascentialsoftware.wsclient.WebService.callService(WebService.java:1544)
at com.ascentialsoftware.wspack.Transformer.process(Transformer.java:104)
at com.ascentialsoftware.jds.StageFactory.runStage(StageFactory.java:544)
at com.ascentialsoftware.jds.StageFactory.runSource(StageFactory.java:335)
Caused by: java.net.MalformedURLException: unknown protocol: https
at java.net.URL.
Resolving The Problem
Perform the following steps to correct this:
- Open the job in DataStage Designer
- On the WebServices Client stage, right click and select "Grid Style"
- In the dialogue that comes up, click on "Properties" tab
- Expand the window and look for "JVM Options" in the Name column
- Add the following in the corresponding Value column:
-Djava.protocol.handler.pkgs=com.ibm.net.ssl.www2.protocol - Click OK
- Re-compile the job and run it
The stage should then be able to call the webservice using HTTPS protocol.
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21446732