今天弄了套visual studio.net beta2,说明书最后一页有个好东西,可需要技术。俺没,但我却很想得到,我怕被抓: ),所以没贴到vs.net区,请各位帮我(详情请进)

zjlsct 2001-09-18 08:49:22
调用web服务,获得单脚滑板
为了鼓励更多的人了解和使用web服务(Web Services),我们特地编写了一个“用户注册”Web服务,您可以用Visual Studio .Net,按照我们前面的示例,很容易的编制一个客户端程序,通过程序将您的个人信息注册到我们的服务器上,从2001年9月10日开始,一直到2001年12月31日,我们每天会从当天注册的用户中,抽出3名获奖者,他们将获得一个具有微软标记的单脚滑板车。请访问www.microsoft.com/china/msdn获得本次活动的最新信息以及获奖者名单。
该Web服务的URL地址会在9月10日之前公布在上述网址中,调用该Web服务器请注意下列事项:
1、您可以使用visual studio .net的任何语言,任何类型的程序来完成;
2、您需要一个CD-Key才能将您的个人信息保存下来,该CD-Key可以在visual studio .net中文版BETA2光盘上找到。
3、该Web服务提供了两个类,一个用来存储用户信息,一个用来注册。您需要完整的输入个人的姓名,电话,邮件地址,公司名称,身份证号码等个人信息才能注册成功(您需要根据字段名称来判断其存储的信息,例如sName存储的就是个人的姓名)。调用Register方法完成注册,该函数返回一个布尔(Boolean)类型的数据,如果该值为真,则注册成功,请仔细检查该函数返回的结果以确认您注册成功。
...全文
189 21 打赏 收藏 转发到动态 举报
写回复
用AI写文章
21 条回复
切换为时间正序
请发表友善的回复…
发表回复
deng_kun 2001-10-20
  • 打赏
  • 举报
回复
no i don't understand other languate unless C/C++ ,Object Pascal ,SQL ,Foxpro,ASM, sorry
zjlsct 2001-10-10
  • 打赏
  • 举报
回复
不知道是不是还有其他语言编的吗?
zjlsct 2001-10-10
  • 打赏
  • 举报
回复
感谢。很快结了
deng_kun 2001-10-10
  • 打赏
  • 举报
回复
当然不可以啦 给了也没有用,一个号只能注册一次 第二次就返回 false 了!
nadir 2001-10-10
  • 打赏
  • 举报
回复
哈哈!deng_kun可真大方,把CD-KEY也告诉大家吧!
deng_kun 2001-10-07
  • 打赏
  • 举报
回复
//全部源码,反正 我注册成功了,也不难 。。。我用了一晚上....关键代码并不多!!!

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using RegistForBike.Regsvc;
namespace RegistForBike
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.MainMenu mainMenu1;
private System.Windows.Forms.MenuItem menuItem1;
private System.Windows.Forms.MenuItem menuItem2;
private System.Windows.Forms.MenuItem menuItem3;
private System.Windows.Forms.MenuItem menuItem4;
private System.Windows.Forms.MonthCalendar monthCalendar1;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;

public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();

//
// TODO: Add any constructor code after InitializeComponent call
//
}

/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}

#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.menuItem1 = new System.Windows.Forms.MenuItem();
this.menuItem2 = new System.Windows.Forms.MenuItem();
this.menuItem3 = new System.Windows.Forms.MenuItem();
this.menuItem4 = new System.Windows.Forms.MenuItem();
this.monthCalendar1 = new System.Windows.Forms.MonthCalendar();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(136, 224);
this.button1.Name = "button1";
this.button1.TabIndex = 1;
this.button1.Text = "button1";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label1
//
this.label1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label1.Location = new System.Drawing.Point(112, 16);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(136, 24);
this.label1.TabIndex = 0;
this.label1.Text = "注册成功?失败?";
//
// mainMenu1
//
this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem1,
this.menuItem3});
//
// menuItem1
//
this.menuItem1.Index = 0;
this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem2});
this.menuItem1.Text = "file";
//
// menuItem2
//
this.menuItem2.Index = 0;
this.menuItem2.Text = "exit";
this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
//
// menuItem3
//
this.menuItem3.Index = 1;
this.menuItem3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem4});
this.menuItem3.Text = "help";
//
// menuItem4
//
this.menuItem4.Index = 0;
this.menuItem4.Text = "about";
//
// monthCalendar1
//
this.monthCalendar1.Location = new System.Drawing.Point(40, 56);
this.monthCalendar1.Name = "monthCalendar1";
this.monthCalendar1.TabIndex = 2;
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(360, 265);
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.monthCalendar1,
this.button1,
this.label1});
this.Menu = this.mainMenu1;
this.Name = "Form1";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Form1";
this.ResumeLayout(false);

}
#endregion

/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
//-----------------------------------------------------------------------------------------------关键代码-------------------------
private void button1_Click(object sender, System.EventArgs e)
{
RegType rt = new RegType();
  RegService svc = new RegService();
  rt.sCDKey = "294596392";//此号只是个Demo
  rt.sName = "邓某";
   rt.sPhone = "130...";
   rt.sEmail = "den...@...com";
  rt.sCompany = "XX科技";
  rt.sAddress = "广州市天河北路...";
  rt.sCitizenID = "4202......";//身份证号
  bool bRet = svc.Register(rt);
label1.Text=Convert.ToString(bRet);
}

//-----------------------------------------------------------------------------------------------关键代码----------------------------------------
private void menuItem2_Click(object sender, System.EventArgs e)
{

Application.Exit();
}


}
}
zjlsct 2001-10-06
  • 打赏
  • 举报
回复
要,zjlsct@263.net
怎么跑到这里来了,我本来贴在灌水乐园的,斑竹真不够意思
vince_xu 2001-10-05
  • 打赏
  • 举报
回复
我已经编写了这个程序,你要不要啊?

不过必须在装了.net的机器上才能运行。
btw:谁知道怎么样编译使得生成的文件可以在没有安装。net的机器上也能运行?
zjlsct 2001-09-27
  • 打赏
  • 举报
回复
sam1111我看了,可我不会动手
sam1111 2001-09-24
  • 打赏
  • 举报
回复
http://www.csdn.net/develop/article/10/10618.shtm
wilddragon 2001-09-24
  • 打赏
  • 举报
回复
好困呀
wilddragon 2001-09-24
  • 打赏
  • 举报
回复
支持支持
wilddragon 2001-09-21
  • 打赏
  • 举报
回复
值得注意
zjlsct 2001-09-20
  • 打赏
  • 举报
回复
错了,应该是奉承的笑
zjlsct 2001-09-20
  • 打赏
  • 举报
回复
coolstar(云水随缘,清明在心)
我有啊,如果可以,我愿意给你啊,只要你教我啊∶(
coolstar 2001-09-20
  • 打赏
  • 举报
回复
问题是我没有CD-Key ;-(
llww 2001-09-19
  • 打赏
  • 举报
回复
到底什么意思 ,


没明白........

dave75 2001-09-19
  • 打赏
  • 举报
回复
?
dickmi 2001-09-19
  • 打赏
  • 举报
回复
呵呵,挺简单的
zjlsct 2001-09-18
  • 打赏
  • 举报
回复
你成功了吗?
加载更多回复(1)

17,748

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 .NET Framework
社区管理员
  • .NET Framework社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧