Click here to Skip to main content
15,911,039 members
Home / Discussions / C#
   

C#

 
GeneralProcess start-close notifications in C# Pin
Miguel Andrés31-May-05 14:04
Miguel Andrés31-May-05 14:04 
GeneralRe: Process start-close notifications in C# Pin
Christian Graus31-May-05 14:09
protectorChristian Graus31-May-05 14:09 
GeneralRe: Process start-close notifications in C# Pin
Miguel Andrés31-May-05 15:23
Miguel Andrés31-May-05 15:23 
GeneralRe: Process start-close notifications in C# Pin
Christian Graus31-May-05 15:31
protectorChristian Graus31-May-05 15:31 
Generalmissing some things Pin
Tom Wright31-May-05 12:19
Tom Wright31-May-05 12:19 
GeneralRe: missing some things Pin
Judah Gabriel Himango31-May-05 13:10
sponsorJudah Gabriel Himango31-May-05 13:10 
GeneralHave Problem while invoking a method in C# Web Services Pin
grace_at_canada31-May-05 10:36
grace_at_canada31-May-05 10:36 
GeneralRe: Have Problem while invoking a method in C# Web Services Pin
grace_at_canada31-May-05 10:55
grace_at_canada31-May-05 10:55 
Hi all,

Here is the source code:

//Web Services
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Web;
using System.Web.Services;
using MonerisVO;

namespace eSelectService
{
public class GateWay : System.Web.Services.WebService
{
public GateWay()
{
InitializeComponent();
}

[WebMethod]
public string test(string host, Trans tr)
{
//Can invoke the method here in the Web Services.
return "host=" + host
+ ", order_id=" + tr.OrderID
+ ", amount=" + tr.TotalAmount;
}
}
}

//Web Forms
using eSelectService;

...

private void btStart_Click(object sender, System.EventArgs e)
{
eSelectService.GateWay gt = new eSelectService.GateWay();
eSelectService.Trans = new eSelectService.Trans();
trans.Init("order_id_test", "4.01");
MessageBox.Show(" result=" + gt.process);
}

//Class Library: Trans.class

...

public class Trans
{
private string order_id;
private string amt;

public TransactionVO(){}

public string OrderID
{
get
{
return order_id;
}
set
{
order_id = OrderID;
}
}

public string TotalAmount
{
get
{
return amt;
}
set
{
amt = OrderID;
}
}


public Init(string id, string amt)
{
this.orderID = id;
this.TotalAmount = amt;
}
}
GeneralRe: Have Problem while invoking a method in C# Web Services Pin
grace_at_canada1-Jun-05 3:37
grace_at_canada1-Jun-05 3:37 
GeneralDataRow elements datetime problem Pin
parrot12331-May-05 10:26
parrot12331-May-05 10:26 
GeneralRe: DataRow elements datetime problem Pin
Robert Rohde31-May-05 10:46
Robert Rohde31-May-05 10:46 
GeneralRe: DataRow elements datetime problem Pin
parrot1231-Jun-05 2:12
parrot1231-Jun-05 2:12 
GeneralC# Printable Reports from Access DB Pin
Glenn E. Lanier II31-May-05 10:24
Glenn E. Lanier II31-May-05 10:24 
GeneralRe: C# Printable Reports from Access DB Pin
KaptinKrunch31-May-05 19:04
KaptinKrunch31-May-05 19:04 
GeneralRe: C# Printable Reports from Access DB Pin
Glenn E. Lanier II1-Jun-05 3:01
Glenn E. Lanier II1-Jun-05 3:01 
GeneralRe: C# Printable Reports from Access DB Pin
Anonymous2-Jun-05 6:14
Anonymous2-Jun-05 6:14 
GeneralRe: C# Printable Reports from Access DB Pin
Glenn E. Lanier II2-Jun-05 6:32
Glenn E. Lanier II2-Jun-05 6:32 
GeneralRe: C# Printable Reports from Access DB Pin
KaptinKrunch2-Jun-05 16:14
KaptinKrunch2-Jun-05 16:14 
GeneralRe: C# Printable Reports from Access DB Pin
Glenn E. Lanier II6-Jun-05 6:57
Glenn E. Lanier II6-Jun-05 6:57 
GeneralI'm Totally Stumped - DirectDraw C# Surfaces Pin
YawgmothIII31-May-05 8:59
YawgmothIII31-May-05 8:59 
GeneralRe: I'm Totally Stumped - DirectDraw C# Surfaces Pin
Christian Graus31-May-05 11:53
protectorChristian Graus31-May-05 11:53 
GeneralRe: I'm Totally Stumped - DirectDraw C# Surfaces Pin
Anonymous31-May-05 12:42
Anonymous31-May-05 12:42 
GeneralRe: I'm Totally Stumped - DirectDraw C# Surfaces Pin
Christian Graus31-May-05 12:50
protectorChristian Graus31-May-05 12:50 
GeneralRe: I'm Totally Stumped - DirectDraw C# Surfaces Pin
Anonymous31-May-05 15:04
Anonymous31-May-05 15:04 
GeneralRe: I'm Totally Stumped - DirectDraw C# Surfaces Pin
Christian Graus31-May-05 15:21
protectorChristian Graus31-May-05 15:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.