user manual

SilkPerformer Java Explorer User Guide 71
3 S
ETTING UP TESTS
Negative Testing
Web Service Emitter Timeout
When generating Web service stub code for large WSDL files, the process of
generating the Java source code may take longer then the default timeout
specified by the Axis library. The following exception will be generated:
com.segue.jexplorer.datatyp.exception.JExpWsdlException: Failed to
generate Web Service proxy library(webAxisProxy1.jar).: Failed to create
java source from WSDL.: java.io.IOException:WSDL2Java emitter timed out
(this often means the WSDL at the specified URL is inaccessible)! at
com.segue.jexplorer.runtime.plugin.impl.webservice.axis.JExpAxisProxyGen
.generateProxyLibrary(JExpAxisProxyGen.java:272) at
com.segue.jexplorer.runtime.plugin.impl.webservice.axis.JExpAxisProxyGen
.generateProxy(JExpAxisProxyGen.java:138) at
com.segue.jexplorer.runtime.communication.JExpRuntimeOperation.generateW
ebServiceProxy(JExpRuntimeOperation.java:772)
Specifying a timeout Java Explorer allows you to specify a WSDL2Java emitter timeout in a
configuration file called webservice.properties. The property in the file must be
called emitter.timeout. The value must be specified in milliseconds.
<install dir>\Java Explorer\Startup\webservice.properties:
# for generating Web Service stub code with axis libraries
# a timeout in milliseconds maybe specified for the emitter to
# generate the source files
emitter.timeout=5000
Negative Testing
Although extended support for negative testing is not available, expected
exceptions can be ignored. See “Ignoring Expected Exceptions” for details.