using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Services;
namespace WSstruct
{
///
/// Service1 的摘要说明
///
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
public class Service1 : System.Web.Services.WebService
{
[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
[WebMethod]
public MyStruct GetMyStruct()
{
throw new NotImplementedException();
}
}
public struct MyStruct
{
public string myString;
public decimal mydecimal;
}
}
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22392018/viewspace-766614/ ,如需转载,请注明出处,否则将追究法律责任。