Ejemplo n.º 1
0
        private string DoTestICS(string _xmlData)
        {
            JSGeneralDataService.JSGeneralDataServiceClient _jdsc = new JSGeneralDataService.JSGeneralDataServiceClient();
            _jdsc.Endpoint.Address = new EndpointAddress(new Uri(this.URL));

            try
            {
                string _msg = _jdsc.Do(this.Token, this.CommandName, _xmlData);
                return(_msg);
            }
            catch (Exception ex)
            {
                return(ex.Message);
            }
        }
Ejemplo n.º 2
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            string _url     = (te_URL.EditValue == null) ? "" : te_URL.EditValue.ToString();
            string _token   = (te_Token.EditValue == null) ? "" : te_Token.EditValue.ToString();
            string _xmlData = DataConvert.Serializer(typeof(List <MD_GuideLineSimpleParam>), ParamList);

            this.te_CallData.Text = _xmlData;
            JSGeneralDataService.JSGeneralDataServiceClient _jdsc = new JSGeneralDataService.JSGeneralDataServiceClient();
            _jdsc.Endpoint.Address = new EndpointAddress(new Uri(_url));

            try
            {
                string _msg = _jdsc.Do(_token, CommandName, _xmlData);
                this.te_Return.Text = _msg;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "系统错误");
            }
        }