KRISTER

Hi

I need a web service on my server for getting filelist to client, but i have no clue how to create a webservice, I have the (I think) code that needs to be on server.

Is it a windows service (c#) I should create or...

and what is "HTC" do i need it

[WebMethod]
Public string[] fileList(string pathToFiles)
{
string[] files = System.IO.Directory.GetFiles(pathToFiles, "*.*", SearchOption.AllDirectories)
return files;
}

The code above need to be a webservice on my server.




Re: ASMX Web Services and XML Serialization creating webservice

TilakGopi

Are u learing webservices(Are u studying any book ) or just throwing stones on the tree

Anyways, Here is the way u go,

start VS2005IDE->Create WebSite->Select ASP.NET Web service.- Creates the web service for u.

Thanx,

Ch.T.Gopi Kumar.






Re: ASMX Web Services and XML Serialization creating webservice

KRISTER

Hi

Yes I am learning Web things as I going on. I am more into C# application programming but in this world everything is about internet.

But thanks. your reply helpt me forward.






Re: ASMX Web Services and XML Serialization creating webservice

KRISTER

Hi again

Sorry to ask again, but I am stuck. How do I call my new webservice from c# code

my server is password protected and traffic is going tru HTTP (port 80), and later when i get all this to work it will be HTTPS

plz help

Thanks