function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SadminSadmin 

Apex generation failed when trying to generate Apexclass from WSDL.

Hi ,

I am trying to parse WSDL to Apex.After parsing its showing the error like.
Apex generation failed.
Error: Unsupported WSDL. Found more than one part for message SPAProduct_SPAProductPrice_response

The WSDL is:-

<?xml version="1.0" encoding="UTF-8"?>
<!--Created by TIBCO WSDL-->
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="urn:enterprise.soap.sforce.com" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:partyInfo="http://www.tibco.com/namespaces/bc/2002/04/partyinfo.xsd" xmlns:ns0="http://www.tibco.com/schemas/SFDCIntegration/Shared Resources/XSD/Schema.xsd" xmlns:ns1="http://www.tibco.com/schemas/SFDCIntegration/Shared Resources/XSD/Schema.xsd3" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="SForceSeagateSPAService" targetNamespace="urn:enterprise.soap.sforce.com">
    <wsdl:types>
        <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pi="http://www.tibco.com/namespaces/bc/2002/04/partyinfo.xsd" targetNamespace="http://www.tibco.com/namespaces/bc/2002/04/partyinfo.xsd" elementFormDefault="unqualified" attributeFormDefault="unqualified">
            <complexType name="party">
                <sequence>
                    <element name="domain" type="xsd:string" minOccurs="0"/>
                    <element name="name" type="xsd:string"/>
                </sequence>
            </complexType>
            <element name="PartyInfo">
                <complexType>
                    <sequence>
                        <element name="from" type="pi:party"/>
                        <element name="to" type="pi:party"/>
                        <element name="operationID" type="xsd:string"/>
                        <element name="operationType" type="xsd:string"/>
                        <element name="transactionID" type="xsd:string"/>
                    </sequence>
                </complexType>
            </element>
        </schema>
        <xs:schema xmlns="http://www.tibco.com/schemas/SFDCIntegration/Shared Resources/XSD/Schema.xsd" targetNamespace="http://www.tibco.com/schemas/SFDCIntegration/Shared Resources/XSD/Schema.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified">
            <xs:element name="SPARequest">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="SPARequestHeader">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="userID" type="xs:string" minOccurs="0"/>
                                    <xs:element name="sessionID" type="xs:string" minOccurs="0"/>
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>
                        <xs:element name="SPARequestBody">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="customerNumber" type="xs:string"/>
                                    <xs:element name="productNumber" type="xs:string" minOccurs="0"/>
                                    <xs:element name="condition" type="xs:string" minOccurs="0"/>
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
        <xs:schema xmlns="http://www.tibco.com/schemas/SFDCIntegration/Shared Resources/XSD/Schema.xsd3" targetNamespace="http://www.tibco.com/schemas/SFDCIntegration/Shared Resources/XSD/Schema.xsd3" elementFormDefault="qualified" attributeFormDefault="unqualified">
            <xs:element name="SPAProductResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="SPAProductResponseHeader">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="userID" type="xs:string" minOccurs="0"/>
                                    <xs:element name="sessionID" type="xs:string" minOccurs="0"/>
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>
                        <xs:element name="SPAProductResponseBody">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="customerNumber" type="xs:string"/>
                                    <xs:element name="productNumber" type="xs:string" minOccurs="0"/>
                                    <xs:element name="standardPrice" type="xs:double" minOccurs="0"/>
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
    </wsdl:types>
    <wsdl:portType name="SPAProduct">
        <wsdl:documentation>BCWSDL:SPAProduct</wsdl:documentation>
        <wsdl:operation name="SPAProductPrice">
            <wsdl:documentation>BCWSDL:SPAProductPrice</wsdl:documentation>
            <wsdl:input message="tns:SPAProduct_SPAProductPrice_request"/>
            <wsdl:output message="tns:SPAProduct_SPAProductPrice_response"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="SPAProduct__1.0" type="tns:SPAProduct">
        <wsdl:documentation>BCWSDL:1.0</wsdl:documentation>
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
        <wsdl:operation name="SPAProductPrice">
            <soap:operation style="document"/>
            <wsdl:input>
                <soap:body parts="body___1.0" use="literal"/>
                <soap:header part="PartyInfo" message="tns:SPAProduct_SPAProductPrice_request" use="literal"/>
                <soap:header part="head___1.0" message="tns:SPAProduct_SPAProductPrice_request" use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body parts="body___1.0" use="literal"/>
                <soap:header part="head___1.0" message="tns:SPAProduct_SPAProductPrice_response" use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:message name="SPAProduct_SPAProductPrice_request">
        <wsdl:part name="body___1.0" element="ns0:SPARequest"/>
        <wsdl:part name="PartyInfo" element="partyInfo:PartyInfo"/>
        <wsdl:part name="head___1.0" element="partyInfo:PartyInfo"/>
    </wsdl:message>
    <wsdl:message name="SPAProduct_SPAProductPrice_response">
        <wsdl:part name="body___1.0" element="ns1:SPAProductResponse"/>
        <wsdl:part name="head___1.0" element="partyInfo:PartyInfo"/>
    </wsdl:message>
    <wsdl:service name="SForceSeagateSPAServiceService">
        <wsdl:port name="SPAProduct__1.0_HTTPSPort" binding="tns:SPAProduct__1.0">
            <soap:address location="https://sibgate.seagate.com:7114/SOAP"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>