网络服务方法

扫码查看
本文介绍了网络服务方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



当我运行我的Web服务时,发生了此错误.

错误:


代码:

 公共 FactureTopNet CreationFacture( ref  FactureTopNet事实)
       {

           System.Data.OleDb.OleDbConnection conn =  System.Data.OleDb.OleDbConnection();
           conn.ConnectionString =  @"  Provider = SQLOLEDB.1;集成安全性= SSPI;持久性安全信息= False;用户ID = topnet;初始目录= TopnetBase;数据源= SWEET-4B6F892B4 \ SQLEXPRESS";
           conn.Open();
           FactureTopNet facture =  FactureTopNet();
            int  r;
           字符串 req = " 插入到制造厂(NUM_FACTURE,NUM_JUR_FACT, SOCIETE,TYPE,LOGIN_CREATION,DATE_CREATION,LOGIN_MODIFICATION,DATE_MODIFICATION,MNT_FACT,REMISE,NET_PAYE,REST_PAYE,OBSERV,ID_CLIENT,REMARQUE,MONTANTTEXT,TIMBRE,AVOIR,NUM_LISTE,ID_COM_ID, RED_COM,INTER_GROUPE)VALUES('" + fact.NUM_FACTURE + "  ','" + fact.NUM_JUR_FACT + " ','"  + fact.SOCIETE + "  ','" + fact.TYPE + "  ','" +事实.LOGIN_CREATION+ "  ','" + fact.DATE_CREATION + " ','"  + fact.LOGIN_MODIFICATION + " ',' + fact.DATE_MODIFICATION + "  ','" +事实.MNT_FACT+ "  ','" + fact.REMISE + "  ','" + fact.NET_PAYE + " ',' + fact.REST_PAYE + " ','"  + fact.OBSERV + " ','" + fact.ID_CLIENT + "  ',' " + fact.REMARQUE + "  ',' + fact.MONTANTTEXT + " ','"  + fact.TIMBRE + " ',' " + fact.AVOIR + "  ',' + fact.NUM_LISTE + " ','"  + fact.ID_REV + " ','" +事实.NUM_PF+ "  ' ,'" + fact.NUM_PP + "  ',' + fact.REFERENCE + " ','"  + fact.CLE + " ','" + fact.ID_COM + "  ','" +事实.MONTANT_COM+ "  ','" +事实. DATE_COM + " ','"  + fact.RED_COM +  " ','"  + fact.INTER_G ROUPE + " ')" ;
           System.Data.OleDb.OleDbCommand命令= 新建 System.Data.OleDb.OleDbCommand(req,conn);
           r = command.ExecuteNonQuery();
           facture.NUM_FACTURE = fact.NUM_FACTURE;
           facture.NUM_JUR_FACT = fact.NUM_JUR_FACT;
           facture.SOCIETE = fact.SOCIETE;
           facture.TYPE = fact.TYPE;
           facture.LOGIN_CREATION = fact.LOGIN_CREATION;
           facture.DATE_CREATION = fact.DATE_CREATION;
           facture.LOGIN_MODIFICATION = fact.LOGIN_MODIFICATION;
           facture.DATE_MODIFICATION = fact.DATE_MODIFICATION;
           facture.MNT_FACT = fact.MNT_FACT;
           facture.REMISE =事实.REMISE;
           facture.NET_PAYE = fact.NET_PAYE;
           facture.REST_PAYE = fact.REST_PAYE;
           facture.OBSERV = fact.OBSERV;
           facture.ID_CLIENT = fact.ID_CLIENT;
           facture.REMARQUE =事实.REMARQUE;
           facture.MONTANTTEXT = fact.MONTANTTEXT;
           facture.TIMBRE = fact.TIMBRE;
           facture.AVOIR = fact.AVOIR;
           facture.NUM_LISTE = fact.NUM_LISTE;
           facture.ID_REV = fact.ID_CLIENT;
           facture.NUM_PF = fact.NUM_PF;
           facture.NUM_PP = fact.NUM_PP;
           facture.REFERENCE = fact.REFERENCE;
           facture.CLE = fact.CLE;
           facture.ID_COM = fact.ID_COM;
           facture.MONTANT_COM = fact.MONTANT_COM;
           facture.DATE_COM = fact.DATE_COM;
           facture.RED_COM =事实.RED_COM;
           facture.INTER_GROUPE = fact.INTER_GROUPE;
           返回(界面);

       }




如果有任何想法,请帮助我:(:(解决方案


Hi,

when i run my webservice this error has occured.

Error:


Code:

public FactureTopNet CreationFacture(ref FactureTopNet fact)
       {

           System.Data.OleDb.OleDbConnection conn = new     System.Data.OleDb.OleDbConnection();
           conn.ConnectionString = @"Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;User ID=topnet;Initial Catalog=TopnetBase;Data Source=SWEET-4B6F892B4\SQLEXPRESS";
           conn.Open();
           FactureTopNet facture = new FactureTopNet();
           int r;
           string req = "INSERT INTO facture (NUM_FACTURE, NUM_JUR_FACT, SOCIETE, TYPE, LOGIN_CREATION, DATE_CREATION,LOGIN_MODIFICATION,DATE_MODIFICATION,MNT_FACT, REMISE, NET_PAYE, REST_PAYE, OBSERV, ID_CLIENT, REMARQUE, MONTANTTEXT, TIMBRE, AVOIR,NUM_LISTE,ID_REV,NUM_PF,NUM_PP, REFERENCE, CLE, ID_COM,MONTANT_COM, DATE_COM, RED_COM, INTER_GROUPE)VALUES('" + fact.NUM_FACTURE + "','" + fact.NUM_JUR_FACT + "','" + fact.SOCIETE + "','" + fact.TYPE + "','" + fact.LOGIN_CREATION + "','" + fact.DATE_CREATION + "','" + fact.LOGIN_MODIFICATION + "','" + fact.DATE_MODIFICATION + "','" + fact.MNT_FACT + "','" + fact.REMISE + "','" + fact.NET_PAYE + "','" + fact.REST_PAYE + "','" + fact.OBSERV + "','" + fact.ID_CLIENT + "','" + fact.REMARQUE + "','" +fact.MONTANTTEXT + "','" + fact.TIMBRE + "','" + fact.AVOIR + "','" + fact.NUM_LISTE + "','" + fact.ID_REV + "','" + fact.NUM_PF + "','" + fact.NUM_PP + "','" + fact.REFERENCE + "','" +fact.CLE + "','" + fact.ID_COM + "','" + fact.MONTANT_COM + "','" + fact.DATE_COM + "','" + fact.RED_COM + "','" + fact.INTER_GROUPE + "')";
           System.Data.OleDb.OleDbCommand command = new System.Data.OleDb.OleDbCommand(req, conn);
           r = command.ExecuteNonQuery();
           facture.NUM_FACTURE = fact.NUM_FACTURE;
           facture.NUM_JUR_FACT = fact.NUM_JUR_FACT;
           facture.SOCIETE = fact.SOCIETE;
           facture.TYPE = fact.TYPE;
           facture.LOGIN_CREATION = fact.LOGIN_CREATION;
           facture.DATE_CREATION = fact.DATE_CREATION;
           facture.LOGIN_MODIFICATION = fact.LOGIN_MODIFICATION;
           facture.DATE_MODIFICATION = fact.DATE_MODIFICATION;
           facture.MNT_FACT = fact.MNT_FACT;
           facture.REMISE = fact.REMISE;
           facture.NET_PAYE = fact.NET_PAYE;
           facture.REST_PAYE = fact.REST_PAYE;
           facture.OBSERV = fact.OBSERV;
           facture.ID_CLIENT = fact.ID_CLIENT;
           facture.REMARQUE = fact.REMARQUE;
           facture.MONTANTTEXT = fact.MONTANTTEXT;
           facture.TIMBRE = fact.TIMBRE;
           facture.AVOIR = fact.AVOIR;
           facture.NUM_LISTE = fact.NUM_LISTE;
           facture.ID_REV = fact.ID_CLIENT;
           facture.NUM_PF = fact.NUM_PF;
           facture.NUM_PP = fact.NUM_PP;
           facture.REFERENCE = fact.REFERENCE;
           facture.CLE = fact.CLE;
           facture.ID_COM = fact.ID_COM;
           facture.MONTANT_COM = fact.MONTANT_COM;
           facture.DATE_COM = fact.DATE_COM;
           facture.RED_COM = fact.RED_COM;
           facture.INTER_GROUPE = fact.INTER_GROUPE;
           return (facture);

       }




if any one have an idea , please help me :( :(

解决方案


这篇关于网络服务方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 16:49
查看更多