Compilation Error when parsing WSDL file with Web Service Agent V3

Document ID : KB000088173
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
Compilation Error:

When trying to save a connection for the RA Web Service Agent v3, a Compilation Error is given and the connection cannot be saved. 

Errors similar to the following can be seen when using the verson 3 of the Web Service Agent when the Agent tries to parse a WSDL file.

Version 3.2.0 Solution: 
Compilation Error: X:\x\xxx\xxx\Agents\RA-Agent\WEBSERVICE-Agent\bin\adapter_tmp\WS_1497272367104\src\xx\xxx\www\xxxx\xxxx\webservice\RecurType_type1.java:275: error: incomparable types: int and <null> 
if ((enumeration == null) && !((value == null) || (value.equals("")))) { 

X:\x\xxx\xxx\Agents\RA-Agent\WEBSERVICE-Agent\bin\adapter_tmp\WS_1497272367104\src\xx\xxx\www\xxxx\xxxx\webservice\RecurType_type1.java:275: error: int cannot be dereferenced 
if ((enumeration == null) && !((value == null) || (value.equals("")))) { 

X:\x\xxx\xxx\Agents\RA-Agent\WEBSERVICE-Agent\bin\adapter_tmp\WS_1497272367104\src\xx\xxx\www\xxxx\xxxx\webservice\RecurType_type0.java:275: error: incomparable types: int and <null> 
if ((enumeration == null) && !((value == null) || (value.equals("")))) { 

X:\x\xxx\xxx\Agents\RA-Agent\WEBSERVICE-Agent\bin\adapter_tmp\WS_1497272367104\src\xx\xxx\www\xxxx\xxxx\webservice\RecurType_type0.java:275: error: int cannot be dereferenced 
if ((enumeration == null) && !((value == null) || (value.equals("")))) { 

Note: X:\x\xxx\xxx\Agents\RA-Agent\WEBSERVICE-Agent\bin\adapter_tmp\WS_1497272367104\src\WS_1497272367104\xxxx.java uses or overrides a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 
Note: X:\x\xxx\xxx\Agents\RA-Agent\WEBSERVICE-Agent\bin\adapter_tmp\WS_1497272367104\src\WS_1497272367104\xxxx.java uses unchecked or unsafe operations. 
Note: Recompile with -Xlint:unchecked for details. 
4 errors 

Versoin 3.3.0 Solution: 
Compilation Error: X:\x\xxx\xxx\Agents\RA-Agents\WEBSERVICE-Agent\bin\.\adapter_tmp\WS_1497265876099\src\xxxx\xxxx.java:9760: error: ')' expected 
param.cloneOMElement(); 

X:\x\xxx\xxx\Agents\RA-Agents\WEBSERVICE-Agent\bin\.\adapter_tmp\WS_1497265876099\src\xxxx\xxxx.java:9762: error: not a statement 
type)) { 

X:\x\xxx\xxx\Agents\RA-Agents\WEBSERVICE-Agent\bin\.\adapter_tmp\WS_1497265876099\src\xxxx\xxxx.java:9762: error: ';' expected 
type)) { 

3 errors 
 
Environment:
OS Version: N/A
Cause:
Cause type:
Other
Root Cause: RA WebService Agent v3 uses Axis2 framework that causes problems with correct WSDL parsing.
Resolution:
Update to a fix version listed below or a newer version if available.To avoid WSDL parsing issues caused by the Axis2 framework, use either:
  1. The RA SOAP Web Service v4.0 Agent, which is based on different libraries and uses CXF for SOAP jobs rather than Axis2.
Or
  1. Use the RA SOAP Web Service Solution v4.1 Agent that is not dependant upon any framework because it uses a native mode.


Fix Status: Released

Fix Version(s):
Automation Engine v12.0.0 - Available
RA Web Service SOAP v4.1.0 - Available
RA Web Service SOAP v4.0.0 - Available
Additional Information:
Workaround :
Use an alternative tool like Microsoft's Web Services Description Language Tool (Wsdl.exe).