Hi all,
I try to disable tha validation and MTOM.

In my app I disable this validation in this way:
EndpointImpl ep = (EndpointImpl) Endpoint.create(
javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING, implementor);

ep.getProperties().put("schema-validation-enabled", Boolean.FALSE);
...
ep.publish(address);

and I set a MTOM a false:
((javax.xml.ws.soap.SOAPBinding)binding).setMTOMEnabled(false);

but it's not works too!

What should I do?

I look up a link https://jaxb.dev.java.net/issues/show_bug.cgi?id=588, but I
don't know where I must to modify into my app.
Can you help me?
 

Kid_79 wrote:
> 
> Excuse me,
> if validation is disabled, can it works!
> How can I config it?
> 
> 
> dkulp wrote:
>> 
>> On Fri July 17 2009 3:45:46 am Kid_79 wrote:
>>> I'm using CXF 2.2.2 and jaxb 2.1!
>> 
>> Well, if schema validation is on, it's kind of expected.   Bug is logged:
>> https://jaxb.dev.java.net/issues/show_bug.cgi?id=588
>> 
>> If schema validation isn't turned on, any way to create a test case and
>> attach 
>> to a JIRA?
>> 
>> Dan
>> 
>> 
>> 
>> 
>>> Kid
>>>
>>> dkulp wrote:
>>> > On Thu July 16 2009 6:52:55 am Kid_79 wrote:
>>> >> However, for attachments greater 64k, I can not retrieve the content,
>>> >> the file has a size 0k.
>>> >> What is the problem?
>>> >>
>>> >> Does CXF delete temporary files automatically?
>>> >
>>> > What version of CXF and do you have Schema validation turned on?  
>>> There
>>> > is a
>>> > bug in JAXB that is consuming the streams during schema validation. 
>>> When
>>> > the
>>> > stream is fully consumed, the file is deleted.
>>> >
>>> > Dan
>>> >
>>> >> Kid_79 wrote:
>>> >> > Ok,
>>> >> > thanks for your answer.
>>> >> > Where can I configure threshold and temporary file path?
>>> >> >
>>> >> > dkulp wrote:
>>> >> >> On Wed July 15 2009 12:59:32 pm Kid_79 wrote:
>>> >> >>> Does cxf save attachments in temporary files?
>>> >> >>
>>> >> >> It depends.  :-)
>>> >> >>
>>> >> >> In SOME cases, it doesn't need to save them anywhere.  For
>>> example,
>>> >> >> if there
>>> >> >> is just a single attachment that is passed in as a param, we can
>>> >> >> directly stream it off the wire.   No saving needed.
>>> >> >>
>>> >> >> If the attachments are small (default is 64K, but controllable),
>>> we
>>> >>
>>> >> also
>>> >>
>>> >> >> just
>>> >> >> keep them in memory.   However, if they exceed that threshold,
>>> then
>>> >>
>>> >> yes,
>>> >>
>>> >> >> we
>>> >> >> dump them into temp files.
>>> >> >>
>>> >> >> Does that answer the question?
>>> >> >> --
>>> >> >> Daniel Kulp
>>> >> >> [email protected]
>>> >> >> http://www.dankulp.com/blog
>>> >
>>> > --
>>> > Daniel Kulp
>>> > [email protected]
>>> > http://www.dankulp.com/blog
>> 
>> -- 
>> Daniel Kulp
>> [email protected]
>> http://www.dankulp.com/blog
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/CXF-and-Attachment-tp24502056p24626085.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to