File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes WSDL importing xsd containg DTD, prohibited? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL importing xsd containg DTD, prohibited?" Watch "WSDL importing xsd containg DTD, prohibited?" New topic
Author

WSDL importing xsd containg DTD, prohibited?

michael laanti
Greenhorn

Joined: Apr 29, 2009
Posts: 3
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.

Cheers,

Michael
michael laanti
Greenhorn

Joined: Apr 29, 2009
Posts: 3
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.

Cheers,

Michael


-----------------------------------

Yep, found solution myself.

When using
wsdl MyService.wsdl /l:C# /out:MyService.cs /par:xmldsig-core-schema.xsd
Problems com

But using simple syntax below results what wanted

wsdl MyService.wsdl xmldsig-core-schema.xsd

Br
 
GeeCON Prague 2014
 
subject: WSDL importing xsd containg DTD, prohibited?