# Generic Web Service Client error upon connecting to DGWS

**URL:** <https://forum.knime.com/t/generic-web-service-client-error-upon-connecting-to-dgws/21433>\
**Category:** KNIME Extensions\
**Tags:** labs\
**Created:** [February 28, 2020, 3:07pm UTC](https://forum.knime.com/t/generic-web-service-client-error-upon-connecting-to-dgws/21433 "2020-02-28T15:07:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam\_of\_barot](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/ed655f/32.png) [@adam\_of\_barot](https://forum.knime.com/u/adam_of_barot)\
**Post date:** [February 28, 2020, 3:07pm UTC](https://forum.knime.com/t/generic-web-service-client-error-upon-connecting-to-dgws/21433/1 "2020-02-28T15:07:54Z")

</div>

Hi!

I’m trying to connect to the DiscoveryGate Web Service (DGWS) with SOAP.

**WSDL** : [https://www.discoverygate.com/webservice/1.2/DGWS?WSDL](https://www.discoverygate.com/webservice/1.2/DGWS?WSDL)  
**API ref** : [https://www.discoverygate.com/webservice/1.2/docs/api-reference/index.html](https://www.discoverygate.com/webservice/1.2/docs/api-reference/index.html)

I can successfully load the WSDL, and fill out the required information. However, when I try to execute the node, it gives me the following error:

_WARN Generic Web Service Client 0:1 Failed on row “Row0”: Can not set java.util.List field com.discoverygate.webservice.types.ServiceRequest.moleculeFlags to com.discoverygate.webservice.types.MoleculeRetrievalFlags_  
_ERROR Generic Web Service Client 0:1 Execute failed: Webservice invocation failed on all rows, check log for details_

Does anyone have a fix for this? Or can someone suggest an alternative connection method using the REST nodes?

**Note** : DGWS needs a valid license to perform a search, but as I can’t even invoke the service, that’s not a problem for reproducing the issue.

Relevant log information regarding the WARN:

_2020-02-28 15:32:39,866 : WARN : KNIME-Worker-47-Generic Web Service Client 0:1 : : WSExecutor : Generic Web Service Client : 0:1 : Failed on row “Row0”: Can not set java.util.List field com.discoverygate.webservice.types.ServiceRequest.moleculeFlags to com.discoverygate.webservice.types.MoleculeRetrievalFlags_  
_java.lang.IllegalArgumentException: Can not set java.util.List field com.discoverygate.webservice.types.ServiceRequest.moleculeFlags to com.discoverygate.webservice.types.MoleculeRetrievalFlags_

- at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)\*
- at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)\*
- at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81)\*
- at java.lang.reflect.Field.set(Field.java:764)\*
- at com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.set(Accessor.java:280)\*
- at org.knime.ext.cxf.webservice.client.node.SingleParamNode.writeChildValue(SingleParamNode.java:952)\*
- at org.knime.ext.cxf.webservice.client.node.SingleParamNode.internalCreateInvocationObject(SingleParamNode.java:936)\*
- at org.knime.ext.cxf.webservice.client.node.SingleParamNode.createInvocationObjects(SingleParamNode.java:896)\*
- at org.knime.ext.cxf.webservice.client.node.WSExecutor.calculate(WSExecutor.java:254)\*
- at org.knime.ext.cxf.webservice.client.node.CxfClientNodeModel.execute(CxfClientNodeModel.java:85)\*
- at org.knime.core.node.NodeModel.execute(NodeModel.java:737)\*
- at org.knime.core.node.NodeModel.executeModel(NodeModel.java:571)\*
- at org.knime.core.node.Node.invokeFullyNodeModelExecute(Node.java:1236)\*
- at org.knime.core.node.Node.execute(Node.java:1016)\*
- at org.knime.core.node.workflow.NativeNodeContainer.performExecuteNode(NativeNodeContainer.java:557)\*
- at org.knime.core.node.exec.LocalNodeExecutionJob.mainExecute(LocalNodeExecutionJob.java:95)\*
- at org.knime.core.node.workflow.NodeExecutionJob.internalRun(NodeExecutionJob.java:218)\*
- at org.knime.core.node.workflow.NodeExecutionJob.run(NodeExecutionJob.java:124)\*
- at org.knime.core.util.ThreadUtils$RunnableWithContextImpl.runWithContext(ThreadUtils.java:334)\*
- at org.knime.core.util.ThreadUtils$RunnableWithContext.run(ThreadUtils.java:210)\*
- at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\*
- at java.util.concurrent.FutureTask.run(FutureTask.java:266)\*
- at org.knime.core.util.ThreadPool$MyFuture.run(ThreadPool.java:123)\*
- at org.knime.core.util.ThreadPool$Worker.run(ThreadPool.java:246)\*

---

<div class="post-metadata">

**Author:** ![ScottF](https://forum-cdn.knime.com/user_avatar/forum.knime.com/scottf/32/61316_2.png) [@ScottF](https://forum.knime.com/u/ScottF)\
**Post date:** [March 2, 2020, 8:36pm UTC](https://forum.knime.com/t/generic-web-service-client-error-upon-connecting-to-dgws/21433/2 "2020-03-02T20:36:19Z")

</div>

Hi @adam_of_barot and welcome to the forum.

I can reproduce the same error you’re seeing. Let me check internally and see if someone else can shed some additional light here.

EDIT: note that according to the node description, “this node does currently not support optional input parameters. Also web services that need authentication are not accessible.” We have a ticket in our system to update the node to address the former issue (internal reference: AP-11673). So that may be the problem - but I’ll ask.

---

<div class="post-metadata">

**Author:** ![adam\_of\_barot](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/ed655f/32.png) [@adam\_of\_barot](https://forum.knime.com/u/adam_of_barot)\
**Post date:** [March 3, 2020, 8:11am UTC](https://forum.knime.com/t/generic-web-service-client-error-upon-connecting-to-dgws/21433/3 "2020-03-03T08:11:05Z")

</div>

Hi @ScottF, thank you for looking into the issue.

I’m guessing the issue shouldn’t be with authentication, as the node gets stuck on processing the ‘moleculeFlags’ parameter. Also, authentication is seemingly done by the ‘licenseKey’ parameter, so I don’t have to use the node’s ‘Authentication’ tab.

---

<div class="post-metadata">

**Author:** ![ScottF](https://forum-cdn.knime.com/user_avatar/forum.knime.com/scottf/32/61316_2.png) [@ScottF](https://forum.knime.com/u/ScottF)\
**Post date:** [March 3, 2020, 3:25pm UTC](https://forum.knime.com/t/generic-web-service-client-error-upon-connecting-to-dgws/21433/4 "2020-03-03T15:25:28Z")

</div>

I was actually thinking it might be due more to the “optional input parameters”. But one of our support engineers suggested that it might be a data type issue - moleculeFlags is of type _MoleculeRetrievalFlags_, and KNIME isn’t handling that correctly.

Does DiscoveryGate offer a REST interface as well?

---

<div class="post-metadata">

**Author:** ![adam\_of\_barot](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/ed655f/32.png) [@adam\_of\_barot](https://forum.knime.com/u/adam_of_barot)\
**Post date:** [March 3, 2020, 3:39pm UTC](https://forum.knime.com/t/generic-web-service-client-error-upon-connecting-to-dgws/21433/5 "2020-03-03T15:39:51Z")

</div>

Oh, I get it. I was focusing on the wrong part of our quote then.

As far as I know, DiscoveryGate doesn’t offer a REST API unfortunately.

---

<div class="post-metadata">

**Author:** ![MelBall](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/9fc29f/32.png) [@MelBall](https://forum.knime.com/u/MelBall)\
**Post date:** [October 10, 2023, 8:19am UTC](https://forum.knime.com/t/generic-web-service-client-error-upon-connecting-to-dgws/21433/6 "2023-10-10T08:19:32Z")

</div>

Hi Scott,  
Knime still can’t support optional input parameters?  
I have a service that requieres 2 parameters and it is failing. Can that be solve?

 ![knime1](https://forum-cdn.knime.com/uploads/default/original/3X/a/c/ac170f4c1c70288be9226a4051453aa87d71c36f.png)
