|
Hi,
i want to store the webservice method's XML output[the one which we get after invoking the webservice method]. Below is the code which am using and the output that am getting after executing it. Please help to get sort of this....
code:
After adding web reference that consists of webservice URL am using the below code.
WindowsService.webservice ody = new WindowsService.webservice ();
try
{
ody.PreAuthenticate = true;
ody.Credentials = new System.Net.NetworkCredential("login", "Password", "Domain");
Logfile(ody.Reconfigure(1).ToString());
}
catch (Exception e)
{
Console.WriteLine(e.ToString());
}
output as in log file:
OdyTibWinService.OdyTibWebService.OUT_Reconfigure
But the actual XML output is:
<message>Reconfiguration completed successfully.
|
|
|
|
|
Logfile(ody.Reconfigure(1).ToString());
That would call the "ToString" method on a "Reconfigure" item, of the class called "OUT_Reconfigure".
Member 9826281 wrote: But the actual XML output is:
<message>Reconfiguration completed successfully.
Implement a function in that class to return the "actual content". Might be that it's already implemented. Change the code to look like below;
Logfile(ody.Reconfigure(1).); Now remove the dot (the one on the far-right), and type it in again. Check the list; there should be a description popping up as you hover the items.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Member 9826281 wrote: But the actual XML output is:
<message>Reconfiguration completed successfully.
Well since that is not XML that certainly isn't the output.
|
|
|
|