It should be elementFormDefault=XmlNs.QUALIFIED
not elementFormDefault=QUALIFIED ( but i
assume it was a typo ? )
Example:
---- package-info.java -----
@javax.xml.bind.annotation.XmlSchema(
namespace="
http://example.com",
elementFormDefault=XmlNsForm.QUALIFIED)
package jws.server.common;
import javax.xml.bind.annotation.XmlSchema;
import javax.xml.bind.annotation.XmlNsForm;
----------------------------------
The above works for me with Tomcat with
NetBeans 5.5 Beta 2.
Sekhar
Lukas Jungmann wrote:
> Hi,
>
> can I ask someone here to answer Edson's question in attached e-mail?
> Please, add him on cc as he is not in this list.
>
> Thank,
>
> --lj
>
> -------- Original Message --------
> Subject: How to add elementFormDefault to a WebService
> Date: Fri, 04 Aug 2006 18:53:47 -0300
> From: Edson Carlos Ericksson Richter
> <edson.richter_at_mgrinformatica.com.br>
> Reply-To: users_at_glassfish.dev.java.net
> To: users_at_glassfish.dev.java.net
>
> Hi!
>
> I'm trying add annotation to specify elementFormDefault=QUALIFIED to a
> web service, without success.
> In NetBeans 5.5, I got an advise to add
> @XmlSchema(elementFormDefault=QUALIFIED) into package-info.java file.
> I've done it, but WSDL still have no elementFormDefault=QUALIFIED on it.
>
> Someone could tell me how to do it (I'm using NB 5.5 latest daily build
> with Glassfish b48).
>
>
> TIA,
>
> Richter
>
>
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
>For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>
>