ken19850 发表于 2014-5-30 15:31:18

lrs_save_searched_string()函数

socket协议下的脚本Action()
{
        char string;

    lrs_create_socket("socket0", "TCP", "RemoteHost=etmservice.etong.com:80",LrsLastArg);

    lrs_send("socket0", "buf0", LrsLastArg);

    lrs_receive("socket0", "buf1", LrsLastArg);

    lrs_send("socket0", "buf2", LrsLastArg);

    lrs_receive("socket0", "buf3", LrsLastArg);

        lrs_save_searched_string("socket0",NULL,"string","LB/BIN=http","RB/BIN=org",1,0,-1);

        lr_output_message("%d",string);


    return 0;
}buf3的内容为
recvbuf3 1004
        "HTTP/1.1 200 OK\r\n"
        "Content-Length: 838\r\n"
        "Content-Type: text/xml; charset=utf-8\r\n"
        "Server: Microsoft-IIS/7.0\r\n"
        "X-Powered-By: ASP.NET\r\n"
        "Date: Fri, 30 May 2014 06:57:39 GMT\r\n"
        "\r\n"
        "<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\"><s:Body>"
        "<GetEtmPwdCodeResponse xmlns=\"http://tempuri.org/\"><GetEtmPwdCodeResult "
        "xmlns:a=\"http://schemas.datacontract.org/2004/07/ETong.WcfService.Modele\""
        " xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\"><a:ADDRESSID>c71c37"
        "83-d944-72ba-e040-a8c0f8001253</a:ADDRESSID><a:ADGROUPID>00000000-0000-000"
        "0-0000-000000000000</a:ADGROUPID><a:CREATETIME>2012-08-02T15:13:59</a:CREA"
        "TETIME><a:ETMGROUPID>77b8301c-9217-4b73-bd53-c652cf5bd44f</a:ETMGROUPID><a"
        ":EXITPWD>123456</a:EXITPWD><a:ID>4028807c-38e1-52a4-0138-e62f0c15005b</a:I"
        "D><a:ISLOCK>0</a:ISLOCK><a:MAC>201201</a:MAC><a:MODIFYDATE>2014-05-08T15:4"
        "5:15</a:MODIFYDATE><a:NAME>ETM201201</a:NAME><a:PWDCODE>18138958</a:PWDCOD"
        "E><a:REMARKS>鐭崇伒浣嶇疆</a:REMARKS></GetEtmPwdCodeResult></GetEtmPwdCode"
        "Response></s:Body></s:Envelope>"

结果是这样子
Action.c(26): lrs_save_searched_string(socket0, null, string, LB/BIN=http, RB/BIN=org, 1, 0, -1)
Action.c(28): 1

为啥string是1,而不是://schemas.xmlsoap.?
求大神指导!!!
页: [1]
查看完整版本: lrs_save_searched_string()函数