|
webservice的吧。
Action()
{
//<!-- 记录用户接受程度:WsRecordResponse -->
web_add_header("SOAPAction","\"\"");
web_add_header("Content-Type", "text/xml");
web_set_max_html_param_len("1024");
web_reg_save_param("result_code",
"LB=RETURN_CODE>",
"RB=</RETURN_CODE",
//"ORD=ALL",
"Notfound=error", LAST);
//RETURN_CODE>0</RETURN_CODE
lr_start_transaction("WsRecordResponse");
web_custom_request("WsRecordResponse", "Method=POST",
"URL=http://X.X.X.X:51000/esbWS/services/WsRecordResponse",
"Body=<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">"
"<SOAP-ENV:Body>"
"<m:callService xmlns:m=\"http://ws.sitech.com\">"
"<m:pin><![CDATA[<?xml version=\"1.0\" encoding=\"GBK\" standalone=\"no\" ?>"
"<ROOT>"
"<COMMON_INFO>"
"<PROVINCE_GROUP type=\"string\">10011</PROVINCE_GROUP>"
"</COMMON_INFO>"
"<REQUEST_INFO>"
"<PHONE_NO type=\"string\">13934950093</PHONE_NO>"
"<LOGIN_NO type=\"string\">feea0I</LOGIN_NO>"
"<LOGIN_NAME type=\"string\">123</LOGIN_NAME>"
"<CHANNEL_TYPE type=\"string\">0</CHANNEL_TYPE>"
"<REGION_CODE type=\"string\">16</REGION_CODE>"
"<GROUP_ID type=\"string\">14051</GROUP_ID>"
"<ACT_ID type=\"string\">201112011000002454</ACT_ID>"
"<ID_NO type=\"string\">62211157770</ID_NO>"
"<CUST_GROUP_ID type=\"string\">201112011000002458</CUST_GROUP_ID>"
"<ACCEPT_FLAG type=\"string\">0</ACCEPT_FLAG>"
"</REQUEST_INFO>"
"</ROOT>]]></m:pin>"
"</m:callService>"
"</SOAP-ENV:Body>"
"</SOAP-ENV:Envelope>"
LAST);
if(strcmp(lr_eval_string("{result_code}"), "0") == 0)
{
lr_end_transaction("WsRecordResponse", LR_PASS);
}else{
lr_end_transaction("WsRecordResponse", LR_FAIL);
lr_error_message("WsRecordResponse失败,result_code: %s", lr_eval_string("{result_code}"));
}
return 0;
} |
|