BPEL????????? ???????????????? - PowerPoint PPT Presentation

About This Presentation
Title:

BPEL????????? ????????????????

Description:

BPEL Design and Implementation of Test Case Generation Tool for BPEL Unit Testing – PowerPoint PPT presentation

Number of Views:46
Avg rating:3.0/5.0
Slides: 22
Provided by: Choy152
Category:
Tags: bpel | operations | wsdl

less

Transcript and Presenter's Notes

Title: BPEL????????? ????????????????


1
BPEL?????????????????????????
Design and Implementation of Test Case Generation
Tool for BPEL Unit Testing
  • ?????
  • ??????2?
  • Choy Kho Yee

2
??
  • ??
  • BPEL??????????????????
  • ????
  • ??????????????????????????????????????????
  • ???????????????????
  • ??
  • ?????????????????????????????????

3
SOA?BPEL
  • ?????????????(SOA)????????????????????????????????
    ?????
  • ????XML????????
  • ???????????????????(BPEL)??????????????????XML????
    ??
  • WSDL?XML Schema?XPath???
  • BPEL???????????BPEL???????

4
BPEL??????
XML?????
????? ????
BPEL????
ltrequestgt ltsearchgttropical islandlt/searchgt lt/r
equestgt
ltquerygt ltkeywordgttropical islandlt/keywordgt lt/q
uerygt
ltresponsegt ltresultgtHawaiilt/resultgt
ltresultgtBalilt/resultgt lt/responsegt
???????
??????
ltquerygt ltfromgtJapanlt/fromgt
lttogtHawaiilt/togt lt/querygt
ltresponsegt ltresultgtlt/resultgt
ltresultgtlt/resultgt lt/responsegt
ltquerygt ltfromgtJapanlt/fromgt
lttogtBalilt/togt lt/querygt
5
BPEL??????????
????? ????
BPEL????
ltrequestgt ltsearchgttropical islandlt/searchgt lt/r
equestgt
ltquerygt ltkeywordgttropical islandlt/keywordgt lt/q
uerygt
ltresponsegt ltresultgtHawaiilt/resultgt
ltresultgtBalilt/resultgt lt/responsegt
??????
ltquerygt ltfromgtJapanlt/fromgt
lttogtHawaiilt/togt lt/querygt
ltresponsegt ltresultgtlt/resultgt
ltresultgtlt/resultgt lt/responsegt
ltquerygt ltfromgtJapanlt/fromgt
lttogtBalilt/togt lt/querygt
6
BPEL??????????
BPEL????????????
????????
  • BPELUnit
  • BPEL?????????????????
  • P. Mayer, D. Lübke, Towards a BPEL unittesting
    framework. TAV-WEB06, July 17, 2006.

???????????
7
BPELUnit?????????
?????
??
???????????????? ???????????????
8
BPELUnit TestSuite Editor
??????
???????
9
????????
  • ?????????????????????
  • ??????????XML?????????
  • ????????????????????????
  • ????????????????????????????????????????????

10
???
  • BPEL?????????????????????????????????1
  • BPEL?????????XPath??????????

????BPEL????????????? ???XPath?????????????
1 F.Leymann, D.Roller, S.Thatte, Goals of the
BPEL4WS Specification.
11
XPath?
  • XML???????????????
  • XML??????????????????
  • ???????????????????????

XML??
XPath? ??
/response/result1/text() Hawaii
count(/response/result) 2
/response/result 2??result???
ltresponsegt ltresultgtHawaiilt/resultgt
ltresultgtBalilt/resultgt lt/responsegt
12
????
  • ????????????????????????????????????????????
  • ????????????????????????????XPath?????????
  • ???????????????????????????????
  • ???? XML???????????????
  • ???? XPath???????
  • ???? XPath???????????
  • ???? ????????????????????
  • ????????????????????????????????

13
????????
/request/search /query/keyword
??
ltrequestgt ltsearchgttropical islandlt/searchgt lt/r
equestgt
???
ltquerygt ltkeywordgttropical islandlt/keywordgt lt/q
uerygt
ltresponsegt ltresultgtHawaiilt/resultgt
ltresultgtBalilt/resultgt lt/responsegt
ltquerygt ltfromgtJapanlt/fromgt
lttogtHawaiilt/togt lt/querygt
/response/result?? count(/response/result)
ltquerygt ltfromgtJapanlt/fromgt
lttogtBalilt/togt lt/querygt
???????????? count(/response/result)
ltresponsegt ltresultgtlt/resultgt
ltresultgtlt/resultgt lt/responsegt
14
??????
XML???????
???????
  • BPEL Data Dependency Editor
  • Eclipse???????????
  • ??????????????GUI???
  • BPEL Data Dependency Description
  • ??????????XML??
  • Test Case Generator
  • ????????????????

15
BPEL Data Dependency Editor
???????? ??????? ?????
XML??? ?????
Xpath???
????? ????
????? ???????
16
?????????
  • ??????????????????????????
  • ??????

(1?????)?????????
??????????
ID ??? ???ID???
1 BPEL IN
2 BPEL OUT 4
3 GeoInfo IN 1
4 GeoInfo OUT
5 Currency IN 4
6 Currency OUT
??? 1????? 2?????
(1) BPEL IN
(2) BPEL OUT
(3) GeoInfo IN
(4) GeoInfo OUT
(5) Currency IN
(6) Currency OUT
XML???
XML???
XML???
XML???
XML???
XML???
XML???
XML???
XML???
XML???
XML???
XML???
17
?????????
??????????
??? 1????? 2?????
(1) BPEL IN
(2) BPEL OUT
(3) GeoInfo IN
(4) GeoInfo OUT
(5) Currency IN
(6) Currency OUT
XML???
XML???
XML???
XML???
XML???
XML???
XML???
XML???
XML???
XML???
XML???
XML???
?????????????????????? ??????
18
???????
  • ??BPEL????????(M1)4?
  • ?????
  • BPELUnit TestSuite Editor(?????)
  • BPEL Data Dependency Editor(?????)
  • ??
  • ??????????2??BPEL?????????????????????????????
  • ???
  • ?????????
  • ???????

19
??????
  • ????????????????????????
  • ? XML???????????

20
??????????
BPELUnit TestSuite Editor BPEL Data Dependency Editor
XML namespace?? XML namespace??
wsdlpelement ???namespace????? ????namespace??? ??
XPath?? XPath??
?????????e.g. /a/b/c ? /a/c ????? ???????
????? ?????
????A?????B??????? ????? ???????????
21
?????????
  • ???
  • BPEL?????????????????????????????????????????
  • ???????????????????????????
  • ?????
  • ?????????????????
  • BPEL?????????

22
???
  • ???????????

23
??????
24
???????????????
???????
???????
  1. ????????????
  2. ????????????????????????????????
  3. ????????????????????????????
  1. ????????????????????????
  2. ???????????????????????????????????????

?????? ???????????
????????????????????????
  • ???????????
  • ????????????
  • ??????
  • ???????

25
WSDL
WSDL??
ltdescriptiongt lttypesgt lt/typesgt
ltmessagegtlt/messagegt ltportTypegtlt/portTypegt
ltbindinggtlt/bindinggt ltservicegtlt/servicegt
lt/descriptiongt
??????
???????????????? ???????????????????????
??????
?????????????????????? ??????
26
types?message?portType??
lttypesgt ltschemagt ltcomplexType name"User"gt
ltsequencegt ltelement name"fullname"
type"xsdstring"/gt ltelement name"id"
type"xsdstring"/gt ltelement name"username"
type"xsdstring"/gt lt/sequencegt
lt/complexTypegt lt/schemagt lt/typesgt
ltmessage name"getUserResponse"gt ltpart
name"getUserReturn" type"User"/gt lt/messagegt ltmes
sage name"getUserRequest"gt ltpart name"userId"
type"string"/gt lt/messagegt
ltportType name"UserManager"gt ltoperation
name"getUser"gt ltinput message"getUserReques
t" name"getUserRequest"/gt ltoutput
message"getUserResponse" name"getUserResponse"/gt
lt/operationgt lt/portTypegt
27
XML Schema
  • ???????
  • ??????
  • ?????????????
  • Integer?string????????????????(????????)
  • ??????
  • ???????????????????
  • ????????????
  • ???????
  • ???????(???)?????????(???)???

ltxssimpleType nameresultTypegt
ltxsrestriction basexsintegergt
ltxsminInclusive value0/gt
ltxsmaxInclusive value100/gt
lt/xsrestrictiongt lt/xssimpleTypegt
ltxssimpleType nameisbnTypegt
ltxsrestriction basexsstringgt
ltxslength value10/gt lt/xsrestrictiongt lt/xs
simpleTypegt
??
???10???????
??0??100??????
28
????????
????Amazon??? (???????1)
?????????????? ?????(???????1)
ltItemSearchResponse xmlns"http//webservices.amaz
on.com/AWSECommerceService/2007-10-29"gt
ltOperationRequestgt
ltHTTPHeadersgt
ltHeader
Name"UserAgent" Value"Jakarta
Commons-HttpClient/3.0-rc3"/gt
lt/HTTPHeadersgt
ltRequestIdgt1T4G2908CWNSQ9HHPRY3lt/
RequestIdgt
ltArgumentsgt
ltArgument Name"Service" Value"AWSECommerceServ
ice"/gt
lt/Argumentsgt
ltRequestProcessingTimegt0.13686203956604lt/RequestPr
ocessingTimegt
lt/OperationRequestgt
ltItemsgt
ltRequestgt
ltIsValidgtTruelt/IsValidgt
ltItemSearchRequestgt
ltResponseGroupgtOfferSu
mmarylt/ResponseGroupgt
ltResponseGroupgtItemAttributeslt/Res
ponseGroupgt
ltResponseGroupgtImageslt/ResponseGroupgt

ltSearchIndexgtBookslt/SearchIndexgt
ltTitlegtpenanglt/Titlegt

lt/ItemSearchRequestgt
lt/Requestgt
ltTotalResultsgt167lt/TotalResultsgt
ltTotalPagesgt17lt/TotalPagesgt
ltItemgt

ltASINgt9812583262lt/ASINgt
ltDetailPageURLgthttp//www.amazon.com
/gp/redirect.html3FASIN981258326226tagws26lco
desp126cID202526ccmID16595326location/o/ASI
N/9812583262253FSubscriptionId1C382JNKQKADAZK4Y2
82lt/DetailPageURLgt
ltSmallImagegt
ltURLgthttp//ecx.images-amazon.com/
images/I/11FB8Y7RJ2L.jpglt/URLgt
ltHeight
Units"pixels"gt75lt/Heightgt
ltWidth Units"pixels"gt42lt/Wid
thgt
lt/SmallImagegt
ltMediumImagegt
ltURLgthttp//ecx.images-amazon.com/imag
es/I/214MFTQGGKL.jpglt/URLgt
ltHeight Units"pixels"gt160lt/H
eightgt
ltWidth Units"pixels"gt89lt/Widthgt
lt/MediumImagegt
ltLargeImagegt

ltURLgthttp//ecx.images-amazon.com/images/I/51K77EK
902L.jpglt/URLgt
ltHeight Units"pixels"gt500lt/Heightgt
ltWidth
Units"pixels"gt277lt/Widthgt
lt/LargeImagegt
ltImageSetsgt
ltImageSet
Category"primary"gt
ltSwatchImagegt

ltURLgthttp//ecx.images-amazon.com/images/I/01CDWYK
59HL.jpglt/URLgt
ltHeight Units"pixels"gt30lt/Height
gt
ltWidth Units"pixels"gt17lt/Widthgt

lt/SwatchImagegt
ltSmallImagegt
ltURLgthttp//ecx.images
-amazon.com/images/I/11FB8Y7RJ2L.jpglt/URLgt

ltHeight Units"pixels"gt75lt/Heightgt
ltWidth
Units"pixels"gt42lt/Widthgt
lt/SmallImagegt

ltThumbnailImagegt
ltURLgthttp//ecx.images-amazon.c
om/images/I/11FB8Y7RJ2L.jpglt/URLgt
ltHeight
Units"pixels"gt75lt/Heightgt
ltWidth
Units"pixels"gt42lt/Widthgt
lt/ThumbnailImagegt

ltTinyImagegt
ltURLgthttp//ecx.images-amazon.com/im
ages/I/11RS0G1E1CL.jpglt/URLgt
ltHeight
Units"pixels"gt110lt/Heightgt
ltWidth
Units"pixels"gt61lt/Widthgt
lt/TinyImagegt
ltMediumImagegt

ltURLgthttp//ecx.images-amazon.com/images/I/214MFT
QGGKL.jpglt/URLgt
ltHeight Units"pixels"gt160lt/Heig
htgt
ltWidth Units"pixels"gt89lt/Widthgt

lt/MediumImagegt
ltLargeImagegt
ltURLgthttp//ecx.images
-amazon.com/images/I/51K77EK902L.jpglt/URLgt

ltHeight Units"pixels"gt500lt/Heightgt
ltWidth
Units"pixels"gt277lt/Widthgt
lt/LargeImagegt
lt/ImageSetgt
lt/ImageSetsgt

ltItemAttributesgt
ltBindinggtPaperbacklt/Bindinggt

ltEANgt9789812583260lt/EANgt
ltISBNgt9812583262lt/ISBNgt
ltLabelgtAPA
Publications Pte Ltd,Singaporelt/Labelgt
ltListPricegt

ltAmountgt1684lt/Amountgt
ltCurrencyCodegtUSDlt/CurrencyCod
egt
ltFormattedPricegt16.84lt/FormattedPricegt
lt/ListPricegt

ltManufacturergtAPA Publications Pte
Ltd,Singaporelt/Manufacturergt
ltNumberOfPagesgt104lt/NumberO
fPagesgt
ltPackageDimensionsgt
ltHeight Units"hundredths-inch
es"gt16lt/Heightgt
ltLength Units"hundredths-inches"gt40
9lt/Lengthgt
ltWeight Units"hundredths-pounds"gt49lt/Wei
ghtgt
ltWidth Units"hundredths-inches"gt157lt/Widthgt

lt/PackageDimensionsgt
ltProductGroupgtBooklt/ProductGroupgt

ltProductTypeNamegtABIS_BOOKlt/ProductTypeNamegt

ltPublicationDategt2006-05-10lt/PublicationDategt

ltPublishergtAPA Publications Pte
Ltd,Singaporelt/Publishergt
ltStudiogtAPA Publications Pte
Ltd,Singaporelt/Studiogt
ltTitlegtPenang and Langkawi
Insight Pocket Guidelt/Titlegt
lt/ItemAttributesgt
ltOfferSummarygt

ltLowestNewPricegt
ltAmountgt1024lt/Amountgt

ltCurrencyCodegtUSDlt/CurrencyCodegt
ltFormattedPricegt10
.24lt/FormattedPricegt
lt/LowestNewPricegt
ltLowestUsedPricegt

ltAmountgt1248lt/Amountgt
ltCurrencyCodegtUSDlt/CurrencyCod
egt
ltFormattedPricegt12.48lt/FormattedPricegt

lt/LowestUsedPricegt
ltTotalNewgt8lt/TotalNewgt
ltTotalUsedgt1lt/TotalU
sedgt
ltTotalCollectiblegt0lt/TotalCollectiblegt

ltTotalRefurbishedgt0lt/TotalRefurbishedgt
lt/OfferSummarygt
lt/Itemgt
ltItemgt
ltASINgt8791114470lt/ASINgt

ltDetailPageURLgthttp//www.amazon.com/gp/redirect.h
tml3FASIN879111447026tagws26lcodesp126cID2
02526ccmID16595326location/o/ASIN/87911144702
53FSubscriptionId1C382JNKQKADAZK4Y282lt/DetailPage
URLgt
ltSmallImagegt
ltURLgthttp//ecx.images-amazon.com/images/I/
01OWFyVJYyL.jpglt/URLgt
ltHeight Units"pixels"gt75lt/Heightgt

ltWidth Units"pixels"gt50lt/Widthgt
lt/SmallImagegt
ltMediumImagegt

ltURLgthttp//ecx.images-amazon.com/images/I/214KVTS
9DML.jpglt/URLgt
ltHeight Units"pixels"gt160lt/Heightgt
ltWidth
Units"pixels"gt107lt/Widthgt
lt/MediumImagegt
ltLargeImagegt
ltURLgthttp//ecx.image
s-amazon.com/images/I/412IHdEG52L.jpglt/URLgt
ltHeight
Units"pixels"gt500lt/Heightgt
ltWidth Units"pixels"gt333lt/W
idthgt
lt/LargeImagegt
ltImageSetsgt
ltImageSet Category"primary"gt

ltSwatchImagegt
ltURLgthttp//ecx.images-amazon.com/
images/I/01Jt1DT57YL.jpglt/URLgt
ltHeight
Units"pixels"gt30lt/Heightgt
ltWidth
Units"pixels"gt20lt/Widthgt
lt/SwatchImagegt

ltSmallImagegt
ltURLgthttp//ecx.images-amazon.com/i
mages/I/01OWFyVJYyL.jpglt/URLgt
ltHeight
Units"pixels"gt75lt/Heightgt
ltWidth
Units"pixels"gt50lt/Widthgt
lt/SmallImagegt

ltThumbnailImagegt
ltURLgthttp//ecx.images-amazon.c
om/images/I/01OWFyVJYyL.jpglt/URLgt
ltHeight
Units"pixels"gt75lt/Heightgt
ltWidth
Units"pixels"gt50lt/Widthgt
lt/ThumbnailImagegt

ltTinyImagegt
ltURLgthttp//ecx.images-amazon.com/im
ages/I/11LBKiFV3EL.jpglt/URLgt
ltHeight
Units"pixels"gt110lt/Heightgt
ltWidth
Units"pixels"gt74lt/Widthgt
lt/TinyImagegt
ltMediumImagegt

ltURLgthttp//ecx.images-amazon.com/images/I/214KVT
S9DML.jpglt/URLgt
ltHeight Units"pixels"gt160lt/Heig
htgt
ltWidth Units"pixels"gt107lt/Widthgt

lt/MediumImagegt
ltLargeImagegt
ltURLgthttp//ecx.images
-amazon.com/images/I/412IHdEG52L.jpglt/URLgt

ltHeight Units"pixels"gt500lt/Heightgt
ltWidth
Units"pixels"gt333lt/Widthgt
lt/LargeImagegt
lt/ImageSetgt
lt/ImageSetsgt

ltItemAttributesgt
ltAuthorgtNordin Hussinlt/Authorgt

ltBindinggtPaperbacklt/Bindinggt
ltBrandgtNordic Institute of
Asian Studieslt/Brandgt
ltDeweyDecimalNumbergt959.503lt/Dewey
DecimalNumbergt
ltEANgt9788791114472lt/EANgt
ltISBNgt8791114470lt/ISBN
gt
ltLabelgtNordic Institute of Asian Studieslt/Labelgt

ltListPricegt
ltAmountgt6700lt/Amountgt
ltCurrencyCodegtUSDlt/C
urrencyCodegt
ltFormattedPricegt67.00lt/FormattedPricegt

lt/ListPricegt
ltManufacturergtNordic Institute of Asian
Studieslt/Manufacturergt
ltNumberOfItemsgt1lt/NumberOfItemsgt

ltNumberOfPagesgt384lt/NumberOfPagesgt
ltPackageDimensionsgt

ltHeight Units"hundredths-inches"gt110lt/Heightgt

ltLength Units"hundredths-inches"gt898lt/Lengthgt

ltWeight Units"hundredths-pounds"gt141lt/Weightgt

ltWidth Units"hundredths-inches"gt606lt/Widthgt

lt/PackageDimensionsgt
ltProductGroupgtBooklt/ProductGroupgt

ltProductTypeNamegtABIS_BOOKlt/ProductTypeNamegt

ltPublicationDategt2005-01-31lt/PublicationDategt

ltPublishergtNordic Institute of Asian
Studieslt/Publishergt
ltStudiogtNordic Institute of Asian
Studieslt/Studiogt
ltTitlegtTrade And Society In The
Straits Of Melaka Dutch Melaka And English
Penang, 1780-1830 (Nordic Institute of Asian
Studies Momograph Series)lt/Titlegt
lt/ItemAttributesgt
ltOfferSummarygt

ltLowestNewPricegt
ltAmountgt6169lt/Amountgt

ltCurrencyCodegtUSDlt/CurrencyCodegt
ltFormattedPricegt61
.69lt/FormattedPricegt
lt/LowestNewPricegt
ltLowestUsedPricegt

ltAmountgt6169lt/Amountgt
ltCurrencyCodegtUSDlt/CurrencyCod
egt
ltFormattedPricegt61.69lt/FormattedPricegt

lt/LowestUsedPricegt
ltTotalNewgt9lt/TotalNewgt
ltTotalUsedgt3lt/TotalU
sedgt
ltTotalCollectiblegt0lt/TotalCollectiblegt

ltTotalRefurbishedgt0lt/TotalRefurbishedgt
lt/OfferSummarygt
lt/Itemgt
ltItemgt
ltASINgt0521683319lt/ASINgt

ltDetailPageURLgthttp//www.amazon.com/gp/redirect.h
tml3FASIN052168331926tagws26lcodesp126cID2
02526ccmID16595326location/o/ASIN/05216833192
53FSubscriptionId1C382JNKQKADAZK4Y282lt/DetailPage
URLgt
ltSmallImagegt
ltURLgthttp//ecx.images-amazon.com/images/I/
11GZ7GXJKVL.jpglt/URLgt
ltHeight Units"pixels"gt75lt/Heightgt

ltWidth Units"pixels"gt49lt/Widthgt
lt/SmallImagegt
ltMediumImagegt

ltURLgthttp//ecx.images-amazon.com/images/I/21AKQ3W
FTWL.jpglt/URLgt
ltHeight Units"pixels"gt160lt/Heightgt
ltWidth
Units"pixels"gt104lt/Widthgt
lt/MediumImagegt
ltLargeImagegt
ltURLgthttp//ecx.image
s-amazon.com/images/I/51NWGMF17EL.jpglt/URLgt
ltHeight
Units"pixels"gt500lt/Heightgt
ltWidth Units"pixels"gt324lt/W
idthgt
lt/LargeImagegt
ltImageSetsgt
ltImageSet Category"primary"gt

ltSwatchImagegt
ltURLgthttp//ecx.images-amazon.com/
images/I/01YSP9NJXJL.jpglt/URLgt
ltHeight
Units"pixels"gt30lt/Heightgt
ltWidth
Units"pixels"gt20lt/Widthgt
lt/SwatchImagegt

ltSmallImagegt
ltURLgthttp//ecx.images-amazon.com/i
mages/I/11GZ7GXJKVL.jpglt/URLgt
ltHeight
Units"pixels"gt75lt/Heightgt
ltWidth
Units"pixels"gt49lt/Widthgt
lt/SmallImagegt

ltThumbnailImagegt
ltURLgthttp//ecx.images-amazon.c
om/images/I/11GZ7GXJKVL.jpglt/URLgt
lttesconditiongt
lttesexpressiongtcount(./putresponse/putbookResul
ts/putbookResult)lt/tesexpressiongt
lttesvaluegt'2'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putbookResults/put
bookResult1/puttitlelt/tesexpressiongt
lttesvaluegt'Mampaposrgg-qgN
pWqVl(p\zpb8ampN3fL0J).RX'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putbookResult
s/putbookResult1/putauthorlt/tesexpressiongt
lttesvaluegt'MrWV3JSEvK
2YaampaposJgN8CWnTampaposTo!V8ejEMCAzNC
Evampapos'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putbookResults/put
bookResult1/putpricelt/tesexpressiongt
lttesvaluegt'8\2'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putbookR
esults/putbookResult1/putisbnlt/tesexpressiongt
lttesvaluegt'ltz46j
gyUp4ax8?eR.0u1?iaPYgtOPLTc86TIl9(5b)4gtdr
-t7Y41'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putbookResults/put
bookResult1/putimgUrllt/tesexpressiongt
lttesvaluegt'V,OkzzgtVK_lt
"ampaposgtWc)hgampaposZxs8k5vDD.-gt3lteH
WJH_at_lip3nUPamp-p'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putbookResults/put
bookResult2/puttitlelt/tesexpressiongt
lttesvaluegt'PzfOltX?!Rkem
i8ampxf/ampNfamph"MEgt4\Vlsw
tA5vwmuampLfv3zNQPwDODZvkAVsW\JAPk'lt/tes
valuegt lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/pu
tbookResults/putbookResult2/putauthorlt/tesex
pressiongt
lttesvaluegt't!bT.ezIRk(u amphzgampCYnasWgt
zjfi.z_at_ampaposTcOXyNK)?2Ca"sd5H(H-ampap
osVKoN.JduAOfTbwJk'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putbookResults/put
bookResult2/putpricelt/tesexpressiongt
lttesvaluegt'rMVBM""A6FY2"Znl
83Jamp3wWampk"G"(-k8KCil6r'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putbookRes
ults/putbookResult2/putisbnlt/tesexpressiongt
lttesvaluegt'uanSgtamp
aposLy_B6qu_at_k,d,(px!'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putbookResults/put
bookResult2/putimgUrllt/tesexpressiongt
lttesvaluegt'6"1jD2gt
SH"iP3gtwbhamp\CampaposBSKZci\4l(E9m8?TK
lqK0yyD_Yky'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/puttourResults/put
tourResult1/putagentNamelt/tesexpressiongt
lttesvaluegt'H7rTXfqQ9rV.?
GN?zhQZd_\sGHQkiopltAIAIMGaJA!qzT(zz
i/BJpPgltUIzV9UDAG4z7J'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/puttourResults/put
tourResult1/putpackageNamelt/tesexpressiongt
lttesvaluegt'NPcwAU-)b
).ccFVFZ(V,mogt_Rzy"?f gYztyH,mE.fOwBgsX-_p9
Te9YXKXZJyaaNs2qzqUUxrA!'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/puttourResults/p
uttourResult1/putdestinationlt/tesexpressiongt
lttesvaluegt'ltK?FwyE
lte4i1yulteIb1/2T'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/puttourResults/put
tourResult1/putstartDatelt/tesexpressiongt
lttesvaluegt'-2035-03-14-03
00'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/puttourResults/put
tourResult1/putendDatelt/tesexpressiongt
lttesvaluegt'2040-04-19-0400
'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/puttourResults/put
tourResult1/putpricelt/tesexpressiongt
lttesvaluegt'324933040'lt/tesva
luegt lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putt
ourResults/puttourResult1/putdetailslt/tesexpr
essiongt
lttesvaluegt'http//bOBN3E,ewbl\'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/puttourResul
ts/puttourResult1/putimgUrllt/tesexpressiongt
lttesvaluegt'http//C'lt/
tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/puttourResults/put
tourResult2/putagentNamelt/tesexpressiongt
lttesvaluegt'sK_bXNX7
x,puW-ampapos21X(,"qS,g3SQb_eJU'lt/tesvalu
egt lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/puttou
rResults/puttourResult2/putpackageNamelt/tesex
pressiongt
lttesvaluegt'?"P!_IDTltQAjsmIZ)c?ampZoU
'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/puttourResults/put
tourResult2/putdestinationlt/tesexpressiongt
lttesvaluegt'R\_wnIFvgt
lt QOerqbc6aDF3Li'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/puttourResults/put
tourResult2/putstartDatelt/tesexpressiongt
lttesvaluegt'2003-11-04Z'lt/
tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/puttourResults/put
tourResult2/putendDatelt/tesexpressiongt
lttesvaluegt'2019-11-04-0400
'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/puttourResults/put
tourResult2/putpricelt/tesexpressiongt
lttesvaluegt'40923214'lt/tesval
uegt lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putto
urResults/puttourResult2/putdetailslt/tesexpre
ssiongt
lttesvaluegt'http//Egtd_w(pS_Zor-
kGextJ'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/puttourResults/put
tourResult2/putimgUrllt/tesexpressiongt
lttesvaluegt'http//C'lt/tesva
luegt lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/puti
nfoResults/putinfoResult1/putlocationlt/tesexp
ressiongt
lttesvaluegt'JN K_CC52h_at_PFmQbltx2Hfdq.ZWswm.r
WwaK?,v2DxHKH"ARDGampbampoK'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putinfoRes
ults/putinfoResult1/puthighTemperaturelt/tesex
pressiongt
lttesvaluegt'5248.327150537260407'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putinfoResult
s/putinfoResult1/putlowTemperaturelt/tesexpres
siongt
lttesvaluegt'-769392708.9069530312'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putinfoResul
ts/putinfoResult1/putcurrencyExchangeRatelt/tes
expressiongt
lttesvaluegt'0.00000000006383852688040806828'lt/tes
valuegt lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/put
infoResults/putinfoResult2/putlocationlt/tese
xpressiongt
lttesvaluegt'26?HB8?_at_!CltDZzg"jqTo,Nc
.o6!zvwe94.M53N)vcwpqY.m-d'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putinfoR
esults/putinfoResult2/puthighTemperaturelt/tes
expressiongt
lttesvaluegt'-798393689260.6168270'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putinfoResul
ts/putinfoResult2/putlowTemperaturelt/tesexpre
ssiongt
lttesvaluegt'-48011.87004441791014'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putinfoResul
ts/putinfoResult2/putcurrencyExchangeRatelt/tes
expressiongt
lttesvaluegt'26827.27269456068292'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putinfoResult
s/putinfoResult3/putlocationlt/tesexpressiongt
lttesvaluegt'KyF,(Lkp)
8V6IZ2mKZ3r(HP vlt ,J_ampapos\1je!FQrPltx?
nmx!'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putinfoResults/put
infoResult3/puthighTemperaturelt/tesexpression
gt lttesvaluegt'38622809
64594.875773'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putinfoResults/put
infoResult3/putlowTemperaturelt/tesexpressiongt
lttesvaluegt'-0.000000
0006982971158211722414'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongt./putresponse/putinfoResults/put
infoResult3/putcurrencyExchangeRatelt/tesexpre
ssiongt
lttesvaluegt'-5776696246679644220'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongtcount(./putresponse/puttour
Results/puttourResult)lt/tesexpressiongt
lttesvaluegt'2'lt/tesvaluegt
lt/tesconditiongt
lttesconditiongt
lttesexpressiongtcount(./putresponse/putinfo
Results/putinfoResult)lt/tesexpressiongt
lttesvaluegt'3'lt/tesvaluegt
lt/tesconditiongt
29
????(BPDD)
BPELUnit??????????
  • ltbpelDataDependenciesgt
  • ltnamegttest_dep3lt/namegt
  • ltbaseURLgthttp//localhost7777/wslt/baseURLgt
  • ltdeploymentgt
  • ltput name"BpelTravelService"
    type"fixed"gt
  • ltproperty name"BPRFile"gtbpr/BpelTrave
    lService.bprlt/propertygt
  • ltwsdlgt../wsdl/BpelTravelService.wsdllt/
    wsdlgt
  • lt/putgt
  • ltpartner name"AWSECommerceService
  • wsdl"../wsdl/AWSECommerce
    Service.wsdl"/gt
  • lt/deploymentgt
  • ltoperationSets/gt ? ???????????
  • lt/bpelDataDependenciesgt

30
Operation???(1/2)
  • ltoperationsgt
  • ltoperation id"1" partner"client"
    service"putBpelTravelService
  • port"BpelTravelServicePort"
    operation"request"/gt
  • ltoperation id"2" partner"AWSECommerceService
  • service"nsAWSECommerceService
  • port"AWSECommerceServicePort"
    operation"ItemSearch"/gt
  • lt/operationsgt
  • ltmessagesgt
  • ltmessage id"1" operationId"1"
    messageType"input"/gt
  • ltmessage id"2" operationId"1"
    messageType"output"/gt
  • ltmessage id"3" operationId"2"
    messageType"input"/gt
  • ltmessage id"4" operationId"2"
    messageType"output"/gt
  • lt/messagesgt
  • ltdependencies/gt

31
Operation???(2/2)
  • ltcomplexType name"dependencyType"gt
  • ltsequencegt
  • ltelement name"target" type"string"
    minOccurs"0" /gt
  • ltchoicegt
  • ltelement name"dependsOn"
    type"string" /gt
  • ltelement name"fixedValue"
    type"string" /gt
  • lt/choicegt
  • lt/sequencegt
  • ltattribute name"targetMsgId" type"int" /gt
  • ltattribute name"targetOpId" type"int" /gt
  • ltattribute nametype typetnsdependencyTyp
    eType /gt
  • ltattribute name"dependsOnMsgId"gt
  • ltsimpleTypegtltlist itemType"int"
    /gtlt/simpleTypegt
  • lt/attributegt
  • ltattribute name"iteration" type"int" /gt
  • lt/complexTypegt

substitution ?multiplicity verification
32
??????
  • ltdependency targetMsgId"4" type"multiplicity"gt
  • lttargetgt./nsItemSearchResponse/nsItems/nsIt
    emlt/targetgt
  • ltfixedValuegt2lt/fixedValuegt
  • lt/dependencygt
  • ltdependency targetMsgId"3" dependsOnMsgId"1"
    type"substitution"gt
  • lttargetgt./nsItemSearch/nsRequest/nsTitlelt/t
    argetgt
  • ltdependsOngt/container/putquery/putdestinatio
    nlt/dependsOngt
  • lt/dependencygt

?????????????
?????XPath?????
33
??????
Operation???????????
  • ltdependency targetOpId"3" dependsOnMsgId"8"
    type"multiplicity"gt
  • ltdependsOngt
  • count(/container/wsdl1response/wsdl1sear
    chResult)
  • lt/dependsOngt
  • lt/dependencygt
  • ltdependency targetMsgId"5" dependsOnMsgId"8
  • type"substitution" iteration"2"gt
  • lttargetgt./wsdlquery/wsdltoCurrencylt/targetgt
  • ltdependsOngt
  • /container/wsdl1response/wsdl1searchResu
    lt2/wsdl1currency
  • lt/dependsOngt
  • lt/dependencygt

iteration ????????????????????????
34
?????????
GeoInfo????BPEL??????
ltdependency targetMsgId3 dependsOnMsgId1
typesubstitutiongt lttargetgt./request/searchlt
/targetgt ltdependsOngt./query/keywordlt/dependsOn
gt lt/dependencygt
CurrencyExchange????GeoInfo??????
ltdependency targetMsgId5 dependsOnMsgId4
typesubstitution iteration1gt
lttargetgt./query/tolt/targetgt
ltdependsOngt./response/result2lt/dependsOngt lt/depe
ndencygt
CurrencyExchange??????GeoInfo??????
ltdependency targetOpId3 dependsOnMsgId4
typemultiplicitygt ltdependsOngtcount(./respon
se/result)lt/dependsOngt lt/dependencygt
35
????
36
??????
  • ???????????????????????????????? ?
    ??????????????????????? ???????????????????

37
(No Transcript)
38
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com