Search in sources :

Example 1 with SOAPBindingCodec

use of com.sun.xml.ws.encoding.SOAPBindingCodec in project metro-jax-ws by eclipse-ee4j.

the class SAAJFactoryTest method getLogicalMessage.

private Message getLogicalMessage(byte[] bytes, String contentType) throws IOException {
    ByteArrayInputStream in = new ByteArrayInputStream(bytes);
    WSBinding binding = BindingImpl.create(BindingID.SOAP11_HTTP);
    Codec codec = new SOAPBindingCodec(binding.getFeatures());
    Packet packet = new Packet();
    codec.decode(in, contentType, packet);
    return packet.getMessage();
}
Also used : WSBinding(com.sun.xml.ws.api.WSBinding) Packet(com.sun.xml.ws.api.message.Packet) Codec(com.sun.xml.ws.api.pipe.Codec) SOAPBindingCodec(com.sun.xml.ws.encoding.SOAPBindingCodec) ByteArrayInputStream(java.io.ByteArrayInputStream) SOAPBindingCodec(com.sun.xml.ws.encoding.SOAPBindingCodec)

Aggregations

WSBinding (com.sun.xml.ws.api.WSBinding)1 Packet (com.sun.xml.ws.api.message.Packet)1 Codec (com.sun.xml.ws.api.pipe.Codec)1 SOAPBindingCodec (com.sun.xml.ws.encoding.SOAPBindingCodec)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1