> 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.
>
gt; > >@POST
> > > >> > >@Produces("text/xml")
> > > >> > > @Consumes("multipart/form-data;type=text/xml")
> > > >> > >Device addDevice(List device);
> > > >> > >
> > > >
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.
> > >> > >
> > >> >
> > >>
> > >
> > >
> >
>
ler(AbstractClient.java:487)
> >> > >at
> >> > >
> >> > >
> >> >
> >>
> org.apache.cxf.jaxrs.client.AbstractClient.writeBody(AbstractClient.java:401)
> >> > >at
> >> > >
> >> &g
Impl$BodyWriter.handleMessage(ClientProxyImpl.java:514)
> > > >... 5 more
> > > >
> > > > Device is a JAXB Bean.:
> > > > @Entity(name="device")
> > > > @XmlRootElement(name="device")
> > > > @Xml
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.
>> > >
>> >
>>
>
>
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.
> > >
> >
>
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
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.
> >
>
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.
>
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.
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.
>
@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:
.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.
>
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
15 matches
Mail list logo