WebServices: Difference between revisions

From Wiki RB4
Line 11: Line 11:


===via WSDD===
===via WSDD===
*.java bzw. *.class und per WSDD installieren (Web Service Deployment Descriptor.
*.java bzw. *.class und per WSDD installieren (Web Service Deployment Descriptor).


==Literatur==
==Literatur==
* [[http://www.torsten-horn.de/techdocs/java-soap-axis.htm]]
* [[http://www.torsten-horn.de/techdocs/java-soap-axis.htm]]

Revision as of 20:02, 15 May 2007

Basics

Web Services ermöglichen Kommunikation zwischen Applikationen übers Internet. Während bisher bei verteilten Systemen die elektronische Kommunikation über Rechnergrenzen hinweg meistens per CORBA, RMI oder DCOM erfolgte, nutzen Web Services einfaches XML, meistens über HTTP.

  • XML Web Services expose useful functionality to Web users through a standard Web protocol. In most cases, the protocol used is SOAP.
  • XML Web services provide a way to describe their interfaces in enough detail to allow a user to build a client application to talk to them. This description is usually provided in an XML document called a Web Services Description Language (WSDL) document.
  • XML Web services are registered so that potential users can find them easily. This is done with Universal Discovery Description and Integration (UDDI).

Development

via .jws

public class <CLASSNAME> mit Extension .jws in <TOMCAT_DIR>\webapps\axis\ kopieren und per <TOMCAT_URL>/axis/<CLASSNAME>.jws aufrufen. WSDL mit Anhang ?wsdl generieren. Beispiel ist MeineWebServiceKlasse1.jws oder CryptDataInfoWebService.jws. Die Class-Files werden nach <TOMCAT_DIR>\webapps\<WEBAPP_DIR>\WEB-INF\jwsClasses compiliert.

via WSDD

  • .java bzw. *.class und per WSDD installieren (Web Service Deployment Descriptor).

Literatur