How do I configure namespace prefixes in autogenerated WSDL in Metro / JavaEE?
1 answer
Use @XmlSchema annotation (assuming you are using JAXB2.x)
@XmlSchema (
xmlns = {
@XmlNs(prefix = "so",
namespaceURI="http://stackoverflow.com/questions/358991")
)
)
Result:
<schema
xmlns:so="http://stackoverflow.com/questions/358991"
targetNamespace="http://stackoverflow.com/questions/358991">
+1
source to share