• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

WSDL importing xsd containg DTD, prohibited?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic