I have several wsdl files uploaded on my local one - A.WSDL and B.WSDL
A.WSDL has the same set of complex type (almost 100) as B.WSDL <xsd:complexType name="Book"> , but the methods / operations are different.
For example: A.WSDL has a complex type <xsd:complexType name="Book"> , and operations create new operations
B.WSDL has the same complex type <xsd:complexType name="Book"> , and read operations
I use SVCUtil to create client-side stubs in a single file and stubs with the same namespace. But getting the following error:
Error: An error occurred validating some XML schemas generated during the export: Type complex http://mylocalhost/object:Book has already been declared.
Limitations:
1) I will not be able to modify the WSDL files.
2) I would like to generate the generated stub classes in the space with the same name.
3) No wsdl.exe
Is there a way that a duplicated complexType can be skipped or can be overwritten?
source share