users@jax-ws.java.net

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

From: Rama Pulavarthi <Rama.Pulavarthi_at_Sun.COM>
Date: Thu, 10 Aug 2006 15:02:05 -0700

You want the "elementFormDefault=qualified" for the schema generated for
wrappers.
Wrappers generated by wsgen are put in jaxws subfolder of the SEI.
So, you should put package-info.java in the corresponding package. i.e
package info.everest.webservices.jaxws

I tried doing this with your project and it worked fine.

thanks,
Rama Pulavarthi


Edson Carlos Ericksson Richter wrote:
> Sorry, I forgot to attach project.
>
> Here it is.
>
> TIA,
>
> Richter
>
>
>
> Edson Carlos Ericksson Richter escreveu:
>> Hi! I mantained all the mail thread, so anyone could read and will be
>> easier to help.
>> The fact is Glassfish just ignores package-info.java.
>> To give whole history, I've attached the complete NB project (made
>> with latest daily build available - 200608090000).
>> Related issues:
>>
>> http://www.netbeans.org/issues/show_bug.cgi?id=81981
>> https://glassfish.dev.java.net/issues/show_bug.cgi?id=903
>>
>> Resume: Glassfish FCS (Sun App Server 9) just ignores package-info,
>> so I can't customize my web service (I need to add
>> "elementFormDefault=qualified" to XmlSchema to deal with .Net CF
>> framework).
>> I already tryied to add "namespace", but still silent ignored. No
>> error message on the server log. elementFormDefault is just ignored.
>> There is no compilation error, and the interface is present on the
>> WAR file.
>>
>>
>> Any help will be appreciated.
>>
>> Regards,
>>
>> Richter
>>
>>
>>
>> Sekhar Vajjhala escreveu:
>>> Can you reply to the users_at_jax-ws.dev.java.net with
>>> this input so others on the Sun team are aware that the
>>> workaround suggested does not work with NetBeans
>>> and glassfish b48 ? Or I can post on your behalf.
>>> Let me know.
>>>
>>> Thanks,
>>> Sekhar
>>>
>>> Edson Carlos Ericksson Richter wrote:
>>>
>>>> Already tried - it's on the project I sent to the list yesterday.
>>>> Unfortunately, didn't work.
>>>>
>>>>
>>>> Regards,
>>>>
>>>> Richter
>>>>
>>>>
>>>> Sekhar Vajjhala escreveu:
>>>>
>>>>> I will get around to trying this out on glassfish
>>>>> myself sometime today. But can you please try
>>>>> adding the namespace() annotation parameter as
>>>>> both Rama and I indicated to see if this fixes
>>>>> the problem you have ?
>>>>>
>>>>> Sekhar
>>>>>
>>>>> what Rama suggested on the mailin glist. Edson Carlos Ericksson
>>>>> Richter wrote:
>>>>>
>>>>>> Thank you, and yes, it's a typo.
>>>>>> I didn't tried on Tomcat - my main goal migrate everything I have
>>>>>> to Glassfish.
>>>>>> I did attach mine package-info.java.
>>>>>> Appear Glassfish b48 silent ignore it.
>>>>>>
>>>>>> Could you give a try on Sun App Server 9 or GF FSC (b48)?
>>>>>>
>>>>>> Thanks for your fast response!
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Richter
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Sekhar Vajjhala escreveu:
>>>>>>
>>>>>>> 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
> ---------------------------------------------------------------------
> 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