views:

68

answers:

2

i added web service as reference to a project and gave it name "days". but i dont actually understand how to work with it. can someone show me the way how to get data from it.

in posh i get data from web service this way:

$ws= New-WebServiceProxy -uri $xmld.Root.WebService.Address -credential $cred

$xml = $ws.getdays()

$xml

alt text

+2  A: 

Have a look at

astander
ok. i add service reference. look what i got after adding it:http://i50.tinypic.com/2iw94qt.png
Varyanica
+1  A: 

Fortunately, you don’t need to write a client application to test a web service because .NET includes a test web page that ASP.NET uses automatically when you request the URL of an .asmx file in a browser. This page uses reflection to read and show information about the web services, such as the names of the methods it provides.

To try the test page, request the xyz.asmx file of the web service in your browser. (In Visual Studio, you simply need to set this as the start page for your application and then run it.)

ileon
i already know that my service works fine. i dont't actually understand how to call it in .net project. i added service reference and i dont know what to do with it next.
Varyanica