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

Hello, 

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

Unable to find schema for element; {http://www.w3.org/2001/XMLSchema}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:

https://success.salesforce.com/answers?id=90630000000hNuFAAU

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; {http://www.w3.org/2001/XMLSchema}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="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.xyz.com/irv/quickquote/auto/2006/10/01" xmlns:s1="http://microsoft.com/wsdl/types/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://www.XYZ.com/irv/quickquote/auto/2006/10/01" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">XYZ</wsdl:documentation>
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://www.XYZ.com/irv/quickquote/auto/2006/10/01">
      <s:import namespace="http://microsoft.com/wsdl/types/" />
      <s:element name="RemoveQuote">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="QuoteId" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
    </s:schema>
    <s:schema elementFormDefault="qualified" targetNamespace="http://microsoft.com/wsdl/types/">
      <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}" />
        </s:restriction>
      </s:simpleType>
    </s:schema>
  </wsdl:types>
  <wsdl:message name="RemoveQuoteSoapIn">
    <wsdl:part name="parameters" element="tns:RemoveQuote" />
  </wsdl:message>
  <wsdl:portType name="QQWebSvcSoap">
    <wsdl:operation name="RemoveQuote">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Remove a quote from the database.</wsdl:documentation>
      <wsdl:input message="tns:RemoveQuoteSoapIn" />
      <wsdl:output message="tns:RemoveQuoteSoapOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="QQWebSvcSoap" type="tns:QQWebSvcSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="RemoveQuote">
      <soap:operation soapAction="http://www.xyz.com/irv/quickquote/auto/2006/10/01/RemoveQuote" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="QQWebSvc">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Services to provide online quoting.</wsdl:documentation>
    <wsdl:port name="QQWebSvcSoap" binding="tns:QQWebSvcSoap">
      <soap:address location="http://pasquote-bfapp.tent.trt.xyz.pri/QuickQuoteWebSvc/QQWebSvc.asmx" />
    </wsdl:port>
    <wsdl:port name="QQWebSvcSoap12" binding="tns:QQWebSvcSoap12">
      <soap12:address location="http://pasquote-bfapp.tent.trt.xyz.pri/QuickQuoteWebSvc/QQWebSvc.asmx" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>
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: http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_quickstart_intro.htm


Shri RajShri Raj
How did you know that its a SOAP 1.2? 
Jason Curtis NBSFDGJason Curtis NBSFDG
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"

Did that work?
j

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.  

-Srikanth

Jason Curtis NBSFDGJason Curtis NBSFDG
Good luck, Shrikanth!