+ Start a Discussion
BondicloudBondicloud 

WSDL with multiple portType not supported

Hi ,

I am facing below issue when i am parsing wsdl file.

Failed to parse wsdl: Found more than one wsdl:portType. WSDL with multiple portType not supported. 

and WSDL Have below code:  so what is the solution to it.How can i put within single porttype Pla Help on this
 
and the WSDL code is :
 
 <portType name="OrganizationQueryService">
  <operation name="getOrganization">
   <input message="tns:getOrganization_Input"></input>
   <output message="tns:getOrganization_Output"></output>
  </operation>
 </portType>
 <portType name="OrganizationService">
  <operation name="createOrganization">
   <input message="tns:createOrganization_Input"></input>
   <output message="tns:createOrganization_Output"></output>
  </operation>
  <operation name="updateOrganization">
   <input message="tns:updateOrganization_Input"></input>
   <output message="tns:updateOrganization_Output"></output>
  </operation>
  <operation name="deleteOrganization">
   <input message="tns:deleteOrganization_Input"></input>
   <output message="tns:deleteOrganization_Output"></output>
  </operation>
 </portType>
 <portType name="OrganizationMergeRequest">
  <operation name="OrganizationSubmitMergeRequest">
   <input message="tns:OrganizationSubmitMergeRequest_Input"></input>
   <output message="tns:OrganizationSubmitMergeRequest_Output"></output>
  </operation>
 </portType>
 ----------------------------------------------------------------------------------
  <binding name="OrganizationQueryService" type="tns:OrganizationQueryService">
  <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
   style="document"></soap:binding>
  <operation name="getOrganization">
   <soap:operation
    soapAction="document/http://xmlns.oracle.com/apps/mdm/customer:getOrganization"></soap:operation>
   <input>
    <soap:body use="literal"></soap:body>
   </input>
   <output>
    <soap:body use="literal"></soap:body>
   </output>
  </operation>
 </binding>
 <binding name="OrganizationService" type="tns:OrganizationService">
  <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
   style="document"></soap:binding>
  <operation name="createOrganization">
   <soap:operation
    soapAction="document/http://xmlns.oracle.com/apps/mdm/customer:createOrganization"></soap:operation>
   <input>
    <soap:body use="literal"></soap:body>
   </input>
   <output>
    <soap:body use="literal"></soap:body>
   </output>
  </operation>
  <operation name="updateOrganization">
   <soap:operation
    soapAction="document/http://xmlns.oracle.com/apps/mdm/customer:updateOrganization"></soap:operation>
   <input>
    <soap:body use="literal"></soap:body>
   </input>
   <output>
    <soap:body use="literal"></soap:body>
   </output>
  </operation>
  <operation name="deleteOrganization">
   <soap:operation
    soapAction="document/http://xmlns.oracle.com/apps/mdm/customer:deleteOrganization"></soap:operation>
   <input>
    <soap:body use="literal"></soap:body>
   </input>
   <output>
    <soap:body use="literal"></soap:body>
   </output>
  </operation>
 </binding>
 <binding name="OrganizationMergeRequest" type="tns:OrganizationMergeRequest">
  <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
   style="document"></soap:binding>
  <operation name="OrganizationSubmitMergeRequest">
   <soap:operation
    soapAction="document/http://xmlns.oracle.com/apps/mdm/customer:OrganizationSubmitMergeRequest"></soap:operation>
   <input>
    <soap:body use="literal"></soap:body>
   </input>
   <output>
    <soap:body use="literal"></soap:body>
   </output>
  </operation>
 </binding>
 
Best Answer chosen by Bondicloud
Rupali PophaliyaRupali Pophaliya
WSDL should not contain multiple wsdl:portType and wsdl:binding.  So, remove / comment the unwanted wsdl:portType and its respective wsdl:binding.

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts_wsdl2apex.htm