WSDL import error

1
With a project I cleaned the database (by creating a new one) to start with fresh data. But after deploying the webservice generates ANTA warnings and no longer works. The project with the old data (and a test project to test the connection still works normal with this webservice). After comparing the difference I noticed that the path to the wsdl file was no longer valid. So I imported the old wsdl file (because the webservice is behind a https connection). The problem is I can no longer import this wsdl. It generates the following error: System.ApplicationException: Oops! ---> System.Net.WebException: Tijdens een WebClient-aanvraag is een uitzondering opgetreden. ---> System.InvalidCastException: Kan een object van het type System.Net.FileWebRequest niet converteren naar het type System.Net.HttpWebRequest. at Mendix.Modeler.WebServices.WsdlInfo.MyWebClient.GetWebRequest(Uri address) in c:\cygwin\home\autobuild\build\Mendix-2.5\modeler-svn\Modeler\WebServices\Call\WsdlInfo.cs:line 58 at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) --- End of inner exception stack trace --- at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) at System.Net.WebClient.DownloadString(Uri address) at System.Net.WebClient.DownloadString(String address) at Mendix.Modeler.WebServices.WsdlInfo.BuildContents(String url, List`1 messages) in c:\cygwin\home\autobuild\build\Mendix-2.5\modeler-svn\Modeler\WebServices\Call\WsdlInfo.cs:line 74 at Mendix.Modeler.WebServices.WsdlInfo.FromUrl(String url, List`1 messages) in c:\cygwin\home\autobuild\build\Mendix-2.5\modeler-svn\Modeler\WebServices\Call\WsdlInfo.cs:line 49 at Mendix.Modeler.WebServices.WsdlFileEditor.<>c__DisplayClass2.<TryImportWsdl>b__0() in c:\cygwin\home\autobuild\build\Mendix-2.5\modeler-svn\Modeler\WebServices\Call\WsdlFileEditor.cs:line 77 at Mendix.Modeler.Utility.Dialogs.<>c__DisplayClassa.<ProgressDo>b__9(WorkerTaskInfo info) in c:\cygwin\home\autobuild\build\Mendix-2.5\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\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\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\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\modeler-svn\Modeler\WebServices\Call\WsdlFileEditor.cs:line 76 And this was the old wsdl file: <?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="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> Why can I no longer read this wsdl file that works perfect in other versions of the model? Regards, Ronald
asked
1 answers
3

It is a bug that was fixed on December 21st 2010 which means that version 2.5.2.1-hotfix3 or later does not have that problem. It is unrelated to the actual WSDL; the mechanism for opening WSDL file from disk was broken.

We apologize for the inconvenience.

answered