Bit more info:

Here's my Web Service Interface:

/@WebService
public interface HelloWorld {
    String sayHi(String text,
                 @XmlMimeType("application/octet-stream")
                 DataHandler dataHandler);
}/

Here's the implementation:

/public String sayHi(String text,
                        DataHandler dataHandler) {
        
        InputStream is;
        
        try {
            is = dataHandler.getInputStream();
            
            LOG.info("BYTES: " + is.available());
            
        } catch (IOException e) {
            
            e.printStackTrace();
        }

        return "Hello " + text;
    }
}
/

Cheers,

Jon.



--
View this message in context: 
http://cxf.547215.n5.nabble.com/DataHandler-InputStream-0-Bytes-Using-MTOM-tp4575283p4575311.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to