|
mzgh2()
{
char outxml[1000],inxml[1000];
strcpy(inxml,"");
strcpy(outxml,"");
strcpy(inxml,lr_eval_string("<?xml version=\"1.0\" encoding=\"UTF-8\" ?><root identity=\"\"><head><service><handler>MzlwGhServiceHandler</handler><handleTime/>"));
strcat(inxml,"<action>saveGhxx</action><replyCode/><replyMessage/><synchronize>false</synchronize></service><createTime>1288226158937</createTime></head>");
strcat(inxml,lr_eval_string("<body><request><yijgdm>MZJJ0011</yijgdm><fwmc>YIMZLWJS</fwmc><ywlx>MZ_MZGH</ywlx><kh/><gmsfhm>{gmsfhm_id}</gmsfhm>"));
strcat(inxml,lr_eval_string("<xm>{xm_id}</xm><mzzd>眩晕</mzzd><ghlsh>GH{ghlsh_id}</ghlsh><ghmzh/><mzbm>3</mzbm><mzlsh/><ghrq>20101112</ghrq><ghjbr>0034</ghjbr><ksbh/><ghjbsj>{jbsj_times}</ghjbsj></request></body></root>"));
lr_load_dll("csi_ws.dll");
invokeWS("http://139.0.1.41/sdmzlw/services/CoreService?wsdl",inxml,outxml);
lr_message("=============%s",inxml);
lr_message("=============%s",outxml);
//free(outxml);
//free(inxml);
return 0;
}
单元测试没有问题,但是在性能测试的时候就返回这些错误。
mzgh2.c(15): Error: C interpreter run time error: mzgh2.c (15): Error -- memory violation : Exception ACCESS_VIOLATION received. |
|