Click here to Skip to main content
15,891,409 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting free physical Memory ? Pin
Martin#4-Dec-06 22:50
Martin#4-Dec-06 22:50 
GeneralRe: Getting free physical Memory ? Pin
Bhupi Bhai4-Dec-06 23:05
Bhupi Bhai4-Dec-06 23:05 
GeneralRe: Getting free physical Memory ? Pin
Martin#4-Dec-06 23:32
Martin#4-Dec-06 23:32 
AnswerRe: Getting free physical Memory ? Pin
lmoelleb4-Dec-06 23:13
lmoelleb4-Dec-06 23:13 
GeneralRe: Getting free physical Memory ? Pin
Martin#4-Dec-06 23:23
Martin#4-Dec-06 23:23 
GeneralRe: Getting free physical Memory ? Pin
Bhupi Bhai4-Dec-06 23:44
Bhupi Bhai4-Dec-06 23:44 
AnswerRe: Getting free physical Memory ? Pin
Martin#4-Dec-06 23:29
Martin#4-Dec-06 23:29 
Questionhow to call web service from Windows Service in C#? Pin
ramyasangeet4-Dec-06 19:59
ramyasangeet4-Dec-06 19:59 
Hi all,

I am working on Windows Service Application.I want to call a webservice and to retrive Output xmlfile values generated by the webservice.
I have done the same in Windows Application.It worked.

but if i use the same code in Windows Service,i got this System.Net.WebException.


//to call the Webservice
localhost.Service service = new SDSettingsServices.localhost.Service();<br />
  <br />
 service.GetSNCompleted += new SDSettingsServices.localhost.GetSNCompletedEventHandler(service_SN);<br />
           <br />
 service.GetSNAsync(Corpname, divisionname);


public void service_SN(object o, SDSettingsServices.localhost.GetSNCompletedEventArgs e)<br />
        {<br />
         //to retrive the value from the Output Xml file of                  webservice            <br />
            string serial = e.Result.SerialNo;<br />
         }<br />
<br />


PLz help me to find out the exception.
Is there any other method to call a webservice from Windows Service..

Thanks in Advance,



cheers

sangeet

GeneralRe: how to call web service from Windows Service in C#? Pin
Guffa4-Dec-06 21:45
Guffa4-Dec-06 21:45 
GeneralRe: how to call web service from Windows Service in C#? Pin
ramyasangeet4-Dec-06 21:57
ramyasangeet4-Dec-06 21:57 
GeneralRe: how to call web service from Windows Service in C#? Pin
jdkulkarni5-Dec-06 0:36
jdkulkarni5-Dec-06 0:36 
GeneralRe: how to call web service from Windows Service in C#? Pin
ramyasangeet5-Dec-06 1:34
ramyasangeet5-Dec-06 1:34 
Questionreplacing a string that has double quotes to single qoutes Pin
steve_rm4-Dec-06 19:57
steve_rm4-Dec-06 19:57 
AnswerRe: replacing a string that has double quotes to single qoutes Pin
rah_sin4-Dec-06 20:00
professionalrah_sin4-Dec-06 20:00 
QuestionRe: replacing a string that has double quotes to single qoutes Pin
steve_rm4-Dec-06 20:07
steve_rm4-Dec-06 20:07 
AnswerRe: replacing a string that has double quotes to single qoutes Pin
rah_sin4-Dec-06 20:28
professionalrah_sin4-Dec-06 20:28 
AnswerRe: replacing a string that has double quotes to single qoutes Pin
quiteSmart4-Dec-06 20:17
quiteSmart4-Dec-06 20:17 
QuestionRe: replacing a string that has double quotes to single qoutes Pin
steve_rm4-Dec-06 20:28
steve_rm4-Dec-06 20:28 
AnswerRe: replacing a string that has double quotes to single qoutes Pin
Guffa4-Dec-06 20:53
Guffa4-Dec-06 20:53 
AnswerRe: replacing a string that has double quotes to single qoutes Pin
Bhupi Bhai4-Dec-06 20:28
Bhupi Bhai4-Dec-06 20:28 
AnswerRe: replacing a string that has double quotes to single qoutes Pin
abja4-Dec-06 21:38
abja4-Dec-06 21:38 
Questionmultiple selection of radio buttons Pin
deepualuru4-Dec-06 19:26
deepualuru4-Dec-06 19:26 
AnswerRe: multiple selection of radio buttons Pin
Coding C#4-Dec-06 19:31
Coding C#4-Dec-06 19:31 
AnswerRe: multiple selection of radio buttons Pin
quiteSmart4-Dec-06 19:58
quiteSmart4-Dec-06 19:58 
AnswerRe: multiple selection of radio buttons Pin
ednrgc5-Dec-06 1:47
ednrgc5-Dec-06 1:47 

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.