how to use web services with code?(with example code)



how to use web services with code?(with example code)..

Answer / nithya

First we need to create webmethod in webservice.
And we need to expose the webmethod as wsdl file.

Who wants to consume those webmethod they have to create a
class file by using wsdl tag in dotnet command prompt.

once the class file has been created and we can create
instance for that and start accessing all the methods from
the class file.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

what is CLR?

3 Answers   PrimeLine,


Should sn.exe be used before gacutil.exe ?

2 Answers   Accenture, BirlaSoft,


What is the difference between stored procedure vs function?

1 Answers  


what is silver light when will we use silver light,

1 Answers  


What is the difference between abstract class vs interface? Can give me the real time examples?

1 Answers  


why security trimming attribute?

1 Answers  


You are using the try? catch block seen in the following code segment, but no exceptions are ever caught by the catch block. What is the problem? SqlConnection cn =new sqlConnection(strSQL); SqlDataSet ds; try { cn.open(); //perform the data processing steps ??.. } catch (OleDbException e) { ?.. } a) The exception class is wrong; it should be sqlErrors. b) The exception class is wrong; it should be sqlSyntaxExceptios. c) The exception class is wrong; it should be sqlExceptions. d) The exception class is wrong; it should be sqlExcptions.

2 Answers   Microsoft, Syntax Softtech,


Is there any property names “isnavigating”?

1 Answers  


how can you bind data from dataset to XML file

2 Answers   LG Soft,


What are Master Pages in ASP.NET?

1 Answers  


Details on web.config and global.asax - just explain what are the sections will be there.

1 Answers   Syntel,


Distinguish between Server-side and Client-side code?

1 Answers   Siebel,


Categories