users@glassfish.java.net

how to prevent XmlSchemaForm.Unqualified

From: <glassfish_at_javadesktop.org>
Date: Mon, 11 Jan 2010 08:33:55 PST

Hello @all,
so i have on all propertys and classnames after generating .NET proxy from wsdl a XmlSchemaForm Tag Unqualified.

"[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]"

So how can i prevent this, the best were that all my propertys or classes are generated without this "Unqualified" Tag. Can someone help me please ???

@javax.xml.bind.annotation.XmlType(name = "XDFa_Stamm")
public class XDFa_Stamm extends XDStructure
{
/// <summary> public fields
/// </summary>
public int nLfdfanr = 0;
public String sFanr = "";
public String sFabez = "";
}

inside this webservice method:

@WebMethod(operationName = "getFa_StammQBE")
@WebResult(name = "XDFa_StammList", partName = "XDFa_StammList", header = true)
public @Override XDFa_StammList getFa_StammQBE (
@WebParam(name = "mask", partName = "mask", header = true) XDFa_Stamm mask)
{
return super.getFa_StammQBE (mask);
}

here the generated proxy for .NET:

[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ws.qsysmobile.ibsag.com/")]
    public class XDFa_Stamm : XDStructure {
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public int nLfdfanr;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string sFanr;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string sFabez;
    }
[Message sent by forum member 'mammutglassfish' (juppie76_at_gmx.de)]

http://forums.java.net/jive/thread.jspa?messageID=380106