Troubleshooting: WSDL schemas

You can use some workarounds to problems that you might encounter during and after the import of a WSDL schema into HCL OneTest API.

Table 1. Troubleshooting WSDL schemas

Solutions and workarounds to problems with importing and synchronizing WSDL schemas

Problem Resolution
Import or synchronizing a WSDL fails with error CRRIT4235E:
error: Type: Warning
Error: [CRRIT4235E] Problem occurred during refresh of URL
"file:////filename.wsdl", issue was:
java.lang.IllegalArgumentException: Illegal character in path at index 49:
The schema might work correctly in other tools or programs.
One or more namespace declarations in the schema contain whitespace characters. The HCL OneTest API code libraries cannot work with whitespace characters. To resolve the problem, remove whitespace from namespace declarations:
  1. Open the WSDL file in a text editor and search for space characters in any namespace declarations. The index number shown in the error message gives the character count into a particular namespace attribute. Remove the whitespace characters.
  2. Reload the schema. Do this task by either deleting the schema from the Schema Library and importing it again, or by selecting the schema and clicking Rebuild Schema.
Loading a WSDL schema fails with a org.xml.sax.SAXParseException error.
The following message is displayed when loading the file into Schema Library of Architecture School:
[CRRIT4235E] Problem occurred during refresh of URL
"file:/ ", issue was:com.ghc.utils.GHException:
There was an error parsing your WSDL file :WSDLException:
faultCode=PARSER_ERROR: Problem parsing '- WSDL Document -'.:
org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]"
is not allowed. 
The following message is displayed on the JVM console when loading the file to the Logical View of Architecture School. No objects are built:
javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR:
Problem parsing '- WSDL Document -'.: org.xml.sax.SAXParseException:
The processing instruction target matching "[xX][mM][lL]" is not allowed.
White space characters before the XML declaration are not supported by the XML parsing library.
  1. Delete the schema from Schema Library or Logical View.
  2. Open the WSDL file in a text editor and inspect the first characters on the first line. Remove any whitespace characters.
  3. Import the schema again.