Error during web service import

2
Hi there, I am now preparing a demo in 2.5.0.1 for my sale pitch tomorrow. And I am trying to show off how easy we can create MF and publish it as a web service, which it works fine. BUT now I am trying to import this web service into the modeler and I got an error sounds like this: System.ApplicationException: Oops! ---> System.InvalidOperationException: There is an error in XML document (0, 0). ---> System.Xml.XmlException: DTD is prohibited in this XML document. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res, String arg) at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl() at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlTextReader.Read() at System.Xml.XmlReader.MoveToContent() at System.Web.Services.Description.ServiceDescriptionSerializationReader.Read125_definitions() at System.Web.Services.Description.ServiceDescription.ServiceDescriptionSerializer.Deserialize(XmlSerializationReader reader) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) --- End of inner exception stack trace --- at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader) at System.Web.Services.Description.ServiceDescription.Read(XmlReader reader, Boolean validate) at System.Web.Services.Description.ServiceDescription.Read(TextReader textReader, Boolean validate) at System.Web.Services.Description.ServiceDescription.Read(TextReader textReader) at Mendix.Modeler.WebServices.WsdlInfo.CreateServiceDescription(String contents) in c:\cygwin\home\autobuild\tmp\build2-2.5.0.1\src\Modeler\WebServices\Call\WsdlInfo.cs:line 182 at Mendix.Modeler.WebServices.WsdlInfo.BuildContents(String url, List`1 messages) in c:\cygwin\home\autobuild\tmp\build2-2.5.0.1\src\Modeler\WebServices\Call\WsdlInfo.cs:line 55 at Mendix.Modeler.WebServices.WsdlInfo.FromUrl(String url, List`1 messages) in c:\cygwin\home\autobuild\tmp\build2-2.5.0.1\src\Modeler\WebServices\Call\WsdlInfo.cs:line 47 at Mendix.Modeler.WebServices.WsdlFileEditor.<>c__DisplayClass2.<TryImportWsdl>b__0() in c:\cygwin\home\autobuild\tmp\build2-2.5.0.1\src\Modeler\WebServices\Call\WsdlFileEditor.cs:line 77 at Mendix.Modeler.Utility.Dialogs.<>c__DisplayClassa.<ProgressDo>b__9(WorkerTaskInfo info) in c:\cygwin\home\autobuild\tmp\build2-2.5.0.1\src\Mendix.Modeler.Utility.Gui\Dialogs.cs:line 268 at Mendix.Modeler.Utility.WorkerTask.backgroundWorker_DoWork(Object sender, DoWorkEventArgs e) in c:\cygwin\home\autobuild\tmp\build2-2.5.0.1\src\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\tmp\build2-2.5.0.1\src\Mendix.Modeler.Utility.Gui\Dialogs.cs:line 276 at Mendix.Modeler.Utility.Dialogs.ProgressDo(String message, Action action) in c:\cygwin\home\autobuild\tmp\build2-2.5.0.1\src\Mendix.Modeler.Utility.Gui\Dialogs.cs:line 265 at Mendix.Modeler.WebServices.WsdlFileEditor.TryImportWsdl() in c:\cygwin\home\autobuild\tmp\build2-2.5.0.1\src\Modeler\WebServices\Call\WsdlFileEditor.cs:line 76 Can anyone tell me please, because I cannot find any information in the documentation. :) Thanks a lot, Panayu
asked
2 answers
3

Any chance that you're importing http://localhost:8080/ws-doc/ instead of http://localhost:8080/ws-doc/<mywebservice>?wsdl

:)

Edit: you have to surf to http://localhost:8080/ws-doc/, you can find the link to the wsdl there (the <mywebservice> is just a placeholder in the url I posted above)

answered
1

Hi Archiel,

Yes I did try all combination liks:

  • http://localhost:8080/ws-doc/
  • http://localhost:8080/ws-doc/<mywebservice>?wsdl
  • http://localhost:8080/ws-doc/<mywebservice>/<myoperation>

But the errors occurs the same the same.

[XmlBuilder] There is no node to close at

This is very weird. I did restart modeler and import it again. And guess what it works now.

Thanks for your help :)

Panayu

answered