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

📄 moolahservice.h

📁 C++ Source code from a tutorial
💻 H
字号:
// MoolahService.h

#pragma once

#using <System.Web.Services.dll>

using namespace System;
using namespace System::Web;
using namespace System::Web::Services;

namespace MoolahService
{
/* This is the original default code that I'm removing!
   I also changed MoolahService.cpp (the source for this class)
   and I changed MoolahService.asmx to reflect the new class 
   name, MoolahClass.

    public __gc 
        class Class1 : public WebService
    {
        
    public:
		// WEB SERVICE EXAMPLE
		// The HelloWorld() example service returns the string "Hello, World!".
		// To test this web service, ensure that the .asmx file in the deployment path is
		// set as your Debug HTTP URL, in project properties.
		// and press F5.

        [System::Web::Services::WebMethod] 
        String __gc* HelloWorld();

        // TODO: Add the methods of your Web Service here
       
    };
	And what follows is my new code!
*/
	//Namespace="http://ManagedMoolah/XmlWebServices/", 
	[WebServiceAttribute(
		Namespace="http://localhost/MoolahSolution/",
		Description=
		"An XML Web Service to determine my net worth.")]
    public __gc class MoolahClass : public WebService
    {
        
    public:
        [System::Web::Services::WebMethod(
		Description=
		"Returns net worth. Add donations to make me richer.")]
        int GetWorth(int donation);

        [System::Web::Services::WebMethod(
		Description=
		"Returns your debt to me.")]
        int GetYourDebt();

    };
	
}

⌨️ 快捷键说明

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