users@jax-ws.java.net

Re: [Fwd: How to add elementFormDefault to a WebService]

From: Rama Pulavarthi <Rama.Pulavarthi_at_Sun.COM>
Date: Wed, 09 Aug 2006 14:01:12 -0700

Create package-info.java in the corresponding package with following
contents.
@XmlSchema (
        namespace = "http://example.com/foo/bar",
        elementFormDefault=XmlNsForm.QUALIFIED
      )
package com.example.foo.types;
import javax.xml.bind.annotation.XmlNsForm;
import javax.xml.bind.annotation.XmlSchema;.

Currently there is bug when the namespace is not specified, and is
under investigation.
You can specify the namespace to get around it for now.

thanks,
Rama Pulavarthi


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_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> 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
>