I have a xfire webservice up and running with namespace testService. I also use several complex types that do not use
this namespace. They are getting their namespace form the
java package that they are contained in.
The proxy java client classes are created fine from the WSDL as long as I use xfire/axis to generate them. However, when I use Visual Studio I get the following error message:
Schema validation warning: Schema item 'element' named 'getResponse'
from namespace ' testService ' is invalid. Namespace
'
http://data.testwebservice.com' is not available to be referenced in this
schema.
I read that adding the annotaion @XmlType to the interfaces of my
complext types can fix the issue as you specify and change the namespace of these types to the namespace of your service.
However, changing that would break the existing clients.
Is there a way to fix this without adding the @XmlType annotation. From what I read, I guess it involves importing the
schemas, but I have no idea how to do that in the code, so that the
generated WSDL picks it up.
Sorry for the earlier email, I was trying to reply to an existing thread and that did not work out.