Re: Help required with apache cxf multiparts

2010-10-13 Thread Sergey Beryozkin
> The WebClient.client(client).header("Content-Type", > "multipart/mixed;type=application/xml"); > did the trick. > -- > View this message in context: > http://cxf.547215.n5.nabble.com/Help-required-with-apache-cxf-multiparts-tp3199975p3200774.html > Sent from the cxf-user mailing list archive at Nabble.com. >

Re: JAX-RS and Collections of JAXB objects (was: Help required with apache cxf multiparts)

2010-10-06 Thread Sergey Beryozkin
gt; > >@POST > > > >> > >@Produces("text/xml") > > > >> > > @Consumes("multipart/form-data;type=text/xml") > > > >> > >Device addDevice(List device); > > > >> > > > > > >

Re: JAX-RS and Collections of JAXB objects (was: Help required with apache cxf multiparts)

2010-10-06 Thread Josh Holtzman
gt; > > > > >> > > > > >> > > > >> > > > org.apache.cxf.jaxrs.client.AbstractClient.reportNoMessageHandler(AbstractClient.java:487) > > >> > >at > > >> > > > > >> > > > > >> > > > >> > > > org.apache.cxf.jaxrs.client.AbstractClient.writeBody(AbstractClient.java:401) > > >> > >at > > >> > > > > >> > > > > >> > > > >> > > > org.apache.cxf.jaxrs.client.ClientProxyImpl$BodyWriter.handleMessage(ClientProxyImpl.java:514) > > >> > >... 5 more > > >> > > > > >> > > Device is a JAXB Bean.: > > >> > > @Entity(name="device") > > >> > > @XmlRootElement(name="device") > > >> > > @XmlAccessorType(XmlAccessType.FIELD) > > >> > > public class Device extends DomainEntity { > > >> > > > > >> > >/** > > >> > > * > > >> > > */ > > >> > >private static final long serialVersionUID = 1L; > > >> > > > > >> > >public Device() {} > > >> > > > > >> > > > > >> > >@XmlAttribute(name="deviceName") > > >> > >private String deviceName; > > >> > > > > >> > >@XmlAttribute(name="deviceType") > > >> > >private String deviceType; > > >> > > > > >> > >@XmlAttribute(name="modelNumber") > > >> > >private String modelNumber; > > >> > > > > >> > >@XmlAttribute(name="serialNumber") > > >> > >private String serialNumber; > > >> > >.. > > >> > > } > > >> > > > > >> > > Who do I need to do next? Desparate to get this working. > > >> > > Thanks for all your help. > > >> > > -- > > >> > > View this message in context: > > >> > > > > >> > > > >> > > > http://cxf.547215.n5.nabble.com/Help-required-with-apache-cxf-multiparts-tp3199975p3200103.html > > >> > > Sent from the cxf-user mailing list archive at Nabble.com. > > >> > > > > >> > > > >> > > > > > > > > >

Re: JAX-RS and Collections of JAXB objects (was: Help required with apache cxf multiparts)

2010-10-06 Thread Sergey Beryozkin
ler(AbstractClient.java:487) > >> > >at > >> > > > >> > > > >> > > >> > org.apache.cxf.jaxrs.client.AbstractClient.writeBody(AbstractClient.java:401) > >> > >at > >> > > > >> &g

Re: JAX-RS and Collections of JAXB objects (was: Help required with apache cxf multiparts)

2010-10-06 Thread Sergey Beryozkin
Impl$BodyWriter.handleMessage(ClientProxyImpl.java:514) > > > >... 5 more > > > > > > > > Device is a JAXB Bean.: > > > > @Entity(name="device") > > > > @XmlRootElement(name="device") > > > > @Xml

Re: JAX-RS and Collections of JAXB objects (was: Help required with apache cxf multiparts)

2010-10-06 Thread Josh Holtzman
Impl.java:514) >> > >... 5 more >> > > >> > > Device is a JAXB Bean.: >> > > @Entity(name="device") >> > > @XmlRootElement(name="device") >> > > @XmlAccessorType(XmlAccessType.FIELD) >> > > public class Device extends DomainEntity { >> > > >> > >/** >> > > * >> > > */ >> > >private static final long serialVersionUID = 1L; >> > > >> > >public Device() {} >> > > >> > > >> > >@XmlAttribute(name="deviceName") >> > >private String deviceName; >> > > >> > >@XmlAttribute(name="deviceType") >> > >private String deviceType; >> > > >> > >@XmlAttribute(name="modelNumber") >> > >private String modelNumber; >> > > >> > >@XmlAttribute(name="serialNumber") >> > >private String serialNumber; >> > >.. >> > > } >> > > >> > > Who do I need to do next? Desparate to get this working. >> > > Thanks for all your help. >> > > -- >> > > View this message in context: >> > > >> > >> http://cxf.547215.n5.nabble.com/Help-required-with-apache-cxf-multiparts-tp3199975p3200103.html >> > > Sent from the cxf-user mailing list archive at Nabble.com. >> > > >> > >> > >

JAX-RS and Collections of JAXB objects (was: Help required with apache cxf multiparts)

2010-10-06 Thread Josh Holtzman
gt; > > */ > > >private static final long serialVersionUID = 1L; > > > > > >public Device() {} > > > > > > > > >@XmlAttribute(name="deviceName") > > >private String deviceName; > > > > > >@XmlAttribute(name="deviceType") > > >private String deviceType; > > > > > >@XmlAttribute(name="modelNumber") > > >private String modelNumber; > > > > > >@XmlAttribute(name="serialNumber") > > >private String serialNumber; > > >.. > > > } > > > > > > Who do I need to do next? Desparate to get this working. > > > Thanks for all your help. > > > -- > > > View this message in context: > > > > > > http://cxf.547215.n5.nabble.com/Help-required-with-apache-cxf-multiparts-tp3199975p3200103.html > > > Sent from the cxf-user mailing list archive at Nabble.com. > > > > > >

Re: Help required with apache cxf multiparts

2010-10-05 Thread oceanz
Thanks a lot Serge. The WebClient.client(client).header("Content-Type", "multipart/mixed;type=application/xml"); did the trick. -- View this message in context: http://cxf.547215.n5.nabble.com/Help-required-with-apache-cxf-multiparts-tp3199975p3200774.html Se

Re: Help required with apache cxf multiparts

2010-10-05 Thread Sergey Beryozkin
me") > >private String deviceName; > > > >@XmlAttribute(name="deviceType") > > private String deviceType; > > > >@XmlAttribute(name="modelNumber") > >private String modelNumber; > > > >@XmlAttribute(name="serialNumber") > >private String serialNumber; > >.. > > } > > > > Who do I need to do next? Desparate to get this working. > > Thanks for all your help. > > -- > > View this message in context: > > > http://cxf.547215.n5.nabble.com/Help-required-with-apache-cxf-multiparts-tp3199975p3200103.html > > Sent from the cxf-user mailing list archive at Nabble.com. > > >

Re: Help required with apache cxf multiparts

2010-10-05 Thread Sergey Beryozkin
usually contained in multipart requests. thanks, Sergey On Tue, Oct 5, 2010 at 7:40 PM, oceanz wrote: > > Josh, > > I tried to wrap it up.But still the same problem.Any furthur pointers? > > Thanks. > -- > View this message in context: > http://cxf.547215.n5.nabble.com/Help-required-with-apache-cxf-multiparts-tp3199975p3200207.html > Sent from the cxf-user mailing list archive at Nabble.com. >

Re: Help required with apache cxf multiparts

2010-10-05 Thread oceanz
Josh, I tried to wrap it up.But still the same problem.Any furthur pointers? Thanks. -- View this message in context: http://cxf.547215.n5.nabble.com/Help-required-with-apache-cxf-multiparts-tp3199975p3200207.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Help required with apache cxf multiparts

2010-10-05 Thread Josh Holtzman
e="modelNumber") >private String modelNumber; > >@XmlAttribute(name="serialNumber") >private String serialNumber; >.. > } > > Who do I need to do next? Desparate to get this working. > Thanks for all your help. > -- > View this message in context: > http://cxf.547215.n5.nabble.com/Help-required-with-apache-cxf-multiparts-tp3199975p3200103.html > Sent from the cxf-user mailing list archive at Nabble.com. >

Re: Help required with apache cxf multiparts

2010-10-05 Thread oceanz
@XmlAttribute(name="modelNumber") private String modelNumber; @XmlAttribute(name="serialNumber") private String serialNumber; .. } Who do I need to do next? Desparate to get this working. Thanks for all your help. -- View this message in context:

Re: Help required with apache cxf multiparts

2010-10-05 Thread Sergey Beryozkin
.java:487) > at > > org.apache.cxf.jaxrs.client.AbstractClient.writeBody(AbstractClient.java:401) >at > > org.apache.cxf.jaxrs.client.ClientProxyImpl$BodyWriter.handleMessage(ClientProxyImpl.java:514) > -- > View this message in context: > http://cxf.547215.n5.nabble.com/Help-required-with-apache-cxf-multiparts-tp3199975p3199975.html > Sent from the cxf-user mailing list archive at Nabble.com. >

Help required with apache cxf multiparts

2010-10-05 Thread oceanz
pache.cxf.jaxrs.client.AbstractClient.reportNoMessageHandler(AbstractClient.java:487) at org.apache.cxf.jaxrs.client.AbstractClient.writeBody(AbstractClient.java:401) at org.apache.cxf.jaxrs.client.ClientProxyImpl$BodyWriter.handleMessage(ClientProxyImpl.java:514) -- View this message in