Click here to Skip to main content
16,005,121 members
Home / Discussions / C#
   

C#

 
Generalmerge images Pin
9-Jan-05 21:14
suss9-Jan-05 21:14 
GeneralHelp with XML Pin
dotnetquery9-Jan-05 18:54
dotnetquery9-Jan-05 18:54 
GeneralClose a web page Pin
itssuk9-Jan-05 18:37
itssuk9-Jan-05 18:37 
GeneralRe: Close a web page Pin
sreejith ss nair9-Jan-05 22:00
sreejith ss nair9-Jan-05 22:00 
GeneralRe: Close a web page Pin
Stefan Troschuetz9-Jan-05 23:19
Stefan Troschuetz9-Jan-05 23:19 
QuestionC# in Real Time ? Pin
jinbabaj9-Jan-05 18:10
jinbabaj9-Jan-05 18:10 
AnswerRe: C# in Real Time ? Pin
sreejith ss nair9-Jan-05 21:50
sreejith ss nair9-Jan-05 21:50 
GeneralWeb service instance Pin
HahnTech9-Jan-05 17:51
HahnTech9-Jan-05 17:51 
I’m writing a distributed app. I have a web service and windows form. In my form I have declared an instance of the web service like so:

WindowsForm.localhost.service1 ws = new WindowsForm.localhost.service1();

The web service has a web method that sets a string and another web method that retrieves it. The string (m_word) is initialized to “ “ (space).

This is what I’m trying:
Some button event handler ()
{ ws.SetString(this.textbox.text); }

Other button event handler()
{ this.Lable1.text = ws.GetString(); }


What I’m expecting to happen it the word from the text box will appear in the lable but it doesn’t. Its as if I’m typing this.

Some event handler()
{
WindowsForm.localhost.service1 wsA = new WindowsForm.localhost.service1();
WsA. SetString(this.textbox.text);
}

Some other event handler()
{
WindowsForm.localhost.service1 wsB = new WindowsForm.localhost.service1();
this.Lable1.text = wsB.GetString();
}

I know this is a bit cryptic so if any one need clarification let me know. I think I’m missing something about how web services’ live.


Ronald Hahn, CNT - Computer Engineering Technologist

New Technologies Analyst

HahnTech Affiliated With Code Constructors
Edmonton, Alberta, Canada
Email: rhahn82@telus.net


GeneralRe: Web service instance Pin
Looney Tunezez10-Jan-05 4:38
Looney Tunezez10-Jan-05 4:38 
GeneralRe: Web service instance Pin
HahnTech10-Jan-05 5:53
HahnTech10-Jan-05 5:53 
GeneralRe: Web service instance Pin
Allan Eagle10-Jan-05 10:31
Allan Eagle10-Jan-05 10:31 
GeneralRe: Web service instance Pin
S. Senthil Kumar10-Jan-05 11:26
S. Senthil Kumar10-Jan-05 11:26 
GeneralRaising an Event Pin
JMichael24689-Jan-05 13:14
JMichael24689-Jan-05 13:14 
GeneralRe: Raising an Event Pin
Andy Brummer9-Jan-05 16:13
sitebuilderAndy Brummer9-Jan-05 16:13 
GeneralRe: Raising an Event Pin
JMichael246810-Jan-05 6:23
JMichael246810-Jan-05 6:23 
GeneralMTP over IP in C# (Windows Media Player Sync Protocol) Pin
Daniel Kirstenpfad9-Jan-05 12:18
Daniel Kirstenpfad9-Jan-05 12:18 
GeneralDrawing windows Form over DirectD app Pin
jtmtv189-Jan-05 7:55
jtmtv189-Jan-05 7:55 
GeneralRe: Drawing windows Form over DirectD app Pin
exhaulted9-Jan-05 20:56
exhaulted9-Jan-05 20:56 
GeneralRe: Drawing windows Form over DirectD app Pin
jtmtv189-Jan-05 21:02
jtmtv189-Jan-05 21:02 
GeneralRe: Drawing windows Form over DirectD app Pin
exhaulted9-Jan-05 21:28
exhaulted9-Jan-05 21:28 
QuestionHow and where to place returncode for a form or dialog ? Pin
fracalifa9-Jan-05 6:17
fracalifa9-Jan-05 6:17 
AnswerRe: How and where to place returncode for a form or dialog ? Pin
DougW489-Jan-05 10:30
DougW489-Jan-05 10:30 
GeneralConstructors and inheritance. Pin
johanhertz9-Jan-05 5:43
johanhertz9-Jan-05 5:43 
GeneralRe: Constructors and inheritance. Pin
Robert Rohde9-Jan-05 6:11
Robert Rohde9-Jan-05 6:11 
GeneralRe: Constructors and inheritance. Pin
johanhertz15-Jan-05 1:42
johanhertz15-Jan-05 1:42 

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.