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();
}
Aggregations