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
Shri RajShri Raj 

Error while parsing WSDL into Salesforce


I have been trying to parse an WSDL into Salesforce and im receiving the following error. Please help.

Unable to find schema for element; {}schema

All Answers

Jason Curtis NBSFDGJason Curtis NBSFDG
Lot of great information about this error and how to check for malformed XML in another post:

Good luck.
Shri RajShri Raj
Thanks Jason. But, My error is kind of unique. Usually it happens with strings in the end. For me its displaying as Schema. I'm not sure how to resolve. I dont see this problem occurring for anybody else so far. 

Unable to find schema for element; {}schema
Jason Curtis NBSFDGJason Curtis NBSFDG
Can you share your XML?

Shri RajShri Raj
Hello Jason, 

Here is the part of the XML. I think this should be sufficient since i have just removed the elments, company name etc. 

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="" xmlns:tm="" xmlns:soapenc="" xmlns:mime="" xmlns:tns="" xmlns:s1="" xmlns:s="" xmlns:soap12="" xmlns:http="" targetNamespace="" xmlns:wsdl="">
  <wsdl:documentation xmlns:wsdl="">XYZ</wsdl:documentation>
    <s:schema elementFormDefault="qualified" targetNamespace="">
      <s:import namespace="" />
      <s:element name="RemoveQuote">
            <s:element minOccurs="0" maxOccurs="1" name="QuoteId" type="s:string" />
    <s:schema elementFormDefault="qualified" targetNamespace="">
      <s:simpleType name="guid">
        <s:restriction base="s:string">
          <s:pattern value="[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}" />
  <wsdl:message name="RemoveQuoteSoapIn">
    <wsdl:part name="parameters" element="tns:RemoveQuote" />
  <wsdl:portType name="QQWebSvcSoap">
    <wsdl:operation name="RemoveQuote">
      <wsdl:documentation xmlns:wsdl="">Remove a quote from the database.</wsdl:documentation>
      <wsdl:input message="tns:RemoveQuoteSoapIn" />
      <wsdl:output message="tns:RemoveQuoteSoapOut" />
  <wsdl:binding name="QQWebSvcSoap" type="tns:QQWebSvcSoap">
    <soap:binding transport="" />
    <wsdl:operation name="RemoveQuote">
      <soap:operation soapAction="" style="document" />
        <soap:body use="literal" />
        <soap:body use="literal" />
  <wsdl:service name="QQWebSvc">
    <wsdl:documentation xmlns:wsdl="">Services to provide online quoting.</wsdl:documentation>
    <wsdl:port name="QQWebSvcSoap" binding="tns:QQWebSvcSoap">
      <soap:address location="" />
    <wsdl:port name="QQWebSvcSoap12" binding="tns:QQWebSvcSoap12">
      <soap12:address location="" />
Shri RajShri Raj
Kindly let me know where could be the issue. I appreciate your help. Thank you!
Jason Curtis NBSFDGJason Curtis NBSFDG
Digging in to it, but one thing I noticed is that you are using SOAP 1.2, I think the latest Salesforce supports is 1.1.
See here:

Shri RajShri Raj
How did you know that its a SOAP 1.2? 
Jason Curtis NBSFDGJason Curtis NBSFDG

Did that work?

Shri RajShri Raj

Ohh! So basicially Soap12 means its a 1.2 version. I get it. 

Now, How to overcome this problem to integrate both the systems? Isint there a possiblitiy at all Jason? 

Shri RajShri Raj

Hello Jason, 

I appreciate your time so far in helping me to find a solution. I have searched a lot on Google as well to convert a 1.2 WSDL version to 1.1. There isint a specific and best way of doing it since every WSDL is differnt in its own way based on the elements and tags included. if some thing else changes in the.client side schema i felt its not a best practice to clean up the WSDL everytime and parse it inside Salesforce. I'm looking into other ways of integrating now. Like Informatica, or Command Line batch, REST, or through any other middleware system.  


Jason Curtis NBSFDGJason Curtis NBSFDG
Good luck, Shrikanth!