Tags

, , , , , , , , ,

After completing Part 1: Creating and Configuring MDS we will now learn how to use the MDS in our existing projects so we can then share our WSDL, XSD, etc. See the links below to see the other parts:

Let’s make our project SelectDBAdapter start referencing our MDS (Project Artefatos)

Identify the WSDL that the project reference:

Open your composite.xml and double-click on the box selectdbadapte…

Imagem Blog UansCarvalho

See he reference to WSDL SelecDBAdapterBPELProcess.wsdl

Imagem Blog UansCarvalho

Now in its design click on this file (WSDL SelecDBAdapterBPELProcess.wsdland on their menu, click Refactor >> Move

Imagem Blog UansCarvalho

In the screenshot below Location in check until the folder apps/wsdl your Artefatos project and click Save

Imagem Blog UansCarvalho

Do the same now Move to folder apps/xsd your project Artefatos with the file SelecDBAdapterBPELProcess.xsd which is used by this WSDL

Note: The file SelectEmployeeDBAdapter_table.xsd is not possible because it was created automatically when we create our DBAdapter

Imagem Blog UansCarvalho

We will then have the following structure within the apps folder in our project Artefatos (MDS)

Imagem Blog UansCarvalho

Now double-click on your composite.xml

Imagem Blog UansCarvalho

Ignore the error below by clicking OK

Imagem Blog UansCarvalho

Double-click on the box selecdbadapte..

Imagem Blog UansCarvalho

Ignore the error that will appear, and then click OK

In WSDL URL: Type the path below and press the TAB key on your keyboard and click OK

oramds:/apps/wsdl/SelecDBAdapterBPELProcess.wsdl

Imagem Blog UansCarvalho

Now within our WSDL SelecDBAdapterBPELProcess.wsdl in the folder apps/wsdl go Source Import and we will adjust the path of where our XSD

Imagem Blog UansCarvalho

In schemaLocation change the location to oramds:/apps/xsd/SelecDBAdapterBPELProcess.xsd

Imagem Blog UansCarvalho

Now double-click on the SelecDBAdapterBPELProcess.bpel and click Source

Imagem Blog UansCarvalho

In the import line change the location to: location=”oramds:/apps/wsdl/SelecDBAdapterBPELProcess.wsdl” 

Imagem Blog UansCarvalho

Ready … now our SelectDBAdapter project already being referenced by our Artefatos.

We now perform the deploy our MDS and after our project to perform the necessary tests.

Make the first locally deploy its Artefatos (MDS)

In your menu, click Application >> Deploy >> soabundle

Imagem Blog UansCarvalho

On the next screen click Next, leaving marked the default option in the case Deploy to Application Server

Imagem Blog UansCarvalho

Click Next again

Imagem Blog UansCarvalho

In this option, select localhost and click Next

Imagem Blog UansCarvalho

Click Next again

Imagem Blog UansCarvalho

Click Finish

Imagem Blog UansCarvalho

In the guide below its JDeveloper Deployment Log in check appeared the message

—-  Deployment finished.  —-

Ready deploy your MDS was successful.

Now do deploy your project SelecDBAdapter

 

Right-click on your project (SelectDBAdapter) click Deploy > SelectDBAdapter

Imagem Blog UansCarvalho

Click Next

Imagem Blog UansCarvalho

Check the Overwrite any existing composites with the same revision ID and uncheck Keep running instances on after redeployment and click Next

Imagem Blog UansCarvalho

Select the localhost option and click Next

Imagem Blog UansCarvalho

Click Next again

Imagem Blog UansCarvalho

Now click Finish

Imagem Blog UansCarvalho

In the guide below its JDeveloper Deployment Log in check appeared the message

Deployment finished.

Ready deploy your SelectDBAdapter project was successful.

Perform the necessary tests and in case of problems review the steps performed.

Note: I recommend you download and upload your AdminServer
before performing the tests.

 

 

Hugs and to the Next

/:-D