I have this package info
/**
* Created by mflamant on 13/02/2017.
*/
@javax.xml.bind.annotation.XmlSchema(namespace = "namespace1", xmlns = {@XmlNs(prefix = "ns4", namespaceURI = "namespace1")}, elementFormDefault = XmlNsForm.QUALIFIED)
package com.cisco.adt.portal.data.model.API.Equipment;
import javax.xml.bind.annotation.XmlNs;
import javax.xml.bind.annotation.XmlNsForm;
But I want to have 2 namespaces, but I tried to do this:
/**
* Created by mflamant on 13/02/2017.
*/
@javax.xml.bind.annotation.XmlSchema(namespace = "namespace1", xmlns = {@XmlNs(prefix = "ns4", namespaceURI = "namespace1")}, elementFormDefault = XmlNsForm.QUALIFIED)
@javax.xml.bind.annotation.XmlSchema(namespace = "namespace2", xmlns = {@XmlNs(prefix = "ns4", namespaceURI = "namespace2")}, elementFormDefault = XmlNsForm.QUALIFIED)
package com.cisco.adt.portal.data.model.API.Equipment;
import javax.xml.bind.annotation.XmlNs;
import javax.xml.bind.annotation.XmlNsForm;
But I have an error: "Duplicate annotation", is this possible to have 2 namespaces or not ?
Thank You.