Working if I specify content type like below. However, same is not working if i pass json as data. Bit weird. URL xmlUrl = new URL("https://<hostname>/DataFile.xml");
builder.addBinaryBody("data", xmlUrl.openStream(), ContentType.DEFAULT_BINARY, "data.xml"); URL xdpUrl = new URL("https://<host>/...