首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

web services有关问题,很简单,都来看一下

2012-01-31 
web services问题,很简单,都来看一下//------------------------------------------//autogenerated//Th

web services问题,很简单,都来看一下
//------------------------------------------
//   <autogenerated>
//           This   code   was   generated   by   a   tool.
//           Runtime   Version:   1.1.4322.573
//
//           Changes   to   this   file   may   cause   incorrect   behavior   and   will   be   lost   if  
//           the   code   is   regenerated.
//   </autogenerated>
//------------------------------------------

//  
//   此源代码是由   Microsoft.VSDesigner   1.1.4322.573   版自动生成。
//  
namespace   module66.WebReference   {
        using   System.Diagnostics;
        using   System.Xml.Serialization;
        using   System;
        using   System.Web.Services.Protocols;
        using   System.ComponentModel;
        using   System.Web.Services;
       
       
        ///   <remarks/>
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute( "code ")]
        [System.Web.Services.WebServiceBindingAttribute(Name= "entserviceSoapBinding ",   Namespace= "http://192.168.0.168/entservice/services/entservice ")]
        public   class   EntServiceService   :   System.Web.Services.Protocols.SoapHttpClientProtocol   {
               
                ///   <remarks/>
                public   EntServiceService()   {
                        this.Url   =   "http://192.168.0.96/entservice/services/entservice ";
                }
               
                ///   <remarks/>
                [System.Web.Services.Protocols.SoapRpcMethodAttribute( " ",   RequestNamespace= "http://confirm.container.ninetowns.com ",   ResponseNamespace= "http://192.168.0.168/entservice/services/entservice ")]
                [return:   System.Xml.Serialization.SoapElementAttribute( "doconfirmReturn ")]
                public   string   doconfirm(string   strxml)   {
                        object[]   results   =   this.Invoke( "doconfirm ",   new   object[]   {
                                                strxml});
                        return   ((string)(results[0]));
                }


               
                ///   <remarks/>
                public   System.IAsyncResult   Begindoconfirm(string   strxml,   System.AsyncCallback   callback,   object   asyncState)   {
                        return   this.BeginInvoke( "doconfirm ",   new   object[]   {
                                                strxml},   callback,   asyncState);
                }
               
                ///   <remarks/>
                public   string   Enddoconfirm(System.IAsyncResult   asyncResult)   {
                        object[]   results   =   this.EndInvoke(asyncResult);
                        return   ((string)(results[0]));
                }
        }
}


我这边的程序调用了doconfirm()这个方法,但是他里面的Invoke()这个函数没有要传送到的服务器的地址,我想问一下,是不是他就发送到构造函数里面http://192.168.0.96/entservice/services/entservice的doconfirm方法里?

[解决办法]
是的

热点排行