Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WSDL importing xsd containg DTD, prohibited?

 
michael laanti
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic