我们公司的企业代码是50237,请问NodeID应该是多少呢?
到底是350237呢,还是3043150237呢,还是别的什么呢?这两个我都试过,当使用350237时,Bind没有问题,但Submit时出现错误,返回SubmitResp值为9,9的意思是表示:非法序列号,包括序列号重复、序列号格式错误等。
当使用3043150237时,编译就通不过去了,编译错误信息如下:
D:\java\bin>javac MT_TEST.java
MT_TEST.java:15: integer number too large: 3043152037
                int node_id                     = 3043152037;
                                                  ^
1 error真是矛盾啊那位兄弟能帮帮我啊(说明:我用的是SGIP1.2)

解决方案 »

  1.   

    请问在移动CMPP短信协议,联通SGIP短信协议中如何处理 Unicode编码和GBK编码,如何处理汉字问题!!!!
      

  2.   

    //短消息内容、短信长度转换
    public void Convert_Msg(short Sm_Len,byte[] Msg)
    {
    try
    {
    byte[] temp = new byte[Sm_Len];
    for(int i=0;i<Sm_Len;i++)
    {
    temp[i]     = Msg[i];
    }
    //strMessage = new String(temp,"iso-8859-1");
    strMessage = new String(temp,"iso-10646-ucs-2");
    strMessage = strMessage.trim();
    strSm_Len = new Short(Sm_Len).toString();
    }
    catch (Exception e)
    {
    }
    }---------------------------------------------------
    if(del_re.data_coding==8)
    {
    Convert_Msg(del_re.sm_len,del_re.short_msg);
    }
    else
    {
    strMessage = new String(del_re.short_msg,"iso-8859-1");
    }
    ===================上面的移动的,联通的跟这个一样======================