⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 localhost1.h

📁 Visual_C++.NET实用编程百例
💻 H
字号:
#pragma once 
#using <System.dll>
#using <System.Xml.dll>
#using <System.Web.Services.dll>
#using <mscorlib.dll>

// 
// 此源代码由 wsdl, Version=1.1.4322.573 自动生成。
// 
namespace localhost1 {
    using namespace System::Diagnostics;
    using namespace System::Xml::Serialization;
    using namespace System;
    using namespace System::Web::Services::Protocols;
    using namespace System::ComponentModel;
    using namespace System::Web::Services;
    
    using namespace System;
    public __gc class atlSrvWebService;
    
    
    /// <remarks/>
    [System::Diagnostics::DebuggerStepThroughAttribute, 
    System::ComponentModel::DesignerCategoryAttribute(S"code"), 
    System::Web::Services::WebServiceBindingAttribute(Name=S"atlSrvWebServiceSoap", Namespace=S"urn:atlSrvWebService")]
    public __gc class atlSrvWebService : public System::Web::Services::Protocols::SoapHttpClientProtocol {
        
        /// <remarks/>
        public: atlSrvWebService();
        /// <remarks/>
        public: [System::Web::Services::Protocols::SoapRpcMethodAttribute(S"#HelloWorld", RequestNamespace=S"urn:atlSrvWebService", ResponseNamespace=S"urn:atlSrvWebService")]
        [returnvalue: System::Xml::Serialization::SoapElementAttribute(S"return")]
        System::String *  HelloWorld(System::String *  bstrInput);
        
        /// <remarks/>
        public: System::IAsyncResult *  BeginHelloWorld(System::String *  bstrInput, System::AsyncCallback *  callback, System::Object *  asyncState);
        
        /// <remarks/>
        public: System::String *  EndHelloWorld(System::IAsyncResult *  asyncResult);
        
        /// <remarks/>
        public: [System::Web::Services::Protocols::SoapRpcMethodAttribute(S"#MyMethod", RequestNamespace=S"urn:atlSrvWebService", ResponseNamespace=S"urn:atlSrvWebService")]
        [returnvalue: System::Xml::Serialization::SoapElementAttribute(S"return")]
        System::Double MyMethod(System::Double dNum);
        
        /// <remarks/>
        public: System::IAsyncResult *  BeginMyMethod(System::Double dNum, System::AsyncCallback *  callback, System::Object *  asyncState);
        
        /// <remarks/>
        public: System::Double EndMyMethod(System::IAsyncResult *  asyncResult);
    };
    
    /// <remarks/>
    
    /// <remarks/>
    inline atlSrvWebService::atlSrvWebService() {
        this->Url = S"http://localhost:80/atlSrvWeb/atlSrvWeb.dll\?Handler=Default";
    }
    
    /// <remarks/>
    inline System::String *  atlSrvWebService::HelloWorld(System::String *  bstrInput) {
        System::Object* __mcTemp__1[] = new System::Object*[1];
                __mcTemp__1[0] = bstrInput;
        System::Object *  results[] = this->Invoke(S"HelloWorld", __mcTemp__1);
        return (__try_cast<System::String *  >(results[0]));
    };
    
    /// <remarks/>
    inline System::IAsyncResult *  atlSrvWebService::BeginHelloWorld(System::String *  bstrInput, System::AsyncCallback *  callback, System::Object *  asyncState) {
        System::Object* __mcTemp__1[] = new System::Object*[1];
                __mcTemp__1[0] = bstrInput;
        return this->BeginInvoke(S"HelloWorld", __mcTemp__1, callback, asyncState);
    };
    
    /// <remarks/>
    inline System::String *  atlSrvWebService::EndHelloWorld(System::IAsyncResult *  asyncResult) {
        System::Object *  results[] = this->EndInvoke(asyncResult);
        return (__try_cast<System::String *  >(results[0]));
    };
    
    /// <remarks/>
    inline System::Double atlSrvWebService::MyMethod(System::Double dNum) {
        System::Object* __mcTemp__1[] = new System::Object*[1];
                __mcTemp__1[0] = __box(dNum);
        System::Object *  results[] = this->Invoke(S"MyMethod", __mcTemp__1);
        return (*__try_cast<__box System::Double *  >(results[0]));
    };
    
    /// <remarks/>
    inline System::IAsyncResult *  atlSrvWebService::BeginMyMethod(System::Double dNum, System::AsyncCallback *  callback, System::Object *  asyncState) {
        System::Object* __mcTemp__1[] = new System::Object*[1];
                __mcTemp__1[0] = __box(dNum);
        return this->BeginInvoke(S"MyMethod", __mcTemp__1, callback, asyncState);
    };
    
    /// <remarks/>
    inline System::Double atlSrvWebService::EndMyMethod(System::IAsyncResult *  asyncResult) {
        System::Object *  results[] = this->EndInvoke(asyncResult);
        return (*__try_cast<__box System::Double *  >(results[0]));
    };
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -