如何“针对给定的json进行多部分/混合请求”

时间:2019-01-23 16:12:14

标签: java json multipart-mixed-replace

我正在尝试使用带有Java的apache库针对给定的json进行多部分/混合请求,但是我所做的却对我不起作用。所以请有人帮我做这个。我在需要进行多部分/混合请求的json请求下方发布:-

Accept: application/json;
Content-Type: multipart/mixed; boundary="boundary"
Content-Length: <n>
--boundary
Type: application/json; charset=utf-8;
profile=”abc.com/bss.msgMessagingEventReceiver.EventMessage.executeRequest.1.json
{
"eventMessageType ": "Notification"
}
--boundary
Type: application/json; charset=utf-8;
{
"schemaNameSpace": "com.xyz.cel.cer.ntf",
"schemaName": "abc_Sample",
"schemaVersion": "2.0.0",
"ABCBasicData": {
"templateId": "172233",
"applicationId": "CHA",
"accessProfileCriteria": null,
"msgPriority": 1,
"channel": "POP",
"traceId": null,
"triggeringId": "INSTANCE-ID-001",
"eventCreationTime": null,
"recipientId": null,
"applicationData": {}
},
}--boundary

0 个答案:

没有答案