I'm consuming a .NET web service from my Java project. I'm using Netbeans 8.2 and imported the web service. The problem comes when I'm creating the complex object, Netbeans or Java translates the entity as JAXBElement instead of the String parameter.
My question is how to configure or map the entity in a way that sends a String, Datetime or double object.
This is my class that netbeans generates after import WS.
public class GeoCountriesEntity {
@XmlElement(name = "CountryId")
protected Integer countryId;
@XmlElementRef(name = "Description", namespace = "http://schemas.datacontract.org/2004/07/Entities.Enterprise.Geo", type = JAXBElement.class, required = false)
protected JAXBElement<String> description;
@XmlElementRef(name = "UserCode", namespace = "http://schemas.datacontract.org/2004/07/Entities.Enterprise.Geo", type = JAXBElement.class, required = false)
protected JAXBElement<String> userCode;}