求一个SDK 二次开发 SERVER 。源码。谢谢。     自己写的。找出错误也行。   求助!!!
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using RTXSAPILib;namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }        RTXSAPIRootObj rootObj;
        RTXSAPIObj apiObj;
        RTXSAPIMessage msgObj;
        RTXSData sdataObj;
        private void Form1_Load(object sender, EventArgs e)
        {
            InitializeComponent();
            this.rootObj = new RTXSAPIRootObj();
            this.apiObj = rootObj.CreateAPIObj();
            this.msgObj = apiObj.CreateMessage();
            this.sdataObj = rootObj.CreateRTXSData();            apiObj.ServerIP = this.textBox1.Text;
            apiObj.ServerPort = short.Parse(this.textBox2.Text);
            apiObj.AppGUID = "{16F8F6DB-EB21-4520-8371-421DD76A9148}";
            apiObj.AppName = "CsDemoClient";
            
            apiObj.AppAction = RTXSAPI_APP_ACTION.AA_COPY;            apiObj.FilterAppName = "All";
            apiObj.FilterRequestType = "Tencent.RTX.CsDemoClient";
            apiObj.FilterResponseType = "none";
            apiObj.FilterSender = "anyone";
            apiObj.FilterReceiver = "anyone";
            apiObj.FilterReceiverState = "anystate";
            apiObj.FilterKey = "";            try
            {
                apiObj.RegisterApp();
                apiObj.StartApp("", 4);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }       
        private void button1_Click(object sender, EventArgs e)
        {
            RTXSData sendData = rootObj.CreateRTXSData();
            sendData.SetString("Sender", "{16F8F6DB-EB21-4520-8371-421DD76A9148}");
            sendData.SetString("Content", this.textBox6.Text);            msgObj.Sender = "{16F8F6DB-EB21-4520-8371-421DD76A9148}";
            msgObj.Receivers = "1013";            msgObj.MsgType = "Tencent.RTX.CsDemoClient";
            msgObj.AppName = "Tencent.RTX.CsDemoClient";
            msgObj.Content = sendData.XML;
            msgObj.MessageFlag = RTXSAPI_MESSAGE_FLAG.RTXSAPI_MESSAGE_FLAG_DEFAULT;            try
            {
                apiObj.SendMessage(msgObj,false);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
    }
}

解决方案 »

  1.   

      不报错。只是打印的消息为 “” 这2个符号。
    InitializeComponent();
                this.rootObj = new RTXSAPIRootObj();
                this.apiObj = rootObj.CreateAPIObj();
                this.msgObj = apiObj.CreateMessage();
                this.sdataObj = rootObj.CreateRTXSData();            apiObj.ServerIP = this.textBox1.Text;
                apiObj.ServerPort = short.Parse(this.textBox2.Text);
                apiObj.AppGUID = "{16F8F6DB-EB21-4520-8371-421DD76A9148}";
                apiObj.AppName = "Sms";
                
                apiObj.AppAction = RTXSAPI_APP_ACTION.AA_COPY;            apiObj.FilterAppName = "All";
                apiObj.FilterRequestType = "Tencent.RTX.Sms";
                apiObj.FilterResponseType = "none";
                apiObj.FilterSender = "anyone";
                apiObj.FilterReceiver = "anyone";
                apiObj.FilterReceiverState = "anystate";
                apiObj.FilterKey = "";            try
                {
                    apiObj.RegisterApp();
                    apiObj.StartApp("", 4);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
    这是注册与启动应用。RTXSData sendData = rootObj.CreateRTXSData();
                sendData.SetString("Sender", "{16F8F6DB-EB21-4520-8371-421DD76A9148}");
                sendData.SetString("Content", this.textBox6.Text);            msgObj.Sender = "{16F8F6DB-EB21-4520-8371-421DD76A9148}";
                msgObj.Receivers = "1013";            msgObj.MsgType = "Tencent.RTX.Sms";
                msgObj.AppName = "Tencent.RTX.Sms";
                msgObj.Content = sendData.XML;
                msgObj.MessageFlag = RTXSAPI_MESSAGE_FLAG.RTXSAPI_MESSAGE_FLAG_DEFAULT;            try
                {
                    apiObj.SendMessage(msgObj,false);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
    这是发送消息。        发送的消息 为空字符快。  而且还有2个引号。