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
TriCoopTriCoop 

Failed to parse wsdl: Unable to find schema for element; {http://www.w3.org/2001/XMLSchema}

I'm trying to generate an APEX class from a WSDL. When I choose the WSDL and click the Parse XML button I get the "Failed to parse wsdl: Unable to find schema for element; {http://www.w3.org/2001/XMLSchema}" error.

I found the message from ThomasTT regarding this issue, but quite frankly I'm new to SFDC and am also not an expert on WSDLs and couldn't figure out how it applied to my situation. We have an application which generates its own WSDL. I've used this before when integrating other applications, successfully generating a SOAP request to our system and it works just fine. SFDC, though, is proving a bit challenging.

 

I've tried everything I can think of and cannot figure out what's wrong. If anyone could help, I'd much appreciate it.

 

<?xml version="1.0" encoding="UTF-8" ?>
<!-- W3C CATSWeb Web Services WSDL File generated by
AssurX CWXML v6.29/CWFormGen v6.29
by Joe Smith 6/9/2010 9:41:17 AM -->


<definitions
xmlns="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://www.assurx.com/catsweb.xsd"
xmlns:tns="http://www.assurx.com/catsweb.xsd"
xmlns:asx="http://www.assurx.com/catsweb.xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext">

<xsd:annotation>
<xsd:documentation xml:lang="en">
CATSWeb Web Service WSDL File
</xsd:documentation>
</xsd:annotation>

<types>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace = "http://www.assurx.com/catsweb.xsd"
xmlns:tns="http://www.assurx.com/catsweb.xsd"
xmlns:asx="http://www.assurx.com/catsweb.xsd"
elementFormDefault="unqualified"
attributeFormDefault="unqualified"
xml:lang="en">
<xsd:import namespace="http://www.w3.org/2001/XMLSchema"/>


<!-- AddEditDeleteAction -->

<xsd:complexType name="AddEditDeleteActionRequestType">
<xsd:sequence>
<xsd:element name="ActionID" type="xsd:int" minOccurs="0" maxOccurs="1" nillable="true"/>
<!-- Authentication elements -->
<xsd:element name="Authentication_LoginCompanyName" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="Authentication_UserID" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="Authentication_UserPassword" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="Authentication_ManagerialPassword" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="Authentication_SessionID" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>

<!-- Normal data elements -->

<xsd:element name="Category" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<xsd:element name="Text1" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="ShortText1" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="ShortText2" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="Title" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<xsd:element name="Status" type="xsd:short" minOccurs="1" maxOccurs="1" nillable="true"/>
<xsd:element name="Department" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<xsd:element name="AssignedTo" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<xsd:element name="DateClosedGoal" type="xsd:dateTime" minOccurs="1" maxOccurs="1" nillable="true"/>
<xsd:element name="StandardDate001" type="xsd:dateTime" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="NonRequired" type="xsd:short" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="ShortText3" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="Action_Description" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="InvestigationNotes" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="StandardYesNo001" type="xsd:short" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="ReasonForEdit" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
<xsd:element name="DeleteEntity" type="xsd:boolean" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="AnyOtherFields" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
</xsd:sequence>
</xsd:complexType>

<!-- Request/Response Elements -->
<xsd:element name="AddEditDeleteActionRequest" type="asx:AddEditDeleteActionRequestType"/>
<xsd:element name="AddEditDeleteActionResponse" type="asx:NumericRecordIDResponseType"/>



<!-- Generic Types -->
<xsd:complexType name="NumericRecordIDRequestType">
<xsd:sequence>
<!-- Authentication elements -->
<xsd:element name="Authentication_LoginCompanyName" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="Authentication_UserID" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="Authentication_UserPassword" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="Authentication_ManagerialPassword" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="Authentication_SessionID" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<!-- Normal data elements -->
<xsd:element name="RecordID" type="xsd:int" minOccurs="1" maxOccurs="1"/>
<xsd:element name="ParentType" type="xsd:short" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="ParentID" type="xsd:int" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="ArchiveID" type="xsd:int" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="IncludeCaptions" type="xsd:short" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="IncludeDescriptions" type="xsd:short" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="ExcludeUnusedFields" type="xsd:short" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="AnyOtherNumericRecordIDRequestTypeData" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="NonNumericRecordIDRequestType">
<xsd:sequence>
<!-- Authentication elements -->
<xsd:element name="Authentication_LoginCompanyName" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="Authentication_UserID" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="Authentication_UserPassword" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="Authentication_ManagerialPassword" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="Authentication_SessionID" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<!-- Normal data elements -->
<xsd:element name="RecordID1" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="RecordID2" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="RecordID3" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="RecordID4" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="RecordID5" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="ArchiveID" type="xsd:int" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="IncludeCaptions" type="xsd:short" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="IncludeDescriptions" type="xsd:short" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="ExcludeUnusedFields" type="xsd:short" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="AnyOtherNonNumericRecordIDRequestTypeData" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="NumericRecordIDResponseType">
<xsd:sequence>
<xsd:element name="ReturnValue" type="xsd:int" minOccurs="1" maxOccurs="1"/>
<xsd:element name="RecordID" type="xsd:int" minOccurs="1" maxOccurs="1"/>
<xsd:element name="ParentType" type="xsd:short" minOccurs="0" maxOccurs="1"/>
<xsd:element name="ParentID" type="xsd:int" minOccurs="0" maxOccurs="1"/>
<xsd:element name="ArchiveID" type="xsd:int" minOccurs="0" maxOccurs="1"/>
<xsd:element name="StatusMessage" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="AnyOtherNumericRecordIDResponseTypeData" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="NonNumericRecordIDResponseType">
<xsd:sequence>
<xsd:element name="ReturnValue" type="xsd:int" minOccurs="1" maxOccurs="1"/>
<xsd:element name="RecordID1" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="ArchiveID" type="xsd:int" minOccurs="0" maxOccurs="1"/>
<xsd:element name="RecordID2" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="RecordID3" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="RecordID4" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="RecordID5" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="StatusMessage" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="AnyOtherNonNumericRecordIDResponseTypeData" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="FileAttachmentRequestType">
<xsd:sequence>
<!-- Authentication elements -->
<xsd:element name="Authentication_LoginCompanyName" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="Authentication_UserID" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="Authentication_UserPassword" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="Authentication_ManagerialPassword" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="Authentication_SessionID" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
<!-- Normal data elements -->
<xsd:element name="RecordID" type="xsd:int" minOccurs="1" maxOccurs="1"/>
<xsd:element name="ParentType" type="xsd:short" minOccurs="0" maxOccurs="1"/>
<xsd:element name="ParentID" type="xsd:int" minOccurs="0" maxOccurs="1"/>
<xsd:element name="ArchiveID" type="xsd:int" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="IncludeBinaryContent" type="xsd:boolean" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="BinaryContentCompression" type="xsd:short" minOccurs="0" maxOccurs="1" nillable="true"/>
<xsd:element name="AnyOtherFileAttachmentRequestTypeData" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
</xsd:sequence>
</xsd:complexType>
<!-- OperationErrorsType: Used for SOAP Faults -->
<xsd:complexType name="OperationErrorsType">
<xsd:sequence>
<xsd:element name="ReturnValue" type="xsd:int" minOccurs="1" maxOccurs="1"/>
<xsd:element name="RaisedByOperation" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="ObjectCalled" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="MethodCalled" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="SuggestedSolution" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="ErrorSource" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="ErrorCount" type="xsd:int" minOccurs="1" maxOccurs="1"/>
<xsd:element name="ErrorMessage" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="OperationErrors" type="asx:OperationErrorsType"/>
<xsd:complexType name="FieldArrayType">
<xsd:sequence>
<xsd:element name="AnyOtherFieldTypeData" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="DataSetType">
<xsd:sequence>
<xsd:element ref="xsd:schema"/>
<xsd:any/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="XMLStringType">
<xsd:sequence>
<xsd:element name="XMLString" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="XMLNodeType" mixed="true">
<xsd:sequence>
<xsd:any/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="XMLDataRowType">
<xsd:sequence>
<xsd:any/>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="XMLRowSetType">
<xsd:sequence>
<xsd:element name="Record_Instance" type="asx:XMLDataRowType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="XMLDataSetType">
<xsd:sequence>
<xsd:element name="Record_Instance" type="asx:XMLRowSetType" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="XMLDataSetsType">
<xsd:sequence>
<xsd:element name="Record_Instance" type="asx:XMLRowSetType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>


</xsd:schema>
</types>



<message name="AddEditDeleteActionSoapIn">
<part name="mainPart" element="asx:AddEditDeleteActionRequest"/>
</message>
<message name="AddEditDeleteActionSoapOut">
<part name="mainPart" element="asx:AddEditDeleteActionResponse"/>
</message>



<message name="FaultMsg">
<part name="mainPart" element="asx:OperationErrors"/>
</message>


<portType name="CATSWebPortType">

<operation name="AddEditDeleteAction">
<input message="tns:AddEditDeleteActionSoapIn"/>
<output message="tns:AddEditDeleteActionSoapOut"/>
<fault name="tns:AddEditDeleteActionFault" message="tns:FaultMsg"/>
</operation>

</portType>

<binding name="CATSWebBindingName" type="tns:CATSWebPortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>

<operation name="AddEditDeleteAction">
<soap:operation soapAction="AddEditDeleteAction" style="document"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
<fault name="tns:AddEditDeleteActionFault">
<soap:fault name="tns:AddEditDeleteActionFault" use="literal"/>
</fault>
</operation>

</binding>


<service name="CATSWebService">
<port name="CATSWebPortName" binding="tns:CATSWebBindingName">

<soap:address location="http://localhost/CATSWebServices/main.asmx"/>
</port>
</service>

</definitions>

Anand@SAASAnand@SAAS

Make sure you have read the consideration for importing WSDLs in Apex at http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_callouts_wsdl2apex_considerations.htm.

 

Not all WSDL features are supported in the WSDL2Apex.

TriCoopTriCoop

Yes,  I saw that too, but unfortunately it doesn't help me.  I tried adding assurx.com and w3.org to the remote site settings along with my web site, but still no joy - I get the same error.