Pregled Java Web Servisa - Uvod u WSPA prezentacija

Document Sample
Pregled Java Web Servisa - Uvod u WSPA prezentacija Powered By Docstoc
					                          Invocation system                                                   Invocation system

                  Invocation Subsystem : Invocation Subsystem(client side)           Invocation Subsystem : Invocation Subsystem(server side)




                                                                                                                            param
param                                                                          Request :
                                                Request :
                                                  SOAP                           SOAP
                                                                                                                            param
param
                                                                                                                                                Java object :
                          SEI : Java                                                                                                               Target
                           Proxy
                                                                                                                            param

param
                                                  Resonse :                     Resonse :
                                                    SOAP                          SOAP                                      return


return




                                                                    SOAP Message
                                                                       Exchange
         Java method invocation                                      (Specified by                             Java method invocation
                                                                        WSDL)
    Java Virtual Machine                                      Web Service container


              WEB Service Proxy                                          SOAP Endpoint




                      Java interface                                           WSDL interface
                                          <definitions ...WSDL jezik koji
package com.soabook;                      mapira Java klase interfejse I
                                          metode radi prenosa Java
                                          objekata preko mreze posredstvom
import com.soabook.sales.Customer; //     SOAP-a…
uvezemo paket
                                          targetNamespace="http://soabook.com"
 import                                   xmlns:soa="http://soabook.com"
com.soabook.purchasing.PurchaseOrder;     xmlns:wrapper="http://soabook.com/wrapper" ...>
                                          <types>
public interface PurchaseTransactions {      <schema elementFormDefault="qualified"
         //kreiramo Java interface           targetNamespace="http://soabook.com/wrapper"
                                            ...>
public void newPurchase (Customer cust,       <element name="customerPurchase">
PurchaseOrder po);                             <complexType>
//definisemo novu funkciju interfejsa           <sequence>
                                                   <element ref="imported:customer"/>
...                                                <element ref="imported:po"/>
                                                </sequence>
                                               </complexType>
}                                            </element>
                                             ...
                                           </schema>
                                           ...
                                          </types>
                                          <message name="onCustomerPurchase">
                                              <part element="wrapper:customerPurchase"
                                              name="purchase"/>
                                          </message>
                                          ...
                                          <portType name="CustomerPurchase">
                                            <operation name="processCustomerPurchase">
                                              <input message="soa:onCustomerPurchase"
                                              ... />
                                             ...
                                           </operation>
                                          </portType>
                                          ...
                                          </definitions>
                                                            «datatype»
                                                              Type1

Class1

                      Class3
                                                                              «datatype»
                                                                                Type2
Class2




         Java klase                                                XML šema




                                     mapping strategy

                               mapping strategy

                                         mapping strategy
Web Services platform Arhitektura ( WSPA ) definiše tri podsistema : pozivanje(Invocation), serijalizaciju (Serialization), i primenu, isporuku ili raspoređivanje (Dep




                                  Web Services Platform




                                        Web Services Directory UDDI

                                                                                       Container J5EE, Servlets, Axis


                                              WSDL
                                                                                            Endpoint listener
                                        +nekaOperacija()
                                                                                            -url




                                                                                                           SOAP Handlers

                                                           WSDL/Java mapiranje



                                                                                                                Java Target
                                    WSDL Deployment
                                                                                                            +nekaMetoda()




                                                Serialization
                                                Context                                              Source Artifacts EJB Wrapper
                                                                         Container
                                                                         Deployment
                                                                         Descriptors
Za više informacija o temi:

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:0
posted:6/21/2013
language:
pages:16