Tags

, , , ,

Problem Statement:

so many not found errors while generating jar file i.e.
Class not found RelationshipReferenceTo,
Class not found JunctionIdListNames,
Class not found SearchLayoutButtonsDisplayed,
Class not found SearchLayoutFieldsDisplayed,
Class not found RecordTypesSupported

Solution:

Download enterprise wsdl and copy these complex types from there and paste to your wsdl. Rebuild jar after that.

I copied this from enterprise wsdl and added to my WSDL,

<xsd:complexType name="SearchLayoutButtonsDisplayed"> 
<xsd:sequence> 
<xsd:element name="applicable" type="xsd:boolean"/> 
<xsd:element name="buttons" minOccurs="0" maxOccurs="unbounded" type="tns:SearchLayoutButton"/> 
</xsd:sequence> 
</xsd:complexType> 

<xsd:complexType name="SearchLayoutButton"> 
<xsd:sequence> 
<xsd:element name="apiName" type="xsd:string"/> 
<xsd:element name="label" type="xsd:string"/> 
</xsd:sequence> 
</xsd:complexType> 

<xsd:complexType name="SearchLayoutFieldsDisplayed"> 
<xsd:sequence> 
<xsd:element name="applicable" type="xsd:boolean"/> 
<xsd:element name="fields" minOccurs="0" maxOccurs="unbounded" type="tns:SearchLayoutField"/> 
</xsd:sequence> 
</xsd:complexType> 

<xsd:complexType name="SearchLayoutField"> 
<xsd:sequence> 
<xsd:element name="apiName" type="xsd:string"/> 
<xsd:element name="label" type="xsd:string"/> 
<xsd:element name="sortable" type="xsd:boolean"/> 
</xsd:sequence> 
</xsd:complexType> 

<xsd:complexType name="JunctionIdListNames"> 
<xsd:sequence> 
<xsd:element name="names" minOccurs="0" maxOccurs="unbounded" type="xsd:string"/> 
</xsd:sequence> 
</xsd:complexType> 

<xsd:complexType name="RelationshipReferenceTo"> 
<xsd:sequence> 
<xsd:element name="referenceTo" minOccurs="0" maxOccurs="unbounded" type="xsd:string"/> 
</xsd:sequence> 
</xsd:complexType> 

<xsd:complexType name="RecordTypesSupported"> 
<xsd:sequence> 
<xsd:element name="recordTypeInfos" minOccurs="0" maxOccurs="unbounded" type="tns:RecordTypeInfo"/> 
</xsd:sequence> 
</xsd:complexType> 

<xsd:complexType name="RecordTypeInfo"> 
<xsd:sequence> 
<xsd:element name="available" type="xsd:boolean"/> 
<xsd:element name="defaultRecordTypeMapping" type="xsd:boolean"/> 
<xsd:element name="master" type="xsd:boolean"/> 
<xsd:element name="name" type="xsd:string"/> 
<xsd:element name="recordTypeId" type="tns:ID" nillable="true"/> 
</xsd:sequence> 
</xsd:complexType>
Advertisements