Sie sind auf Seite 1von 18

CreatinganOracleServiceBusApplicationwith

OracleJDeveloper12c
BeforeYouBegin
Purpose
ThisOraclebyExample(OBE)tutorialshowsyouhowtodevelopanOracleServiceBusapplication
consumingavirtualizedserviceinOracleSOASuite12c.

TimetoComplete
45minutes

Background
OracleServiceBusisaconfigurationbased,policydrivenenterpriseservicebusdesignedforSOAlifecycle
management.ServiceBusprovidesscalableandreliableserviceorientedintegration,servicemanagement,
andtraditionalmessagebrokeringacrossheterogeneousenvironments.Itcombinesintelligentmessage
brokeringwithroutingandtransformationofmessages,alongwithservicemonitoringandadministration.
VirtualizingaserviceinOracleServiceBusprotectsconsumersofcompositeapplicationsfromtheeffects
ofroutinechangesindeploymentlocationandimplementationupdates.
OracleServiceBusprovidesavirtualizationlayertosupportRepresentationalStateTransfer(REST)web
services,whichmeansthatonlyproxyandbusinessservicesareRESTbased.

Context
ThisisthefourthOBEofaseriesthatshowsyouhowtoinstallOracleSOASuite12c,developandtest
SOAcompositeandOracleServiceBusapplicationsfromthestart,anddeploythesameapplicationsto
OracleSOASuiteCloudService.

WhatDoYouNeed?
OracleSOASuiteQuickStartforDevelopers
(https://docs.oracle.com/middleware/1213/core/SOAQS/integrated.htm#SOAQS206)
BasicknowledgeofOracleJDeveloper
OracleWebLogicServerstartedonyoursystem
TheHelloWorld(files/helloWorld.zip)compositeapplicationdeployedinOracleWebLogicServer

CreatinganOracleServiceBusApplication

1.OpenOracleJDeveloper12c,clicktheApplicationstab,andselectNewApplication.

Descriptionofthisimage(files/t_01_01.txt)

Note:Ifyoualreadyhaveapplicationsopen,thenfromthemainmenu,clickFile,thenNew,andthen
NewApplication.
2.OntheNewGallerypage,selectServiceBusApplicationwithServiceBusProjectandclickOK.

Descriptionofthisimage(files/t_01_02.txt)

3.OntheCreateServiceBusApplicationwithServiceBusProjectStep1of2page,inthe
ApplicationNamefieldenter ServiceBusDemo andclickNext.

Descriptionofthisimage(files/t_01_03.txt)

4.OntheCreateServiceBusApplicationwithServiceBusProjectStep2of2page,intheProject
Namefieldenter SayHelloSB .FromtheProjectFeaturespanel,selectServiceBusandclickFinish.

Descriptionofthisimage(files/t_01_04.txt)

Waituntiltheapplicationcreationandconfigurationarecomplete.
OntheApplicationstab,youcanexaminethecreatedServiceBusDemoapplicationfiles.

Descriptionofthisimage(files/t_01_05.txt)

Note:IftheServiceBusSourcesdirectorydoesn'tappear,verifythatyouareusingtheApplication
View.

Descriptionofthisimage(files/t_01_06.txt)

DefiningaDirectoryStructureandImportingArtifacts

Afteryou'vecreatedtheServiceBusapplicationandproject,youdefineadirectorystructureandimport
artifactslikeWebServicesDefinitionLanguage(WSDL)andXMLSchemaDefinition(XSD)files:

DefineaWSDLDirectory
1.OntheApplicationstab,rightclicktheServiceBusSourcesdirectory,selectNewandthenFrom
Gallery.

Descriptionofthisimage(files/t_02_01_01.txt)

TheNewGallerypageappears.
2.OntheNewGallerypage,selectFolderandclickOK.

Descriptionofthisimage(files/t_02_01_02.txt)

3.OntheCreateFolderpage,intheFolderNamefieldenter WSDLs andclickOK.

Descriptionofthisimage(files/t_02_01_03.txt)

ImportArtifacts

AddingServiceBusComponents

Afteryou'vecreatedtheServiceBusapplicationandproject,youaddtheServiceBuscomponentsto
consumeavirtualizedservice:

CreateaBusinessService
1.OntheApplicationstab,doubleclickSayHelloSB.
2.OntheSayHelloSBpage,draganddropanHTTPadaptercomponentfromtheComponentspanelto
theExternalServicesswimlane(column).

Descriptionofthisimage(files/t_03_01_01.txt)

TheCreateBusinessServicepageappears.
3.OntheCreateBusinessServiceStep1of3page,intheServiceNamefieldenter
SayHelloService andclickNext.

Descriptionofthisimage(files/t_03_01_02.txt)

4.OntheCreateBusinessServiceStep2of3page,selectWSDLandclicktheBrowseWSDLsicon.

Descriptionofthisimage(files/t_03_01_03.txt)

TheSelectWSDLpageappears.

5.OntheSelectWSDLpage,clickApplication.ExpandSayHelloSBandWSDLs,select
makegreeting_client_ep.wsdlandthenclickOK.

Descriptionofthisimage(files/t_03_01_04.txt)

6.OntheCreateBusinessServiceStep2of3page,acceptthedefaultvaluesandclickNext.

Descriptionofthisimage(files/t_03_01_05.txt)

7.OntheCreateBusinessServiceStep3of3page,acceptthedefaultvaluesandclickFinish.

Descriptionofthisimage(files/t_03_01_06.txt)

AddaPipeline

ExposingaRESTService

Inthissection,youexposetheexistingSimpleObjectAccessProtocol(SOAP)serviceasaRESTservice.
1.OntheSayHelloSBpage,rightclickSayHelloPipelineandselectExposeAsREST.

Descriptionofthisimage(files/t_04_01.txt)

2.OntheCreateRESTbindingpage,intheNamefieldenter SayHelloREST ,andselecttheresource


pathelement.UndertheOperationBindingspanel,selectprocess,andclicktheEditandoperation
bindingicons.

Descriptionofthisimage(files/t_04_02.txt)

3.OntheRESTOperationBindingpage,enteraDescription.OntheRequesttab,undertheURI
Parameterspanel,renametheparameterinputto your_name.

Descriptionofthisimage(files/t_04_03.txt)

4.OntheRESTOperationBindingpage,clicktheResponsetab,selectJSONandunselectXML,then
clickOK.

Descriptionofthisimage(files/t_04_04.txt)

5.OntheCreateRESTbindingpage,clickOK.

Descriptionofthisimage(files/t_04_05.txt)

6.VerifythatyourSayHelloSBpageisupdatedwiththeSayHelloRESTproxyservice:

Descriptionofthisimage(files/t_04_06.txt)

TestingServicesintheLocalEnvironment

Afteryou'veaddedtheServiceBuscomponents,youtesttheSOAPandRESTProxyServices:

TestaProxyService
1.OntheSayHelloSBpage,rightclicktheSayHelloPipelineProxyServiceandselectRun.

Descriptionofthisimage(files/t_05_01_01.txt)

TheOracleServiceBusConsole12cpageappears.
Note:IfyouforgottostartOracleWebLogicServer,thenthisactionstartstheserverautomatically.
2.OntheFormtab,replacethestringfromtheXMLpayloadwithyournameandclickExecute.

Descriptionofthisimage(files/t_05_01_02.txt)

3.IntheOracleServiceBusConsole12cpage,scrolldowntotheResponseDocumentpaneland
verifythattheresultcontainsyourname.

Descriptionofthisimage(files/t_05_01_03.txt)

TestaRESTService

WanttoLearnMore?
PerformingaQuickStartInstallationofOracleSOASuite12c(http://www
content.oracle.com/webfolder/technetwork/tutorials/obe/cloud/sscs/SOA12c_QSInstallation/soaquickstart
installation.html)
IntheOracleHelpCenter:CreatingServiceBusApplicationsandProjectsinJDeveloper
(https://docs.oracle.com/middleware/1213/osb/develop/GUID669A9F6FEE55499AAF33
D2FF7DB651B4.htm#OSBDV88318)
IntheOracleHelpCenter:DevelopingOracleServiceBusApplicationsinJDeveloper
(https://docs.oracle.com/middleware/1213/osb/develop/GUID5C9994127BC74021882C
5CCACD60A30E.htm#OSBDV87879)

IntheOracleLearningLibrary:RESTEnablingSOA(https://apexapps.oracle.com/pls/apex/f?
p=44785:24:0::::P24_CONTENT_ID,P24_PREV_PAGE:11011,1)

Credits

LeadCurriculumDeveloper:ArmandoHernandez

AboutOracle(http://www.oracle.com/corporate/index.html)
LegalNotices(http://www.oracle.com/us/legal/index.html)

ContactUs(http://www.oracle.com/us/corporate/contact/index.html)
TermsofUse(http://www.oracle.com/us/legal/terms/index.html)

YourPrivacyRights(http://www.oracle.com/us/legal/privacy/index.html)
Copyright2015,Oracleand/oritsaffiliates.Allrightsreserved.

Das könnte Ihnen auch gefallen