1 / 17

Web service - elementer

Web service - elementer. SOAP (Simple Object Access Protocol) WSDL (Web Service Description language) UDDI (Universal Description, Discovery and Integration) DISCO ( Disco very of Web Services - Microsoft). Webservice - SOAP. SOAP (Simple Object Access Protocol)

dahlia
Download Presentation

Web service - elementer

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Web service - elementer • SOAP (Simple Object Access Protocol) • WSDL (Web Service Description language) • UDDI (Universal Description, Discovery and Integration) • DISCO (Discovery of Web Services - Microsoft)

  2. Webservice - SOAP • SOAP (Simple Object Access Protocol) • SOAP er en måde at indkapsle objekt kald som XML sent via HTTP • 2 grunde til at bruge SOAP til kommunikation ved Web Services • HTTP er meget udbredt, det kan bevæge sig overalt på Internettet (Firewalls). • SOAP er XML baseret og kan dermed fortolkes af andre selv med andre operativsystemer

  3. Webservice - SOAP

  4. Webservice - UDDI • UDDI (Universal Description, Discovery and Integration) • UDDI is a directory for storing information about web services • UDDI is a directory of web service interfaces described by WSDL • Private/Public UDDI register

  5. Webservice - DISCO • DISCO • Microsofts standard for at lave discovery dokumenter • Er placeret på en standard lokation på Web Server og indeholder sti og placering af WSDL file. • Bruges ved statisk discovery

  6. Web services Nogle sites med XML Web Services • http://www.webservicex.net/WCF/default.aspx • http://www.xignite.com/Products/ProductDirectory.aspx • http://aws.amazon.com/ • http://www.krakwebservices.dk/ UDDI.org • http://uddi.xml.org/http://uddi.microsoft.com/

  7. ASP.NET – web site publish

  8. ASP.NET – site-version (IIS 6.0)

  9. Mappebrowsing (IIS <=6.0)

  10. Mappebrowsing (IIS 7)

  11. Stub/proxy for web serviceVisual Studio 2008

  12. Stub/proxy for web serviceVisual Studio 2008

  13. Stub/proxy for web serviceVisual Studio 2008

  14. Debug af web-site

  15. .NET 3.5 ? – Session kravI app.config - på klienten sæt allowCookies

  16. .NET 3.5 for web med VS2010

  17. Asyncron kald af webservice // eksempel på asynchron kald af webservice private void buttonAddAsynchronous_Click(object sender, EventArgs e) { int x = int.Parse(textBoxX.Text); int y = int.Parse(textBoxY.Text); WebCalc.Calc calc = new WebCalc.Calc(); // tilknyt event-handler der skal kaldes ved complete calc.AddCompleted += calc_AddCompleted; // aktiver webservice Add asynckront calc.AddAsync(x, y); // der fortsættes direkte idet webservice laver "callback" ved afslutning } // "callback" rutine / event handler for afslutning at Add webservice void calc_AddCompleted(object sender, WebCalc.AddCompletedEventArgs e) { // resultatet er i e.Result - typen er den sammme som for synkron udgave - her int textBoxResult.Text = e.Result.ToString(); }

More Related