Forums Register Login

WSDL importing xsd containg DTD, prohibited?

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
 

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
Destiny's powerful hand has made the bed of my future. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 3465 times.
Similar Threads
WSSE Security in SOAP HEADER
Java client and .NET 2.0 ASP.NET Web Service: SOAP port uses a non-standard SOAP 1.2 binding
Parse/Validate with DSIG schema issue
xsd not available in deployed webservice.
Validating xml against xsd using dom
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 09:00:56.