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

StackOverflow https://stackoverflow.com/questions/1787104

  •  21-09-2019
  •  | 
  •  

Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top