IBM Support

DataStage Web Services Client stage fails with "Service invocation exception: unknown protocol: https" when calling a webservice using the HTTPS protocol.

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.(URL.java:574) at java.net.URL.(URL.java:464) at java.net.URL.(URL.java:413) at com.ascentialsoftware.wsclient.OperationCall.createCall(OperationCall.java:455) ... 7 more Problem occurs on Solaris or HP platform.

Resolving The Problem

Perform the following steps to correct this:

  1. Open the job in DataStage Designer
  2. On the WebServices Client stage, right click and select "Grid Style"
  3. In the dialogue that comes up, click on "Properties" tab
  4. Expand the window and look for "JVM Options" in the Name column
  5. Add the following in the corresponding Value column:
    -Djava.protocol.handler.pkgs=com.ibm.net.ssl.www2.protocol
  6. Click OK
  7. Re-compile the job and run it

The stage should then be able to call the webservice using HTTPS protocol.

[{"Product":{"code":"SSVSEF","label":"IBM InfoSphere DataStage"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF027","label":"Solaris"},{"code":"PF010","label":"HP-UX"}],"Version":"8.5;8.1;8.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 June 2018

UID

swg21446732