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
Muni12345Muni12345 

While parsing the WSDL getting error

Hi,
I am trying to parse the WSDL in to Apex class i am getting some error, Please find the below error for reference
"Error: Failed to parse wsdl: WSC only supports SOAP Header use='literal' but found encoded"
Please find the below wsdl:
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="IRapportDataImportservice" targetNamespace="http://tempuri.org/" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/">
  <message name="SendApplication0Request">
    <part name="aApplicationXml" type="xs:string"/>
  </message>
  <message name="SendApplication0Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="UpdateApplication1Request">
    <part name="aApplicationXml" type="xs:string"/>
  </message>
  <message name="UpdateApplication1Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="UpdateAsset2Request">
    <part name="aAssetUpdateXml" type="xs:string"/>
  </message>
  <message name="UpdateAsset2Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="UpdateDocumentResponse3Request">
    <part name="aDocumentXml" type="xs:string"/>
  </message>
  <message name="UpdateDocumentResponse3Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="UploadAttachment4Request">
    <part name="aUploadAttachmentXml" type="xs:string"/>
  </message>
  <message name="UploadAttachment4Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="UpdateContractSetup5Request">
    <part name="aSetupXml" type="xs:string"/>
  </message>
  <message name="UpdateContractSetup5Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="SendContractSetup6Request">
    <part name="aSetupXml" type="xs:string"/>
  </message>
  <message name="SendContractSetup6Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="UpsertCustomer7Request">
    <part name="aCustomerXml" type="xs:string"/>
  </message>
  <message name="UpsertCustomer7Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="BookAllSetups8Request">
    <part name="aBookingXml" type="xs:string"/>
  </message>
  <message name="BookAllSetups8Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="GetTableCodeDescExternal9Request">
    <part name="aTableSyncXml" type="xs:string"/>
  </message>
  <message name="GetTableCodeDescExternal9Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="CreateDocuments10Request">
    <part name="aCreateDocXML" type="xs:string"/>
  </message>
  <message name="CreateDocuments10Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="RequestDocumentPDF11Request">
    <part name="aReqDocPDFXML" type="xs:string"/>
  </message>
  <message name="RequestDocumentPDF11Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="RequestDocumentInfo12Request">
    <part name="aReqDocInfoXML" type="xs:string"/>
  </message>
  <message name="RequestDocumentInfo12Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="CreateCommentExternal13Request">
    <part name="aCommentXml" type="xs:string"/>
  </message>
  <message name="CreateCommentExternal13Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="CalculateQuoteExternal14Request">
    <part name="aQuoteXml" type="xs:string"/>
  </message>
  <message name="CalculateQuoteExternal14Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="PricingParametersSync15Request">
    <part name="aPricingParamsXml" type="xs:string"/>
  </message>
  <message name="PricingParametersSync15Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="ApplicationSearchExternal16Request">
    <part name="aApplicationSearchXml" type="xs:string"/>
  </message>
  <message name="ApplicationSearchExternal16Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="GetApplicationExternal17Request">
    <part name="aGetApplicationXml" type="xs:string"/>
  </message>
  <message name="GetApplicationExternal17Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="CustomerSearchExternal18Request">
    <part name="aCustomerSearchXml" type="xs:string"/>
  </message>
  <message name="CustomerSearchExternal18Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="GetCustomerExternal19Request">
    <part name="aGetCustomerXml" type="xs:string"/>
  </message>
  <message name="GetCustomerExternal19Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="GetUserRoles20Request">
    <part name="aUserRolesXml" type="xs:string"/>
  </message>
  <message name="GetUserRoles20Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="CreateRapportUser21Request">
    <part name="aCreateRapportUserXml" type="xs:string"/>
  </message>
  <message name="CreateRapportUser21Response">
    <part name="return" type="xs:string"/>
  </message>
  <message name="ModifyRapportUser22Request">
    <part name="aModifyRapportUserXml" type="xs:string"/>
  </message>
  <message name="ModifyRapportUser22Response">
    <part name="return" type="xs:string"/>
  </message>
     <operation name="UpsertCustomer">
      <input message="tns:UpsertCustomer7Request"/>
      <output message="tns:UpsertCustomer7Response"/>
    </operation>
    <operation name="BookAllSetups">
      <input message="tns:BookAllSetups8Request"/>
      <output message="tns:BookAllSetups8Response"/>
    </operation>
    <operation name="GetTableCodeDescExternal">
      <input message="tns:GetTableCodeDescExternal9Request"/>
      <output message="tns:GetTableCodeDescExternal9Response"/>
    </operation>
    <operation name="CreateDocuments">
      <input message="tns:CreateDocuments10Request"/>
      <output message="tns:CreateDocuments10Response"/>
    </operation>
    <operation name="RequestDocumentPDF">
      <input message="tns:RequestDocumentPDF11Request"/>
      <output message="tns:RequestDocumentPDF11Response"/>
    </operation>
    <operation name="RequestDocumentInfo">
      <input message="tns:RequestDocumentInfo12Request"/>
      <output message="tns:RequestDocumentInfo12Response"/>
    </operation>
    <operation name="CreateCommentExternal">
      <input message="tns:CreateCommentExternal13Request"/>
      <output message="tns:CreateCommentExternal13Response"/>
    </operation>
    <operation name="CalculateQuoteExternal">
      <input message="tns:CalculateQuoteExternal14Request"/>
      <output message="tns:CalculateQuoteExternal14Response"/>
    </operation>
    <operation name="PricingParametersSync">
      <input message="tns:PricingParametersSync15Request"/>
      <output message="tns:PricingParametersSync15Response"/>
    </operation>
    <operation name="ApplicationSearchExternal">
      <input message="tns:ApplicationSearchExternal16Request"/>
      <output message="tns:ApplicationSearchExternal16Response"/>
    </operation>
    <operation name="GetApplicationExternal">
      <input message="tns:GetApplicationExternal17Request"/>
      <output message="tns:GetApplicationExternal17Response"/>
    </operation>
    <operation name="CustomerSearchExternal">
      <input message="tns:CustomerSearchExternal18Request"/>
      <output message="tns:CustomerSearchExternal18Response"/>
    </operation>
    <operation name="GetCustomerExternal">
      <input message="tns:GetCustomerExternal19Request"/>
      <output message="tns:GetCustomerExternal19Response"/>
    </operation>
    <operation name="GetUserRoles">
      <input message="tns:GetUserRoles20Request"/>
      <output message="tns:GetUserRoles20Response"/>
    </operation>
    <operation name="CreateRapportUser">
      <input message="tns:CreateRapportUser21Request"/>
      <output message="tns:CreateRapportUser21Response"/>
    </operation>
    <operation name="ModifyRapportUser">
      <input message="tns:ModifyRapportUser22Request"/>
      <output message="tns:ModifyRapportUser22Response"/>
    </operation>
    <operation name="UnlockRapportUsers">
      <input message="tns:UnlockRapportUsers23Request"/>
      <output message="tns:UnlockRapportUsers23Response"/>
    </operation>
    <operation name="RetrieveRapportUsers">
      <input message="tns:RetrieveRapportUsers24Request"/>
      <output message="tns:RetrieveRapportUsers24Response"/>
    </operation>
  </portType>
  <binding name="IRapportDataImportbinding" type="tns:IRapportDataImport">
    <binding xmlns="http://schemas.xmlsoap.org/wsdl/soap/" style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="SendApplication">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:RapportDataImportIntf-IRapportDataImport#SendApplication" style="document"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </output>
    </operation>
    <operation name="UpdateApplication">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:RapportDataImportIntf-IRapportDataImport#UpdateApplication" style="document"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </output>
    </operation>
    <operation name="UpdateAsset">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:RapportDataImportIntf-IRapportDataImport#UpdateAsset" style="document"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </output>
    </operation>
    <operation name="UpdateDocumentResponse">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:RapportDataImportIntf-IRapportDataImport#UpdateDocumentResponse" style="document"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </output>
    </operation>
    <operation name="UploadAttachment">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:RapportDataImportIntf-IRapportDataImport#UploadAttachment" style="document"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </output>
    </operation>
    <operation name="UpdateContractSetup">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:RapportDataImportIntf-IRapportDataImport#UpdateContractSetup" style="document"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </output>
    </operation>
    <operation name="SendContractSetup">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:RapportDataImportIntf-IRapportDataImport#SendContractSetup" style="document"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </output>
    </operation>
    <operation name="UpsertCustomer">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:RapportDataImportIntf-IRapportDataImport#UpsertCustomer" style="document"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </output>
    </operation>
    <operation name="BookAllSetups">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:RapportDataImportIntf-IRapportDataImport#BookAllSetups" style="document"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </output>
    </operation>
    <operation name="GetTableCodeDescExternal">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:RapportDataImportIntf-IRapportDataImport#GetTableCodeDescExternal" style="document"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </output>
    </operation>      
    <operation name="CalculateQuoteExternal">
      <operation xmlns="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:RapportDataImportIntf-IRapportDataImport#CalculateQuoteExternal" style="document"/>
      <input>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </input>
      <output>
        <body xmlns="http://schemas.xmlsoap.org/wsdl/soap/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:RapportDataImportIntf-IRapportDataImport"/>
      </output>
    </operation>
  
  </binding>
  <service name="IRapportDataImportservice">
    <port name="IRapportDataImportPort" binding="tns:IRapportDataImportbinding">
      <address xmlns="http://schemas.xmlsoap.org/wsdl/soap/" location="http://localhost:82/RapportDataImport/RapportDataImport.dll/soap/IRapportDataImport"/>
    </port>
  </service>
</definitions>
Any one help me, what is the actaull problem in that WSDL
Thanks in advance
Vasu
LBKLBK
hey,

Can you check your WSDL file? It seems to be having some syntactical errors.