24
Ravi Palejiya Ruofan Xu

Shopping is FUN!!!!!!!

  • Upload
    cahil

  • View
    29

  • Download
    1

Embed Size (px)

DESCRIPTION

Shopping is FUN!!!!!!!. Ravi Palejiya Ruofan Xu. Goal. Consumer often spends lot of time on searching for best deals of products on different websites. SOAShopper provides a solution for it. Thus they don’t need to waste their time in exploring websites. - PowerPoint PPT Presentation

Citation preview

Page 1: Shopping is FUN!!!!!!!

Ravi PalejiyaRuofan Xu

Page 2: Shopping is FUN!!!!!!!

Consumer often spends lot of time on searching for best deals of products on different websites.

SOAShopper provides a solution for it. Thus they don’t need to waste their time in exploring websites.

SOAShopper will give one comprehensive list at a single place.

Page 3: Shopping is FUN!!!!!!!

SOAShopper project will meat the following objectives

Product Keywords Search on three different shopping services.

Select search criteria as Category, Currency, Price-Range (High price, Low price)

Product summery with quick link

Page 4: Shopping is FUN!!!!!!!

SOAShopper SOA

Basic layer

Amazon Web Services

Amazon Web Services eBay Web

Services

eBay Web Services Yahoo! Web

Services

Yahoo! Web Services

Intermediary layer

Search Search

Enterprise Layer

SOAShopper WebsiteSOAShopper Website

Business Layer

Keyword Search ProcessKeyword Search Process

Set Search parameters

Set Search parameters

Business logicBusiness logic

Page 5: Shopping is FUN!!!!!!!

<<Front end>>Customer

<<Web Appl>>SOAShoppe

<<Service>>eBay Web

<<Service>>Amazon Web

<<Service>>Yahoo! Web

Search Request

Invoke OfferSearch()

Search Response

confirm Search

Invoke OfferSearch()

Invoke OfferSearch()

Offerlist()

Offerlist()

Offerlist()

arrange

Page 6: Shopping is FUN!!!!!!!

Technology Architecture of SOAShopper

JAX WS

InternetInternet

Service ImplementationService Implementation

SEISEI Provider<Source>Provider<Source>

Java ObjectsJava Objects Java ObjectsJava ObjectsSoaShopper std. XML schema

SoaShopper std. XML schema

REST / Ajax based Consumer

REST / Ajax based Consumer

SOAP Message

WSDL/SOAP-Based Consumer

WSDL/SOAP-Based Consumer

Amazon Web ServiceAmazon Web

Service

Yahoo! Web ServiceYahoo! Web

Service

SOAP SOAP

JavaJava Java

XML/HTTP

Integration LayerIntegration Layer

Amazon API

SOAShopper APISOAShopper API

eBay API Yahoo! APIYahoo! API

eBay Web ServiceeBay Web

Service

Plain Old XML

Page 7: Shopping is FUN!!!!!!!

Technology Architecture of SOAShopper

JAX WS

InternetInternet

Service ImplementationService Implementation

SEISEI Provider<Source>Provider<Source>

Java ObjectsJava Objects Java ObjectsJava ObjectsSoaShopper std. XML schema

SoaShopper std. XML schema

REST / Ajax based Consumer

REST / Ajax based Consumer

SOAP Message

WSDL/SOAP-Based Consumer

WSDL/SOAP-Based Consumer

Amazon Web ServiceAmazon Web

Service

Yahoo! Web ServiceYahoo! Web

Service

SOAP SOAP

JavaJava Java

XML/HTTP

Integration LayerIntegration Layer

Amazon API

SOAShopper APISOAShopper API

eBay API Yahoo! APIYahoo! API

eBay Web ServiceeBay Web

Service

Plain Old XML

converted in to java objects by using

JAX-WS compiler Manually

Page 8: Shopping is FUN!!!!!!!

Technology Architecture of SOAShopper

JAX WS

InternetInternet

Service ImplementationService Implementation

SEISEI Provider<Source>Provider<Source>

Java ObjectsJava Objects Java ObjectsJava ObjectsSoaShopper std. XML schema

SoaShopper std. XML schema

REST / Ajax based Consumer

REST / Ajax based Consumer

SOAP Message

WSDL/SOAP-Based Consumer

WSDL/SOAP-Based Consumer

Amazon Web ServiceAmazon Web

Service

Yahoo! Web ServiceYahoo! Web

Service

SOAP SOAP

JavaJava Java

XML/HTTP

Integration LayerIntegration Layer

Amazon API

SOAShopper APISOAShopper API

eBay API Yahoo! APIYahoo! API

eBay Web ServiceeBay Web

Service

Plain Old XML

Standard XML Schema is used to build request massage and response

Page 9: Shopping is FUN!!!!!!!

Technology Architecture of SOAShopper

JAX WS

InternetInternet

Service ImplementationService Implementation

SEISEI Provider<Source>Provider<Source>

Java ObjectsJava Objects Java ObjectsJava ObjectsSoaShopper std. XML schema

SoaShopper std. XML schema

REST / Ajax based Consumer

REST / Ajax based Consumer

SOAP Message

WSDL/SOAP-Based Consumer

WSDL/SOAP-Based Consumer

Amazon Web ServiceAmazon Web

Service

Yahoo! Web ServiceYahoo! Web

Service

SOAP SOAP

JavaJava Java

XML/HTTP

Integration LayerIntegration Layer

Amazon API

SOAShopper APISOAShopper API

eBay API Yahoo! APIYahoo! API

eBay Web ServiceeBay Web

Service

Plain Old XML

Implementation Layer – Request massage are serialized into java objects.

It provides functionality by binding the service on top of base lavel SOAShopper API.

i.e. It interprets search request and invokes proper API method .

Page 10: Shopping is FUN!!!!!!!

Technology Architecture of SOAShopper

JAX WS

InternetInternet

Service ImplementationService Implementation

SEISEI Provider<Source>Provider<Source>

Java ObjectsJava Objects Java ObjectsJava ObjectsSoaShopper std. XML schema

SoaShopper std. XML schema

REST / Ajax based Consumer

REST / Ajax based Consumer

SOAP Message

WSDL/SOAP-Based Consumer

WSDL/SOAP-Based Consumer

Amazon Web ServiceAmazon Web

Service

Yahoo! Web ServiceYahoo! Web

Service

SOAP SOAP

JavaJava Java

XML/HTTP

Integration LayerIntegration Layer

Amazon API

SOAShopper APISOAShopper API

eBay API Yahoo! APIYahoo! API

eBay Web ServiceeBay Web

Service

Plain Old XML

SOAShopper API provides a common wrapper around the shopping service object models.

It’s methods Invokes Integration layer

Page 11: Shopping is FUN!!!!!!!

Technology Architecture of SOAShopper

JAX WS

InternetInternet

Service ImplementationService Implementation

SEISEI Provider<Source>Provider<Source>

Java ObjectsJava Objects Java ObjectsJava ObjectsSoaShopper std. XML schema

SoaShopper std. XML schema

REST / Ajax based Consumer

REST / Ajax based Consumer

SOAP Message

WSDL/SOAP-Based Consumer

WSDL/SOAP-Based Consumer

Amazon Web ServiceAmazon Web

Service

Yahoo! Web ServiceYahoo! Web

Service

SOAP SOAP

JavaJava Java

XML/HTTP

Integration LayerIntegration Layer

Amazon API

SOAShopper APISOAShopper API

eBay API Yahoo! APIYahoo! API

eBay Web ServiceeBay Web

Service

Plain Old XML

Integration layer will implement the interfaces defined by the SOAShopper API to Shopping services’ APIs

i.e. It translates/maps the operations into the syntax and semantics of source

systems.

Page 12: Shopping is FUN!!!!!!!

BridgeShopper

+offerSearch()

ShopperImp

+offerSearch()

-imp

ComputerShopper CellphoneShopper

eBayShopperImp AmazonShopperImp YahooShopperImp

eBayAPIInterface AWSECommercService YahooRESTIntrface

eBay Model

Amazon Model

Yahoo! Model

-port -port -port

Integration Layer

Page 13: Shopping is FUN!!!!!!!

SOAP Response

SOAP Response

Parameters(JAXB

Generated Class Instance)

Parameters(JAXB

Generated Class Instance)

Return Value(JAXB

Generated Class Instance)

Return Value(JAXB

Generated Class Instance)

getEBayAPI(…)

Proxy Instance

Service Endpoint Interface

Service Endpoint Interface

Handler ChainHandler Chain

SOAPHandler <SOAPMessageContext>SOAPHandler <SOAPMessageContext>

Invocation Handler

Invocation Handler

WSDL to Java Mapping ToolWSDL to Java Mapping Tool

Service Endpoint Interface

Service Endpoint Interface

javax.xml.ws.Service (factory class)

javax.xml.ws.Service (factory class)

Buildtime

SOAP RequestSOAP

Request

eBay Web ServiceeBay Web ServiceWSDL Endpoint

e-Bay (SOAP) services implementation

Page 14: Shopping is FUN!!!!!!!

Convert REST Documentation to an Interface

(Manual Process)

Convert REST Documentation to an Interface

(Manual Process)

Parameters(Query String)

Parameters(Query String)

Return Value(JAXB-Generated

Class Instance)

Return Value(JAXB-Generated

Class Instance)

Yahoo! Shopping Web Services: Product SearchYahoo! Shopping Web Services: Product Search

REST Documentation (Human Readable)

Endpoint

REST Interface Implementation

RESTful Invocation Methods

RESTful Invocation Methods

JAX-WS DispatchJAX-WS

Dispatch

JAXbContextJAXbContext

XML/HTTP Request

XML/HTTP Request

XML/HTTP Response

XML/HTTP Response

Yahoo! (REST) services implementation

Page 15: Shopping is FUN!!!!!!!

J2SE 5 (Java 2 Platform, Standard Edition 5) Java EE 5 (Java Platform, Enterprise Edition 5) Glassfish application server Apache Ant 1.7.0 Apache Maven 2.0 Netbeans 5.5 enterprise Edition – for BPEL

}Build tools

Page 16: Shopping is FUN!!!!!!!
Page 17: Shopping is FUN!!!!!!!

In main folder Maven installation was successful

Page 18: Shopping is FUN!!!!!!!

Solution: Change the C:/mark.homepc into the path of commen_built.xml in main pom.xml

Page 19: Shopping is FUN!!!!!!!

Solution:Change the path of glassfish in the main pom.xml without /bin

Page 20: Shopping is FUN!!!!!!!

This error is to be resolved. We have asked author for the help in special google group SOA Using Java Web Services

Page 21: Shopping is FUN!!!!!!!

Errors due to backward slash(/) instead of forward slash(\) for setting path

Space in path name (Ex. C:\Documents and settings)

Page 22: Shopping is FUN!!!!!!!
Page 23: Shopping is FUN!!!!!!!

References SOA Using Java Web Services – By Mark D Hansen,

April 2007. Ant: The definitive Guide, Second Edition

By Steve Holzner, April 2005 A Hands-on Introduction to BPEL by Matjaz B Juric,

http://www.oracle.com/technology/pub/articles/matjaz_bpel1.html

Adam Sherman http://www.sherman.ca/archives/2004/07/04/maven-vs-ant

www.w3school.com Google group communication by Cristiano.

Page 24: Shopping is FUN!!!!!!!