95-702 OCT Fall 2008 Homework 5 Due: Thursday at Midnight December 4, 2008 Part A. Writing a Web Service Client in C# ========================================== In an earlier lab, you built a knock knock joke web service in Java and wrote a Java client that interacted with a human user and the web service. In this lab, you will write a C# client. In other words, augment your old Java based knock knock web service with a client written in C#. All of the C# code needs to be well documented. Submit to blackboard's assignment section the following: 1) All server side code written in Java. 2) One C# client that interacts with a user and the web service (the web service will be written in Java). 3) One screen shot showing C# to Java interaction Notes: You do not need IIS for this lab. We are not writing a C# web service. We are writing a C# client. The web service will be written in JDK6 and JDK6 provides its own web server. When writing the service, use the apt tool as shown on the slides. When writing the C# client, start by using the wsdl tool. The wsdl.exe tool is part of the .Net SDK. It comes with Visual Studio or Visual Studio Express. You can stop in the computing office and borrow the Visual Studio 2008 CD. Or, you can download Visual Studio Express from here: http://www.microsoft.com/express/default.aspx Be sure to update your path variable so that you can run the wsdl command from your DOS prompt. When using C#, the stub code (generated by wsdl.exe) needs to be compiled to a dll file. To do this, try csc -t:Library filename.cs. The C# client needs to be compiled and the complier needs to know about the dll. Try csc -r:filename.dll client.cs. Part B. Writing a Web Service in C# =================================== Write the Knock Knock Web Service in C#. Publish it as a .Net web service using IIS. Write a Java client that interacts with this new web service. Submit to blackboard's assignment section the following: 1) All documented server side code written in C#. 2) One Java client that interacts with a user and the web service (the web service will be written in C#). 3) One screen shot showing Java to C# interaction