Right IBMs picture of ways to start thinking
Right – IBM’s picture of “ways to start thinking about SOA. ” From http: //www. ibm. com/devel operworks/webservices/ne wto/. CSSE 477 – Using SOA Services Steve Chenoweth Tuesday, 11/1/11 Week 9, Day 2 1
Today • SOA assignment - Find and explain how to use an SOA service. – This will be a short project started in class, due Thurs. • Thursday – – More about SOA – Turn in your findings about using an SOA service. • Friday – – A day to work on your presentations for week 10 2
Be a new SOA developer • With your project team, find an interesting service you could use, and explain what it does. • Try to do a sample use of the service, using one of the online facilities for this. • Extra credit for finding a service which would be useful to something in your project app. • Describe how you’d do the WSDL & SOAP stuff in a particular language. • And -- decide what would make a service from your own app! 3
Steps • Explore some possible services! – At http: //webservices. seekda. com/search? q=free+university, you can see the results on “SEEKDA” of my search for free SOA services from universities. – Think of some interesting key words yourself, and look for related services. – Pick a promising one, and… • See how close you can come to “trying it. ” – On my machine, SEEKDA’s tools for this sometimes hang up in IE, but worked on Firefox. – Alternatively, you could try the “generic SOAP client” at http: //soapclient. com/soaptest. html. All you need is the SOA to start the service (plus an idea of what data to enter!). – Describe how this experiment went. 4
Steps - cntd • Describe how you would use programmatic tools to do these same accesses, using a language of your choice, other than Java. (Your team should vote on this!) – Include a way of reading WSDL’s – Include a way of using SOAP to pass messages. • For Java, – There’s an intro to using these tools at http: //download. oracle. com/docs/cd/B 19306_01/appdev. 102/b 14252/adx_j_soap. htm. – The actual libraries are on other pages of Oracle’s language info. E. g. , see http: //download. oracle. com/docs/cd/E 21454_01/html/821 -2630/ghvth. html for how to create a WSDL. – In the case of Java, tools like Apache Axis also provide a Web Services library! (This is the WSDL 2 Java stuff). See for example http: //ws. apache. org/axis/java/userguide. html#WSDL 2 Java. Building. Stubs. Skeletons. And. Data. Types. From. WSDL. 5
Steps - cntd Your general description for the SOAP interactions in the language should sound something like this (only language specific), which is taken from http: //www. ibm. com/developerworks/xml/library/x-soapcl/: • Your program passes the name of the remote method to invoke and any necessary parameters. • The library assembles the appropriate XML document of a SOAP request to package this information. • The library passes this XML document to the SOAP server identified by a SOAP endpoint URL, much the way you point a browser at a Web server address by specifying the server's URL. • After the SOAP server attempts to execute the method, it assembles a SOAP response XML document around the result of the execution and passes it back to the SOAP client. • Upon receiving the SOAP response, the client library parses the XML to get the result of the method invocation and passes this result to the program using the library. 6
And Turn in one description (with all of the team members’ names) of - • What you did to check out a useful service and what did it’s WSDL describe, • The language-specific WSDL/SOAP tools you found in your language of choice, and • How you would use them, step by step. • Final question – what in your own application might be turned into an SOA “service”. • Turn this in Thursday in class!? (One per team. ) 7
- Slides: 7