getconnector.asmx?wsdl import error

1
I am trying to get the AFAS getconnector.asmx to work. Importing the getconnector.asmx?wsdl does not work because the url is secure. But I can view the url and it looks like a good wsdl. However copying this text file and do a file import does not work generating the following error: System.ApplicationException: Oops! ---> System.InvalidOperationException: Het document op URL file:///D:/Getconnector.wsdl is niet herkend als een bekend documenttype. Aan de hand van de foutberichten voor de verschillende bekende typen kan het probleem wellicht worden opgelost: - Rapport van DISCO-document is Gegevens op hoofdniveau zijn ongeldig. Regel 2, positie 1.. - Rapport van WSDL-document is Het XML-document (2, 1) bevat een fout.. - Gegevens op hoofdniveau zijn ongeldig. Regel 2, positie 1. - Rapport van XML-schema is Gegevens op hoofdniveau zijn ongeldig. Regel 2, positie 1.. at System.Web.Services.Discovery.DiscoveryClientProtocol.DiscoverAny(String url) at Mendix.Modeler.WebServices.WsdlInfo.ResolveImports(String url) in c:\cygwin\home\autobuild\build\Mendix-2.5.1\modeler-svn\Modeler\WebServices\Call\WsdlInfo.cs:line 193 at Mendix.Modeler.WebServices.WsdlInfo.BuildContents(String url, List1 messages) in c:\cygwin\home\autobuild\build\Mendix-2.5.1\modeler-svn\Modeler\WebServices\Call\WsdlInfo.cs:line 54 at Mendix.Modeler.WebServices.WsdlInfo.FromUrl(String url, List1 messages) in c:\cygwin\home\autobuild\build\Mendix-2.5.1\modeler-svn\Modeler\WebServices\Call\WsdlInfo.cs:line 47 at Mendix.Modeler.WebServices.WsdlFileEditor.<>cDisplayClass2.<tryimportwsdl>b0() in c:\cygwin\home\autobuild\build\Mendix-2.5.1\modeler-svn\Modeler\WebServices\Call\WsdlFileEditor.cs:line 77 at Mendix.Modeler.Utility.Dialogs.<>cDisplayClassa.<progressdo>b9(WorkerTaskInfo info) in c:\cygwin\home\autobuild\build\Mendix-2.5.1\modeler-svn\Mendix.Modeler.Utility.Gui\Dialogs.cs:line 268 at Mendix.Modeler.Utility.WorkerTask.backgroundWorker_DoWork(Object sender, DoWorkEventArgs e) in c:\cygwin\home\autobuild\build\Mendix-2.5.1\modeler-svn\Mendix.Modeler.Utility\WorkerTask.cs:line 137 at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) --- End of inner exception stack trace --- at Mendix.Modeler.Utility.Dialogs.ProgressDo(Boolean reportsProgress, Boolean supportsCancellation, Action`1 action) in c:\cygwin\home\autobuild\build\Mendix-2.5.1\modeler-svn\Mendix.Modeler.Utility.Gui\Dialogs.cs:line 276 at Mendix.Modeler.Utility.Dialogs.ProgressDo(String message, Action action) in c:\cygwin\home\autobuild\build\Mendix-2.5.1\modeler-svn\Mendix.Modeler.Utility.Gui\Dialogs.cs:line 265 at Mendix.Modeler.WebServices.WsdlFileEditor.TryImportWsdl() in c:\cygwin\home\autobuild\build\Mendix-2.5.1\modeler-svn\Modeler\WebServices\Call\WsdlFileEditor.cs:line 76 Any sollution to this problem? [EDIT] this is the wsdl: - <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="urn:Afas.Profit.Services" 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="urn:Afas.Profit.Services" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> - <wsdl:types> - <s:schema elementformdefault="qualified" targetnamespace="urn:Afas.Profit.Services"> - <s:element name="GetData"> - <s:complextype> - <s:sequence> <s:element minoccurs="0" maxoccurs="1" name="environmentId" type="s:string"/> <s:element minoccurs="0" maxoccurs="1" name="userId" type="s:string"/> <s:element minoccurs="0" maxoccurs="1" name="password" type="s:string"/> <s:element minoccurs="0" maxoccurs="1" name="logonAs" type="s:string"/> <s:element minoccurs="0" maxoccurs="1" name="connectorId" type="s:string"/> <s:element minoccurs="0" maxoccurs="1" name="filtersXml" type="s:string"/> </s:sequence> </s:complextype> </s:element> - <s:element name="GetDataResponse"> - <s:complextype> - <s:sequence> <s:element minoccurs="0" maxoccurs="1" name="GetDataResult" type="s:string"/> </s:sequence> </s:complextype> </s:element> - <s:element name="GetDataCollection"> - <s:complextype> - <s:sequence> <s:element minoccurs="0" maxoccurs="1" name="environmentId" type="s:string"/> <s:element minoccurs="0" maxoccurs="1" name="userId" type="s:string"/> <s:element minoccurs="0" maxoccurs="1" name="password" type="s:string"/> <s:element minoccurs="0" maxoccurs="1" name="logonAs" type="s:string"/> <s:element minoccurs="0" maxoccurs="1" name="getConnectorsXml" type="s:string"/> </s:sequence> </s:complextype> </s:element> - <s:element name="GetDataCollectionResponse"> - <s:complextype> - <s:sequence> <s:element minoccurs="0" maxoccurs="1" name="GetDataCollectionResult" type="s:string"/> </s:sequence> </s:complextype> </s:element> - <s:element name="GetDataWithOptions"> - <s:complextype> - <s:sequence> <s:element minoccurs="0" maxoccurs="1" name="environmentId" type="s:string"/> <s:element minoccurs="0" maxoccurs="1" name="userId" type="s:string"/> <s:element minoccurs="0" maxoccurs="1" name="password" type="s:string"/> <s:element minoccurs="0" maxoccurs="1" name="logonAs" type="s:string"/> <s:element minoccurs="0" maxoccurs="1" name="connectorId" type="s:string"/> <s:element minoccurs="0" maxoccurs="1" name="filtersXml" type="s:string"/> <s:element minoccurs="0" maxoccurs="1" name="options" type="s:string"/> </s:sequence> </s:complextype> </s:element> - <s:element name="GetDataWithOptionsResponse"> - <s:complextype> - <s:sequence> <s:element minoccurs="0" maxoccurs="1" name="GetDataWithOptionsResult" type="s:string"/> </s:sequence> </s:complextype> </s:element> </s:schema> </wsdl:types> - <wsdl:message name="GetDataSoapIn"> <wsdl:part name="parameters" element="tns:GetData"/> </wsdl:message> - <wsdl:message name="GetDataSoapOut"> <wsdl:part name="parameters" element="tns:GetDataResponse"/> </wsdl:message> - <wsdl:message name="GetDataCollectionSoapIn"> <wsdl:part name="parameters" element="tns:GetDataCollection"/> </wsdl:message> - <wsdl:message name="GetDataCollectionSoapOut"> <wsdl:part name="parameters" element="tns:GetDataCollectionResponse"/> </wsdl:message> - <wsdl:message name="GetDataWithOptionsSoapIn"> <wsdl:part name="parameters" element="tns:GetDataWithOptions"/> </wsdl:message> - <wsdl:message name="GetDataWithOptionsSoapOut"> <wsdl:part name="parameters" element="tns:GetDataWithOptionsResponse"/> </wsdl:message> - <wsdl:porttype name="GetConnectorSoap"> - <wsdl:operation name="GetData"> <wsdl:input message="tns:GetDataSoapIn"/> <wsdl:output message="tns:GetDataSoapOut"/> </wsdl:operation> - <wsdl:operation name="GetDataCollection"> <wsdl:input message="tns:GetDataCollectionSoapIn"/> <wsdl:output message="tns:GetDataCollectionSoapOut"/> </wsdl:operation> - <wsdl:operation name="GetDataWithOptions"> <wsdl:input message="tns:GetDataWithOptionsSoapIn"/> <wsdl:output message="tns:GetDataWithOptionsSoapOut"/> </wsdl:operation> </wsdl:porttype> - <wsdl:binding name="GetConnectorSoap" type="tns:GetConnectorSoap"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/> - <wsdl:operation name="GetData"> <soap:operation soapaction="urn:Afas.Profit.Services/GetData" style="document"/> - <wsdl:input> <soap:body use="literal"/> </wsdl:input> - <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> - <wsdl:operation name="GetDataCollection"> <soap:operation soapaction="urn:Afas.Profit.Services/GetDataCollection" style="document"/> - <wsdl:input> <soap:body use="literal"/> </wsdl:input> - <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> - <wsdl:operation name="GetDataWithOptions"> <soap:operation soapaction="urn:Afas.Profit.Services/GetDataWithOptions" style="document"/> - <wsdl:input> <soap:body use="literal"/> </wsdl:input> - <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> - <wsdl:binding name="GetConnectorSoap12" type="tns:GetConnectorSoap"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/> - <wsdl:operation name="GetData"> <soap12:operation soapaction="urn:Afas.Profit.Services/GetData" style="document"/> - <wsdl:input> <soap12:body use="literal"/> </wsdl:input> - <wsdl:output> <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> - <wsdl:operation name="GetDataCollection"> <soap12:operation soapaction="urn:Afas.Profit.Services/GetDataCollection" style="document"/> - <wsdl:input> <soap12:body use="literal"/> </wsdl:input> - <wsdl:output> <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> - <wsdl:operation name="GetDataWithOptions"> <soap12:operation soapaction="urn:Afas.Profit.Services/GetDataWithOptions" style="document"/> - <wsdl:input> <soap12:body use="literal"/> </wsdl:input> - <wsdl:output> <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> - <wsdl:service name="GetConnector"> - <wsdl:port name="GetConnectorSoap" binding="tns:GetConnectorSoap"> <soap:address location="https://mendix.catalpa.nl/ProfitServices/Getconnector.asmx"/> </wsdl:port> - <wsdl:port name="GetConnectorSoap12" binding="tns:GetConnectorSoap12"> <soap12:address location="https://mendix.catalpa.nl/ProfitServices/Getconnector.asmx"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
asked
1 answers
6

It looks like you copy/pasted the wsdl from firefox. While it seems as though that would work, Firefox messes up the xml by adding all sorts of " -" indent bla everywhere. This is probably why you can't read it.

To get the original wsdl, select "save as" in firefox, and then "xml only".

answered