Presentation is loading. Please wait.

Presentation is loading. Please wait.

Presentation 10 SOAP on the Microsoft Platform (.NET)

Similar presentations


Presentation on theme: "Presentation 10 SOAP on the Microsoft Platform (.NET)"— Presentation transcript:

1 Presentation 10 SOAP on the Microsoft Platform (.NET)

2 Ingeniørhøjskolen i Århus Slide 2 af 20 Outline You have already been introduced to SOAP, WSDL & UDDI on the JAVA platform using AXIS Now we will take a look at the MS. NET platforms SOAP capabilities Luckily – SOAP & WSDL are well standardized – so we do not need to look at these again Instead we will: –Show the counterpart of the AXIS project in.NET - IIS –Show the alternatives to JAVA development – using the tools from Microsoft Visual Studio.NET

3 Ingeniørhøjskolen i Århus Slide 3 af 20 Apache Tomcat vs. Microsoft Internet Information Server Apache Tomcat with AXIS & J2SE Java SDK –Works on: Windows, UNIX, LINUX Open source Can be compiled to any platform (with some work) –Server listening for events: HTTP on port 8080 (optional) Executes Servlets/JSP –AXIS is an embedded project within the Tomcat environment but works with most J2EE compliant AS Microsoft Internet Information Server with the.NET Framework SDK (ASP.NET) –Works on: Only Windows –Server listening for events: HTTO on port 80 (optional) Executes Web resources – ASP.NET, Web services, Web forms (resulting in client side HTML ) –Tightly integrated with the Visual Studio.NET – for easy deployment & debugging SOAP Client Java, C++, C#, Delphi, VB Application SOAP Client Java, C++, C#, Delphi, VB Application SOAP over HTTP Web Server MS Internet Information Server & the.NET Framework SDK (ASP.NET) (vs. Apache Tomcat, with AXIS & J2SE SDK) Web Server MS Internet Information Server & the.NET Framework SDK (ASP.NET) (vs. Apache Tomcat, with AXIS & J2SE SDK) Web Forms Web Forms Web Service Web Service C++ unman. C++ unman. Managed code Managed code Common code base – but only MS!

4 Ingeniørhøjskolen i Århus Slide 4 af 20 Web service enabling Windows You need to: –Install.NET Framework SDK Download from Microsoft (130 MB) –Install Internet Information Server Enabled via the Control Panel –Visual Studio.NET Already installed (7 or 7.1) More detailed instructions will follow for the LAB exercise

5 Ingeniørhøjskolen i Århus Slide 5 af 20 Not a Windows ASP.NET course You will NOT be required to be an expert on.NET You will be required to be knowledgeable about it ASP.NET is a framework for Web enabling Windows code Traditional HTML & DHTML – and Web services Complete architecture

6 Ingeniørhøjskolen i Århus Slide 6 af 20 Ressources for learning more Feel free to learn more about ASP.NET: –Getting started with the.NET framework –http://msdn.microsoft.com/library/default.asp?url=/library/en- us/cpguide/html/cpcongettingstartedwithnetframework.asphttp://msdn.microsoft.com/library/default.asp?url=/library/en- us/cpguide/html/cpcongettingstartedwithnetframework.asp –Link can be found at the course site –Books on the subject Beginning.NET Web Services using C# by Joseph Bustos and Karli Watsom (WROK forlag) More will be listed on the course site

7 Ingeniørhøjskolen i Århus Slide 7 af 20 Making the HelloWorld application Using Notepad ! Using Microsoft Visual Studio.NET First: –Install.NET Framework –Install IIS Then: –Produce code Manually for Notepad Wizard for Visual Studio –Deploy in the IIS folder \inetpub\wwwroot\ As an.asmx file –Test the Webservice Using the build in functionality –Write the Client – and all is well

8 Ingeniørhøjskolen i Århus Slide 8 af 20 C# Notepad HelloWorld

9 Ingeniørhøjskolen i Århus Slide 9 af 20 Deploy & Test

10 Ingeniørhøjskolen i Århus Slide 10 af 20 Developing the Client application Support for using Web services in an Visual Studio application Stubs are automatically compiled by Visual Studio

11 Ingeniørhøjskolen i Århus Slide 11 af 20 New Application & Add Web Reference

12 Ingeniørhøjskolen i Århus Slide 12 af 20 Discover & bind the Web service

13 Ingeniørhøjskolen i Århus Slide 13 af 20 Visual Studio produces a Proxy DLL Performed by Visual Studio tool: a DLL is generated (Web Service Proxy Generator), and a header file and a WSDL support document is made available

14 Ingeniørhøjskolen i Århus Slide 14 af 20 Write the C++ code

15 Ingeniørhøjskolen i Århus Slide 15 af 20 Try it out

16 Ingeniørhøjskolen i Århus Slide 16 af 20 Piece of Cake – Now C#

17 Ingeniørhøjskolen i Århus Slide 17 af 20 C# - coding the connection

18 Ingeniørhøjskolen i Århus Slide 18 af 20 Heterogeneous system C# to Java Proxy DLL stub generated by VS Proxy DLL skeleton generated by AXIS // Hello World.Java public class HelloWorld { public HelloWorld() { } public String getHelloWorldMessage(String name) { return "Hello World to "+name; } private void button1_Click(object sender, System.EventArgs e) { localhost.HelloWorldService hello = new localhost.HelloWorldService(); textBox1.Text = hello.getHelloWorldMessage("Stefan"); }

19 Ingeniørhøjskolen i Århus Slide 19 af 20 Try it with C++ WARNING: In VS7 there seems to be a bug! –Need to manually paste the WSDL file and compile the proxy stub DLL –This works fine in C# –Has not been tested with VS7.1 –If anyone learns more about it – please tell me!!


Download ppt "Presentation 10 SOAP on the Microsoft Platform (.NET)"

Similar presentations


Ads by Google