I have a lot of endpoints annotated with @WebService(targetNamespace = "mynamespace")
. Every @WebResult
and @WebParam
has the same definition of targetNamespace = "mynamespace"
.
Is there a way to configure JAX-WS (Metro implementation) to use "mynamespace"
as targetNamespace by default?
I would like to use the annotations without any attributes and get rid of the duplicate declarations, just like convention over configuration.
targetNamespace
at@WebResult
and at@WebParam
the generated XML in the SOAP response has a namespace for the outermost XML tag (e.g.<ns0:locateCustomerResponse>
), but the inner ones uses the default namespace (e.g.<CustomerRecord>
).The same happens to the parameters (<firstName>
instead of<ns0:firstName>
). – Id