QimenClient client = new DefaultQimenClient(url, appkey, secret);
WavenumReportRequest req = new WavenumReportRequest();
req.setCustomerId("stub-cust-code");
req.setVersion("2.0");
req.setWaveNum("BC1234");
Order obj1 = new Order();
obj1.setDeliveryOrderCode("CK1234");
obj1.setDeliveryOrderId("CKD1234");
obj1.setNum("XH1234");
req.setOrders(obj1);
WavenumReportResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
IQimenClient client = new DefaultQimenClient(url, appkey, secret);
WavenumReportRequest req = new WavenumReportRequest();
req.CustomerId = "stub-cust-code";
req.Version = "2.0";
req.WaveNum = "BC1234";
WavenumReportRequest.OrderDomain obj1 = new WavenumReportRequest.OrderDomain();
req.Orders_= obj1;
obj1.DeliveryOrderCode = "CK1234";
obj1.DeliveryOrderId = "CKD1234";
obj1.Num = "XH1234";
req.Orders_ = obj1;
WavenumReportResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new QimenWavenumReportRequest;
$request = new WaveNumReportRequest;
$request->wave_num="BC1234";
$orders = new Order;
$orders->delivery_order_code="CK1234";
$orders->delivery_order_id="CKD1234";
$orders->num="XH1234";
$request->orders = $orders;
$request->extend_props="";
$req->setRequest(json_encode($request));
$resp = $c->execute($req);
curl -X POST 'http://qimenapi.tbsandbox.com/router/qimen/service?app_key=testerp_appkey&customerId=stub-cust-code&format=xml&method=taobao.qimen.wavenum.report&sign=4E988A33B761E6D72A8C5361AFB09714&sign_method=md5×tamp=2025-04-28+18%3A19%3A53&v=2.0&version=1' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
--data \
'<request>
<waveNum>BC1234</waveNum>
<orders>
<num>XH1234</num>
<deliveryOrderCode>CK1234</deliveryOrderCode>
<deliveryOrderId>CKD1234</deliveryOrderId>
</orders>
</request>'
# -*- coding: utf-8 -*-
import top.api
req=top.api.QimenWavenumReportRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.request="数据结构示例JSON格式"
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,"taobao.qimen.wavenum.report");
add_param(pRequest,"request","数据结构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',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('taobao.qimen.wavenum.report', {
'request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})