开发者

svcUtil error 'SchemaLocation' must successfully resolve if <redefine> contains any child other than <annotation> [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 10 years ago.

I am trying to generate a proxy from a 3rd party wsdl and xsd files. I am calling svcutil like so:

svcutil *.wsdl *.xsd /language:C#

It returns this error: 'SchemaLocation' must successfully resolve if contains any child other than .

There is only one element in all the files, and it's schemaLocation attribute points to another file in the same directory. 开发者_Go百科I tried fully qualifying the uri, but that did not help.

Ideas?


This error was caused by an unrelated problem with the wsdl file. The portType operation parameters were named, but the binding operation peramters were not. When I fixed this svcutil generated the proxy, so I assume it must have been able to find the proper xsd includes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜