Win a copy of Barcodes with iOS this week in the iOS forum or Core Java for the Impatient in the Java 8 forum!
michael laanti wrote:Hello All,
I have done a wsdl description for .NET web service which is used by Java clients and that wsdl
imports xmldsig-core-schema.xsd for referencing XML Signature.
When compiling my wsdl and xmldsig-core-schema.xsd with wsdl.exe command in MS enviroinment
wsdl MyService.wsdl /l:C# /out:MyService.cs /par:xmldsig-core-schema.xsd
I get "DTD is prohibited in this XML document" error message.
When I look file xmldsig-core-schema.xsd with editor it contains DTD definition
in the beginning of file.
I think xmldsig-core-schema.xsd standard stuff so it's not accepted to edit it.
My question is not Microsoft related it is: Can wsdl file import xml schema files (.xsd) that begins
with DTD declaration? Is it against soome rule or what could cause this kind of errormessage.