TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthHenwenSolutionReportRequest req = new AlibabaAlihealthHenwenSolutionReportRequest();
AlibabaAlihealthHenwenSolutionReportRequest.JkPackagingDecisionCallbackDTO obj1 = new AlibabaAlihealthHenwenSolutionReportRequest.JkPackagingDecisionCallbackDTO();
obj1.setOutItemId(123456L);
obj1.setDimensionId(123123L);
AlibabaAlihealthHenwenSolutionReportRequest.JkPackagingSolutionCallbackDTO obj2 = new AlibabaAlihealthHenwenSolutionReportRequest.JkPackagingSolutionCallbackDTO();
obj2.setProtectionSolutionCode("abc123");
obj2.setPackagingSolutionName("测试包装方案");
obj2.setPackagingSolutionCode("ACC123");
obj2.setProtectionSolutionName("测试防护方案");
obj2.setOuterPackagingSolutionName("测试外包装");
obj2.setOuterPackagingSolutionCode("DDD123");
obj1.setJkPackagingSolution(obj2);
obj1.setSolutionName("测试方案");
obj1.setIndustry("shangou");
obj1.setDecisionDimension("{\"key\":\"value\"}");
req.setJkPackagingDecisionCallbackDto(obj1);
AlibabaAlihealthHenwenSolutionReportResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlihealthHenwenSolutionReportRequest req = new AlibabaAlihealthHenwenSolutionReportRequest();
AlibabaAlihealthHenwenSolutionReportRequest.JkPackagingDecisionCallbackDTODomain obj1 = new AlibabaAlihealthHenwenSolutionReportRequest.JkPackagingDecisionCallbackDTODomain();
obj1.OutItemId = 123456L;
obj1.DimensionId = 123123L;
AlibabaAlihealthHenwenSolutionReportRequest.JkPackagingSolutionCallbackDTODomain obj2 = new AlibabaAlihealthHenwenSolutionReportRequest.JkPackagingSolutionCallbackDTODomain();
obj2.ProtectionSolutionCode = "abc123";
obj2.PackagingSolutionName = "测试包装方案";
obj2.PackagingSolutionCode = "ACC123";
obj2.ProtectionSolutionName = "测试防护方案";
obj2.OuterPackagingSolutionName = "测试外包装";
obj2.OuterPackagingSolutionCode = "DDD123";
obj1.JkPackagingSolution= obj2;
obj1.SolutionName = "测试方案";
obj1.Industry = "shangou";
obj1.DecisionDimension = "{\"key\":\"value\"}";
req.JkPackagingDecisionCallbackDto_ = obj1;
AlibabaAlihealthHenwenSolutionReportResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlihealthHenwenSolutionReportRequest;
$jk_packaging_decision_callback_dto = new JkPackagingDecisionCallbackDTO;
$jk_packaging_decision_callback_dto->out_item_id="123456";
$jk_packaging_decision_callback_dto->dimension_id="123123";
$jk_packaging_solution = new JkPackagingSolutionCallbackDTO;
$jk_packaging_solution->protection_solution_code="abc123";
$jk_packaging_solution->packaging_solution_name="测试包装方案";
$jk_packaging_solution->packaging_solution_code="ACC123";
$jk_packaging_solution->protection_solution_name="测试防护方案";
$jk_packaging_solution->outer_packaging_solution_name="测试外包装";
$jk_packaging_solution->outer_packaging_solution_code="DDD123";
$jk_packaging_decision_callback_dto->jk_packaging_solution = $jk_packaging_solution;
$jk_packaging_decision_callback_dto->solution_name="测试方案";
$jk_packaging_decision_callback_dto->industry="shangou";
$jk_packaging_decision_callback_dto->decision_dimension="{\"key\":\"value\"}";
$req->setJkPackagingDecisionCallbackDto(json_encode($jk_packaging_decision_callback_dto));
$resp = $c->execute($req);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=alibaba.alihealth.henwen.solution.report' \
-d 'partner_id=apidoc' \
-d 'sign=1821BF93CA7549CE83EE1848BC05FBCB' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-05-29+02%3A22%3A34' \
-d 'v=2.0' \
-d 'jk_packaging_decision_callback_dto=%E5%8C%85%E8%A3%85%E6%96%B9%E6%A1%88%E5%8F%82%E6%95%B0'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlihealthHenwenSolutionReportRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.jk_packaging_decision_callback_dto="包装方案参数"
try:
resp= req.getResponse()
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"alibaba.alihealth.henwen.solution.report");
add_param(pRequest,"jk_packaging_decision_callback_dto","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,NULL);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.alihealth.henwen.solution.report', {
'jk_packaging_decision_callback_dto':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})