Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/astahost/public_html/rkrt/rkrt_tracker.php on line 186
Creating A Web Service With Visual C#
Astahost.com   Mar 22, 2010
Open Discussion & Free Web Hosting > Computers & Tech > How-To's and Tutorials > Programming > MISC (not applicable to above Programming Categories)

Creating A Web Service With Visual C#

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > How-To's and Tutorials > Programming > MISC (not applicable to above Programming Categories)

Creating A Web Service With Visual C#

illusion
Create a Web service

1. Start Visual Studio .NET
2. Select “File->New Project”


Remember, this could very easily be a Visual Basic project. I’m using C# because that’s
what I’m familiar with. The only things that change if this were Visual Basic is the
syntax of the code you write in step 7 (below).


3. Select the “Visual C# Projects” in the Project Types area.
4. Select the “ASP.NET Web Service” icon and click OK


Once selected, all of the project files are automatically generated in Internet Information
Server.



5. Right-click on the “Service1.asmx” file in the Solution Explorer and click “View
Code”:




6. In the Code Window, scroll to the bottom, and delete all the green, commented
code:








7. Once the old code is deleted, add the following code after the “Component
Designer generated code” region:





8. In the main Visual Studio .NET menu, select “Build->Run”.





Visual Studio .NET creates a test harness Web page for you to try out your application.



9. In the resulting Internet Explorer window, click on the GetMyName hyperlink.
10. In the resulting window, click on the Invoke method.
11. The result is an XML “blob” with the name “Prozac” in it.

 

 

 


Comment/Reply (w/o sign-up)

(G)ADmain
GIF image over geociti not visible
Creating A Web Service With Visual C#

pls repost the entire with images from some other sites other than geocities.They stopped their services long back

-reply by ADmain

 


Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)




See Also,

*SIMILAR VIDEOS*
Searching Video's for creating, web, service, visual, c
advertisement




Creating A Web Service With Visual C#

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com



Creative Commons License