+ Start a Discussion
Kiru535Kiru535 

Geeting parse error while generating APEX class . This is Siebel WSDL

I am getting below error while parsing the WSDL.

Apex Generation Failed
Unable to find element for {http://siebel.com/EQXQuote}Create_Output 


I am getting below error while parsing the WSDL.

Apex Generation Failed
Unable to find element for {http://siebel.com/EQXQuote}Create_Output 

WSDL :

<?xml version="1.0" encoding="UTF-8"?><definitions
 xmlns="http://schemas.xmlsoap.org/wsdl/"
 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
 targetNamespace="http://siebel.com/EQXQuote"
 xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:tns="http://siebel.com/EQXQuote"
><types
><xsd:schema
 elementFormDefault="qualified"
 attributeFormDefault="unqualified"
 targetNamespace="http://siebel.com/EQXQuote"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
><xsd:element
 name="Create_Input"
><xsd:complexType
><xsd:sequence
><xsd:element
 ref="tns:ListOfQuote"
></xsd:element
><xsd:element
 name="StatusObject"
 minOccurs="0"
 type="xsd:string"
></xsd:element
></xsd:sequence
></xsd:complexType
></xsd:element
><xsd:element
 name="Create_Output"
><xsd:complexType
><xsd:sequence
><xsd:element
 ref="tns:ListOfQuote"
></xsd:element
></xsd:sequence
></xsd:complexType
></xsd:element
></xsd:schema
><xsd:schema
 elementFormDefault="qualified"
 attributeFormDefault="unqualified"
 xmlns:xsdLocal1="https://siebel.com/EQXQuote"
 targetNamespace="https://siebel.com/EQXQuote"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
><xsd:annotation
><xsd:documentation
>Copyright (C) 2001-2004 Siebel Systems, Inc. All rights reserved. Siebel XSD Generation</xsd:documentation
></xsd:annotation
><xsd:element
 name="ListOfQuote"
 type="xsdLocal1:ListOfQuote"
></xsd:element
><xsd:complexType
 name="ListOfQuoteTopElmt"
><xsd:sequence
><xsd:element
 name="ListOfQuote"
 maxOccurs="1"
 minOccurs="1"
 type="xsdLocal1:ListOfQuote"
></xsd:element
></xsd:sequence
></xsd:complexType
><xsd:complexType
 name="ListOfQuote"
><xsd:sequence
><xsd:element
 name="Quote"
 maxOccurs="unbounded"
 minOccurs="0"
 type="xsdLocal1:Quote"
></xsd:element
></xsd:sequence
></xsd:complexType
><xsd:complexType
 name="Quote"
><xsd:sequence
><xsd:element
 name="StartDate"
 maxOccurs="1"
 minOccurs="0"
 type="xsd:string"
></xsd:element
><xsd:element
 name="BillingStartDate"
 maxOccurs="1"
 minOccurs="0"
 type="xsd:string"
></xsd:element
><xsd:element
 name="QuoteNumber"
 maxOccurs="1"
 minOccurs="0"
 type="xsd:string"
></xsd:element
><xsd:element
 name="OpportunityId"
 maxOccurs="1"
 minOccurs="0"
 type="xsd:string"
></xsd:element
><xsd:element
 name="Name"
 maxOccurs="1"
 minOccurs="0"
 type="xsd:string"
></xsd:element
><xsd:element
 name="IntegrationId"
 maxOccurs="1"
 minOccurs="0"
 type="xsd:string"
></xsd:element
><xsd:element
 name="Id"
 maxOccurs="1"
 minOccurs="0"
 type="xsd:string"
></xsd:element
><xsd:element
 name="EndDate"
 maxOccurs="1"
 minOccurs="0"
 type="xsd:string"
></xsd:element
><xsd:element
 name="AccountId"
 maxOccurs="1"
 minOccurs="0"
 type="xsd:string"
></xsd:element
><xsd:element
 name="Account"
 maxOccurs="1"
 minOccurs="0"
 type="xsd:string"
></xsd:element
></xsd:sequence
></xsd:complexType
></xsd:schema
></types
><message
 name="Create_Input"
><part
 name="Create_Input"
 element="tns:Create_Input"
></part
></message
><message
 name="Create_Output"
><part
 name="Create_Output"
 element="tns:Create_Output"
></part
></message
><portType
 name="createQuotePort"
><operation
 name="Create"
><input
 message="tns:Create_Input"
></input
><output
 message="tns:Create_Output"
></output
></operation
></portType
><binding
 name="createQuotePort"
 type="tns:createQuotePort"
><soap:binding
 transport="http://schemas.xmlsoap.org/soap/http"
 style="document"
></soap:binding
><operation
 name="Create"
><soap:operation
 soapAction="document/http://siebel.com/EQXQuote:Create"
></soap:operation
><input
><soap:body
 use="literal"
></soap:body
></input
><output
><soap:body
 use="literal"
></soap:body
></output
></operation
></binding
><service
 name="EQXQuote"
><port
 binding="tns:createQuotePort"
 name="createQuotePort"
><soap:address
 location="http://10.193.154.10/eai_enu/start.swe?SWEExtSource=WebService&amp;SWEExtCmd=Execute&amp;Username=tibco&amp;Password=Admin"
></soap:address
></port
></service
></definitions
>

 

Jonathan GreenJonathan Green
Multiple schema elements reference the same targetnamespace. 

Here's an earlier post that points this out: 

https://developer.salesforce.com/forums?id=906F00000008yZRIAY