Fetch WSDL Error: There was an error processing the WSDL​

Not applicable

Hello,

while creating a new PROXY for a WSDL web service, I am having the error "Fetch WSDL Error: There was an error processing the WSDL" when I am trying to load the wsdl file:

<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex"xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" name="OperationCaller" targetNamespace="http://tempuri.org/">

"); vertical-align: bottom; height: 10px;"><wsdl:types>
"); vertical-align: bottom; height: 10px;"><xsd:schema targetNamespace="http://tempuri.org/Imports">
<xsd:import schemaLocation="http://test-flex-svr/WebServices/Custom/OperationCallerService.svc?xsd=xsd0" namespace="http://tempuri.org/"/> <xsd:import schemaLocation="http://test-flex-svr/WebServices/Custom/OperationCallerService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/> <xsd:import schemaLocation="http://test-flex-svr/WebServices/Custom/OperationCallerService.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/com.sofyne.OperationCaller.WebServices"/> </xsd:schema>
</wsdl:types>
"); vertical-align: bottom; height: 10px;"><wsdl:message name="IOperationCaller_CallStoredProcedure_InputMessage">
<wsdl:part name="parameters" element="tns:CallStoredProcedure"/> </wsdl:message>
"); vertical-align: bottom; height: 10px;"><wsdl:message name="IOperationCaller_CallStoredProcedure_OutputMessage">
<wsdl:part name="parameters" element="tns:CallStoredProcedureResponse"/> </wsdl:message>
"); vertical-align: bottom; height: 10px;"><wsdl:message name="IOperationCaller_CallQuery_InputMessage">
<wsdl:part name="parameters" element="tns:CallQuery"/> </wsdl:message>
"); vertical-align: bottom; height: 10px;"><wsdl:message name="IOperationCaller_CallQuery_OutputMessage">
<wsdl:part name="parameters" element="tns:CallQueryResponse"/> </wsdl:message>
"); vertical-align: bottom; height: 10px;"><wsdl:message name="IOperationCaller_CallStoredProcedureAndQuery_InputMessage">
<wsdl:part name="parameters" element="tns:CallStoredProcedureAndQuery"/> </wsdl:message>
"); vertical-align: bottom; height: 10px;"><wsdl:message name="IOperationCaller_CallStoredProcedureAndQuery_OutputMessage">
<wsdl:part name="parameters" element="tns:CallStoredProcedureAndQueryResponse"/> </wsdl:message>
"); vertical-align: bottom; height: 10px;"><wsdl:portType name="IOperationCaller">
"); vertical-align: bottom; height: 10px;"><wsdl:operation name="CallStoredProcedure">
<wsdl:input wsaw:Action="http://tempuri.org/IOperationCaller/CallStoredProcedure" message="tns:IOperationCaller_CallStoredProcedure_InputMessage"/> <wsdl:output wsaw:Action="http://tempuri.org/IOperationCaller/CallStoredProcedureResponse" message="tns:IOperationCaller_CallStoredProcedure_OutputMessage"/> </wsdl:operation>
"); vertical-align: bottom; height: 10px;"><wsdl:operation name="CallQuery">
<wsdl:input wsaw:Action="http://tempuri.org/IOperationCaller/CallQuery" message="tns:IOperationCaller_CallQuery_InputMessage"/> <wsdl:output wsaw:Action="http://tempuri.org/IOperationCaller/CallQueryResponse" message="tns:IOperationCaller_CallQuery_OutputMessage"/> </wsdl:operation>
"); vertical-align: bottom; height: 10px;"><wsdl:operation name="CallStoredProcedureAndQuery">
<wsdl:input wsaw:Action="http://tempuri.org/IOperationCaller/CallStoredProcedureAndQuery" message="tns:IOperationCaller_CallStoredProcedureAndQuery_InputMessage"/> <wsdl:output wsaw:Action="http://tempuri.org/IOperationCaller/CallStoredProcedureAndQueryResponse" message="tns:IOperationCaller_CallStoredProcedureAndQuery_OutputMessage"/> </wsdl:operation>
</wsdl:portType>
"); vertical-align: bottom; height: 10px;"><wsdl:binding name="BasicHttpBinding_IOperationCaller" type="tns:IOperationCaller">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
"); vertical-align: bottom; height: 10px;"><wsdl:operation name="CallStoredProcedure">
<soap:operation soapAction="http://tempuri.org/IOperationCaller/CallStoredProcedure" style="document"/>
"); vertical-align: bottom; height: 10px;"><wsdl:input>
<soap:body use="literal"/> </wsdl:input>
"); vertical-align: bottom; height: 10px;"><wsdl:output>
<soap:body use="literal"/> </wsdl:output>
</wsdl:operation>
"); vertical-align: bottom; height: 10px;"><wsdl:operation name="CallQuery">
<soap:operation soapAction="http://tempuri.org/IOperationCaller/CallQuery" style="document"/>
"); vertical-align: bottom; height: 10px;"><wsdl:input>
<soap:body use="literal"/> </wsdl:input>
"); vertical-align: bottom; height: 10px;"><wsdl:output>
<soap:body use="literal"/> </wsdl:output>
</wsdl:operation>
"); vertical-align: bottom; height: 10px;"><wsdl:operation name="CallStoredProcedureAndQuery">
<soap:operation soapAction="http://tempuri.org/IOperationCaller/CallStoredProcedureAndQuery" style="document"/>
"); vertical-align: bottom; height: 10px;"><wsdl:input>
<soap:body use="literal"/> </wsdl:input>
"); vertical-align: bottom; height: 10px;"><wsdl:output>
<soap:body use="literal"/> </wsdl:output>
</wsdl:operation>
</wsdl:binding>
"); vertical-align: bottom; height: 10px;"><wsdl:service name="OperationCaller">
"); vertical-align: bottom; height: 10px;"><wsdl:port name="BasicHttpBinding_IOperationCaller" binding="tns:BasicHttpBinding_IOperationCaller">
<soap:address location="http://test-flex-svr/WebServices/Custom/OperationCallerService.svc"/> </wsdl:port>
</wsdl:service>
</wsdl:definitions>
0 5 2,064
5 REPLIES 5

Not applicable

Would you know waht is wrong with this file?

This is not a proper WSDL, WSDL is a pure XML document, Looks like either some sort of XSLT or HTML Styling has been applied on this WSDL causing invalid tags like "); vertical-align: bottom; height: 10px;>"

Please get a proper WSDL either using URL or view the XML in browser and save as XML/TXT upload that for processing, then you will see no issues.

You can use this simple XML validator to validate your WSDL.

https://codebeautify.org/xmlvalidator

Thank you for your answer,

I think that the HTML tags were added when I pasted the file on the previous comment.

However I validated the file using the link provided previously and it appeared to be a good XML file.

I am providing the proper file that I am trying to use in APIGEE interface


Do you have the xsd's referenced on lines 4,5,6 (http://localhost/WebServices/Custom/OperationCallerService.svc?xsd= ..) available on your machine on port 80?

If not, try removing the xsd import lines from the wsdl. They don't appear to be used anyway?