Monday, October 8, 2018

Eliminate WSDL2Java emitter timed out when performing a new build (ant deploy) in the command prompt

 
Steps below demonstrate how to eliminate WSDL2Java emitter timed out (this often means the WSDL at the specified URL is
inaccessible) when performing a new build ant deploy in NetSuite Apache Axis Sample Application in the command prompt. 
 
The reason why we get the WSDL2Java emitter timed out error is because by default timeout in seconds is set to 45. We must use -1 to disable the timeout.
 
1) Navigate to the bin directory of the sample application (i.e C:\ERP\bin)
2) Edit build.xml file
3) Set timeout = "-1" in the < axis-wsdl2java > xml tag
    < axis-wsdl2java timeout="-1" output="${generated.src.dir}" verbose="true" url="${wsdl.url}" all="true" wrapArrays="true" >
4) Save
 
Note:  When build.xml is read only, edit the properties attributes setting to be able to edit and save the file
1) Navigate to the bin directory of the sample application (i.e C:\ERP\bin)
2) Right click build.xml file
3) Select Properties
4) Under Attributes, uncheck "Read Only" checkbox
5) Save

No comments:

Post a Comment