I have an interface that I export to a WSDL using Axis 1.2 RC1. The WSDL has the following namespace declared
xmlns:tns5="http://www.w3.org/1999/XMLSchema" and a complextype specified using this namespace as shown below: <complexType name="MyBaseBean"> <sequence/> <complexType name="MyBean"> <complexContent> <extension base="impl:MyBaseBean"> <sequence> <element name="value" nillable="true" type="tns5:anyType"/> </sequence> </extension> </complexContent> </complexType> I think the issue is that the types section has http://www.w3.org/2001/XMLSchema as the default namespace, but the anytype uses the tns5 namespace. Here is the beginning of the types section: <wsdl:types> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://service.mycompany.com"> .... When I try to run dotnet wsdl.exe on this, dotnet produces the following error: ----- Microsoft (R) Web Services Description Language Utility [Microsoft (R) .NET Framework, Version 1.1.4322.573] Copyright (C) Microsoft Corporation 1998-2002. All rights reserved. Schema validation warning: Namespace 'http://www.w3.org/1999/XMLSchema' is not a vailable to be referenced in this schema. Schema validation warning: Type 'http://www.w3.org/1999/XMLSchema:anyType' is not declared. Warning: Schema could not be validated. Class generation may fail or may produce incorrect results. Error: Unable to import binding 'SoapBinding' from namespace .... ------- Changing the tns5 namespace to 2001 fixes this. Anyone seen this before. Any ideas why the anyType is generated with 1999 namespace? Thanks, Shantanu Sen