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

北战南征 提交于 2019-12-13 03:06:47

问题


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. I tried fully qualifying the uri, but that did not help.

Ideas?


回答1:


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.



来源:https://stackoverflow.com/questions/1787104/svcutil-error-schemalocation-must-successfully-resolve-if-redefine-contains

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!