public SOAPEnvelope parse(byte [] bytes) throws Exception { try (InputStream is = new ByteArrayInputStream(bytes)) { return parse(is); } }
payloadIO = null; if ("soap".equalsIgnoreCase(api.getEndpointType())) { //$NON-NLS-1$ payloadIO = new SoapPayloadIO(); } else if ("rest".equalsIgnoreCase(api.getEndpointType())) { //$NON-NLS-1$ if ("xml".equalsIgnoreCase(api.getEndpointContentType())) { //$NON-NLS-1$
payloadIO = null; if ("soap".equalsIgnoreCase(api.getEndpointType())) { //$NON-NLS-1$ payloadIO = new SoapPayloadIO(); } else if ("rest".equalsIgnoreCase(api.getEndpointType())) { //$NON-NLS-1$ if ("xml".equalsIgnoreCase(api.getEndpointContentType())) { //$NON-NLS-1$
/** * @see io.apiman.gateway.engine.io.IPayloadIO#unmarshall(byte[]) */ @Override public SOAPEnvelope unmarshall(byte[] input) throws Exception { try (InputStream is = new ByteArrayInputStream(input)) { return parse(is); } }
public SOAPEnvelope parse(byte [] bytes) throws Exception { try (InputStream is = new ByteArrayInputStream(bytes)) { return parse(is); } }
/** * @see io.apiman.gateway.engine.io.IPayloadIO#unmarshall(byte[]) */ @Override public SOAPEnvelope unmarshall(byte[] input) throws Exception { try (InputStream is = new ByteArrayInputStream(input)) { return parse(is); } }