You can simply add the XMLRootElement annotation to that class you want to 
marshal. 

Sent from my iPad

On Mar 24, 2013, at 12:45 PM, "Alex O'Ree" <[email protected]> wrote:

> I think i found it. org.apache.juddi.jaxb.Marshaller
> 
> however now I'm getting this message.
> Caused by: com.sun.istack.SAXException2: unable to marshal type
> "org.uddi.api_v3.BusinessEntity" as an element because it is missing
> an @XmlRootElement annotation
> 
> I've ran into this before and usually just modify the generated
> classes, however the build process is automated. Is there a way to
> sneak this into to the maven build process?
> 
> On Sun, Mar 24, 2013 at 12:23 PM, Kurt Stam <[email protected]> wrote:
>> I was thinking about this one:
>> 
>> http://svn.apache.org/repos/asf/juddi/trunk/uddi-ws/src/test/java/org/uddi/api_v3/AuthInfoTest.java
>> 
>> --K
>> 
>> Sent from my iPad
>> 
>> On Mar 24, 2013, at 12:06 PM, "Alex O'Ree" <[email protected]> wrote:
>> 
>> I'm assuming you're referring to JUDDI_010 which uses EntityCreator
>> Publisher pubIn = (Publisher)EntityCreator.buildFromDoc(publisherXML,
>> "org.apache.juddi.api_v3");
>> 
>> The problem I have is that using  org.apache.juddi.jaxb.PrintUDDI to
>> serialize, actually doesn't produce valid xml. The semantics are
>> incorrect and thus cannot be used by the EntityCreator. Sounds like
>> I'll just have to make one
>> 
>> On Sun, Mar 24, 2013 at 11:44 AM, Kurt Stam <[email protected]> wrote:
>> 
>> The JAX-WS layer takes care of it (using JAXB) under the hood). If you want
>> to use JAXB straight up, then there is a unittest example in the uddi-ws
>> module.
>> 
>> 
>> Excellent news about the digitial signature in the browser.
>> 
>> 
>> --K
>> 
>> 
>> Sent from my iPad
>> 
>> 
>> On Mar 24, 2013, at 10:46 AM, "Alex O'Ree" <[email protected]> wrote:
>> 
>> 
>> Is there a recommend class/method combo for serializing/unserializing
>> 
>> uddi entity objects?
>> 
>> 
>> I've tried using the org.apache.juddi.jaxb.PrintUDDI, however the
>> 
>> output generated cannot be consumed by EntityCreator.buildFromString
>> 
>> 
>> EntityCreate.outputEntity only prints to stdout.
>> 
>> 
>> I almost have a digital signature functions working in the browser

Reply via email to