Thursday, September 23, 2010

Using Web service in C Sharp

Step 1: Creating a proxy
Goto visual studio command prompt. Type wsdl url
for example:
C:\Program Files\Microsoft Visual Studio 10.0\VC>cd c:\
c:\>wsdl http://www50.brinkster.com/vbfacileinpt/np.asmx?wsdl


Step2: Create an windows Application
copy the .cs file (here for example PrimeNumbers.cs) file from c:\ and paste into windows application folder. In visual studio right click on PrimeNumbers.cs and include in project
Step3: Goto project Add reference->.NET tab->system.web.services

Step4: create a namespace.
Ex: open PrimeNumbers.cs file and namspace Myprime{ enclosed by body of code ... }

Step5: create an object.
Ex: Myprime.PrimeNumbers p=new Myprime.PrimeNumbers();

Step6: now call the method in your application using object
Ex : p.GetPrimeNumbers(); it will return string containing prime numbers.

Step7: Run the windows application.

You can able to find lot of webservices at


Click here to download project files
Click here to see demo



Thursday, August 6, 2009

Welcome

Hello friends,
Welcome to CSETrojans Blog.This is the place where you learn things and share things that you learnt to others.
Post things that help others to learn something new.
Learn more and help others to learn by sharing your knowledge and experience.
If you want any changes in the blog please feel free to say.
Its our blog.
If you have any queries regarding any topic post them here. Any of our friends who have the idea about that topic will help you out.If you do like this, others who are following the blog also will also get benefited.So make a habit of posting questions and answers however simple and silly it may be because it will definitely help atleast one person.

CONTACT

N.MADHANA KUMAR,
Mail me: madhanakumar@hotmail.com
writetomadhan@hotmail.com

Twitt me at:http://twitter.com/madhanakumar
Facebook id:http://facebook.com/madhanakumar

"THE ROOTS OF EDUCATION ARE BITTER BUT THE FRUITS ARE SWEETER."