|
char * xml_input =
"<Req>"
"<TransactionCode>2002</TransactionCode>"
"<Data>"
"<HosId>1</HosId>"
"<DeptName></DeptName>"
"<DeptCode></DeptCode>"
"<WorkDateStart></WorkDateStart>"
"<WorkDateEnd></WorkDateEnd>"
"<WorkTime></WorkTime>"
"<RegType></RegType>"
"</Data>"
"</Req>";
Action()
{
// web_set_max_html_param_len("102400");
lr_save_string(xml_input, "data_xml");
lr_start_transaction("QueryClinicDept");
web_service_call( "StepName=service_101",
"SOAPMethod=ServiceGateWay|ServiceGateWayHttpPort|service",
"ResponseParam=response",
"Service=ServiceGateWay",
"ExpectedResponse=SoapResult",
"Snapshot=t1456739650.inf",
BEGIN_ARGUMENTS,
"authInfo={\"SessionKey\":\"SessionKey\",\"Sign\":\"Sign\",\"ClientVersion\":\"1213\",\"ClientId\":\"5435131\"}",
"sequenceNo=",
"api=yy.yygh.QueryClinicDept",
"param={data_xml}",
"paramType=1",
"outType=",
"v=",
END_ARGUMENTS,
BEGIN_RESULT,
"out=Param_out",
END_RESULT,
LAST);
服务器的xml返回值变成这样: <?xml version="1.0" encoding="UTF-8"?>
<Resp><TransactionCode>1003</TransactionCode><RespCode>10000</RespCode><RespMessage>成功.</RespMessage><Data><HosId>1001</HosId><rovinceCode>
怎么转义回xml: <data> a<\data>这样的格式 |
|