Hi, In our project we're creating web services from enterprise java beans. Some of the classes exposed by the EJBs remote interfaces are shared between the beans. E.g. com.company.commmonclasses.CommonDTO is used by both ServiceAEJB and ServiceBEJB.
When generating WSDL files for the beans, Axis generates one self contained .wsdl file for each web service. Thus, the CommonDTO type is defined in both ServiceA.wsdl and ServiceB.wsdl. Now, when generating .NET proxy for these two web services, we get the following error: > wsdlgen /n:WebServices /o:. ServiceA.wsdl ServiceB.wsdl Error: A schema with the namespace 'http://commonclasses.company.com' already been added. This happens because CommonDTO is defined in both wsdl files. One way to solve this could be to extract the common type definitions from the wsdl files into a XSD file (e.g. CommonClasses.xsd). Maybe there exists a tool that does this? Does anybody know how to solve the problem in a way that avoids manual modification of wsdl files? Thank you for any help on this issue! Best regards, Espen Sommerfelt
