Professional Documents
Culture Documents
Web Services
WSDL In a Nutshell
Provides an (XML based) description of a service that can be invoked over the network describes data types of input / output parameters / faults (exceptions) specifies representation of parameters on the wire (SOAP is one possible choice) specifies protocol used for invocation (HTTP, SMTP), and address http://some_url...
a WSDL description of a service enables automated generation of proxies (in many languages) which can invoke the service
Server offers Math service client try { int res = stub.add(4, 5) } catch (RemoteException e) auto-generate stub for client to remotely invoke the add operation network WSDL file describes Math service in XML vendor specific WSDL generation / deployment tool
deploy stub
class Math { int add(int arg1, int arg2) { return arg1 + arg2; } }
our original java code-> class Math { int add(int arg1, int arg2) { return arg1 + arg2; } }
Find (CreditCardAuthSvc)
authorize(int cardnum,
decimal amount) Service Provider
How WSDL & SOAP fit into the Web Services Stack
DATA FORMAT:
TRANSPORT: TRANSPORT:
if pink, then this standard is among those officially supported by the UAN Grammar
Messages Operations
e.g., SOAP
A Soap Example
client side code try { int res = stub.add(4, 5) request } catch (RemoteException e) response
http://www.w3schools.com (highly recommended for tutorials on SOAP, WSDL and many other web standards) http://msdn.microsoft.com/webservices/understanding/default.aspx Good articles covering the basics and advanced stuff http://searchwebservices.com Has an ask the expert section on SOAP and WSDL http://www.gotdotnet.com/team/tools/web_svc/default.aspx Good tools, including a wsdl verification tool http://www.capescience.com/downloads/wsdleditor/index.shtml Free WSDL editor, I tried it didnt like it. XML spy 5.0 is better comp.text.xml (Newsgroup) Books Java Web Services Architecture (were ordering copy for general use) Building Web Services with Java (you can borrow my copy) Organizations Software Development Forum Web Services Special Interest Group http://www.sdforum.org/p/l1.asp?SID=4&PID=607
Questions ?