Hi All,
I want to invoke/consume the webservice in C#.
I am using .NET Framework SDK on Windows 2000 professional.
I have webservice created in oracleJ developer. it returns group of record in XML format.
I followed steps from this link
and, I have return Client in c#. regarding this I created Proxy using Wsdl.exe then compiled it to get its .dll in the same folder. then in Client Program i created instance of this proxy class to get webservice output. my clinet code is like this
it is giving me two errors:
Error 1: regarding converting XML to string.
which datatype i have to use to get XML output of webservice.
error 2: after removing 'String iddata' with 'system.xml.xmltype iddata' the program got compiled but runnin EXE just shows only 'system.xml.xmltype' line in Command line window.
How do i get the actual XML output of webservice and
How can i write this XML output in a saparate File?
Thank you
I want to invoke/consume the webservice in C#.
I am using .NET Framework SDK on Windows 2000 professional.
I have webservice created in oracleJ developer. it returns group of record in XML format.
I followed steps from this link
and, I have return Client in c#. regarding this I created Proxy using Wsdl.exe then compiled it to get its .dll in the same folder. then in Client Program i created instance of this proxy class to get webservice output. my clinet code is like this
Code:
using System;
using System.IO;
class psdata
{
public static void Main(string[] args)
{
//Create instace for proxy
EWebService epa = new EwebService();
string iddata = epa.testWebserviceXML("hg");
Console.WriteLine(iddata);
}
}
Error 1: regarding converting XML to string.
which datatype i have to use to get XML output of webservice.
error 2: after removing 'String iddata' with 'system.xml.xmltype iddata' the program got compiled but runnin EXE just shows only 'system.xml.xmltype' line in Command line window.
How do i get the actual XML output of webservice and
How can i write this XML output in a saparate File?
Thank you