First, create a new ASP.NET Web Service Application from your visual studio (I use visual studio 2008 in this tutorial). Be sure you choose a new project not a new website from visual studio.
Right click on WebService1 project node and choose New Web Reference.
Input your wsdl in url address to get the list of web service operation or web method. And then click go. Automatically it check and search all of web method or operation defined in input wsdl schema. After show the list of available operation, rename web reference name and then click add reference button.
Okay, let’s code.. Create a new Web Service file (.asmx) from WebService1 project node. And then open it.
[WebMethod]
public
FinancialReportRef.glGroupAmountDTO[] GetBalanceSheet(
int
period)
{
FinancialReportRef.ProvideFinancialReportService client =
new
WebService1.FinancialReportRef.ProvideFinancialReportService();
return
client.ProvideBalanceSheetReport(period);
}
0 comments:
Post a Comment
Keuntungan apabila berkomentar:
1. Blog ini sudah saya set menjadi DOFOLLOW
2. Ada permasalahan, pasti saya jawab
3. Bisa buat request artikel yang dibutuhkan
Silakan Isi KOmentar Dengan Baik