• Capgemini
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies

Hi,

 

We are trying to integrate salesforce with an external system using Callouts. We recieved WSDL from external system and we are able generate wsdl2apex classes sucessfully. But the relationships are missing between the classes. Due to this we are not able to call the external web service. We found that this is due to the <xsd: extension> elements found in WSDL. Is there any way to reolsve this issue? Is there any way to remove <extension> elements without disturbing the schema?

<xsd:complexType abstract="false" name="InsurancePolicySearchCriteria"> <xsd:complexContent> <xsd:extension base="contractandspecification:ContractSearchCriteria"> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="0" name="lineOfBusinessName" type="xsd:string" /> <xsd:element maxOccurs="1" minOccurs="0" name="multiLinePolicyIndicator" type="xsd:string" /> <xsd:element maxOccurs="1" minOccurs="0" name="plannedEndDate" type="xsd:date" /> <xsd:element maxOccurs="1" minOccurs="0" name="policyEffectiveDate" type="xsd:date" /> <xsd:element maxOccurs="1" minOccurs="0" name="policySourceOperation" type="xsd:string" /> <xsd:element maxOccurs="1" minOccurs="0" name="policySourceSystem" type="xsd:string" /> <xsd:element maxOccurs="1" minOccurs="0" name="regionCode" type="xsd:string" /> <xsd:element maxOccurs="1" minOccurs="0" name="renewalDate" type="xsd:date" /> <xsd:element maxOccurs="1" minOccurs="0" name="version" type="xsd:string" /> <xsd:element maxOccurs="1" minOccurs="0" name="insuredSearchCriteria" type="party:PartySearchCriteria" /> <xsd:element maxOccurs="1" minOccurs="0" name="policyholderSearchCriteria" type="party:PartySearchCriteria" /> </xsd:sequence> </xsd:extension> </xsd:complexContent> </xsd:complexType>

 

<xsd:complexType abstract="false" name="ContractSearchCriteria">
   <xsd:complexContent>
    <xsd:extension base="common:SearchCriteria">
     <xsd:sequence>
      <xsd:element maxOccurs="1" minOccurs="0" name="externalReference" type="xsd:string" />
 
      <xsd:element maxOccurs="1" minOccurs="0" name="inceptionDate" type="xsd:date" />
     </xsd:sequence>
    </xsd:extension>
   </xsd:complexContent>
  </xsd:complexType>

 

 wsdl2apex genearted two different calsses InsurancePolicySearchCriteria & ContractSearchCriteria, but the relationship is missing between these classes. Is there any way to resolve this type of issues from salesforce?