Skip to main content

When using a WSDL to generate a Web Client, an error is shown "Error: Cannot find type information"

Problem:

When accessing Services > Generate Client > using WSDL , the following error is received:

Error: Cannot find type information for:
'optInStatus' of
'CPNI' of'
accountSummary' of
'GetAccountSummaryReturn

'The header of the WSDL being used:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://simulation.testspace.com/omnia"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://simulation.testspace.com/omnia"
xmlns:intf="http://simulation.testspace.com/omnia"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.3Built on Oct 05, 2005 (05:23:37 EDT)-->
<wsdl:types> <schema targetNamespace="http://simulation.testspace.com/omnia"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>

Resolution:

The WSDL uses the following two prefixes for the http://www.w3.org/2001/XMLSchema namespace within the wsdl:types section:
  • The xsd prefix
  • The empty prefix
However, this schema defines only one, the empty prefix. The message indicates that it cannot find the type for optInStatus because its type is xsd:string.
To fix the problem, add the xmlns:xsd="http://www.w3.org/2001/XMLSchema attribute to the schema element, as in the example below:
  <schema targetNamespace=
"http://simulation.testspace.com/omnia"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Old KB# 14221