Hello, in this video, I will show you how you can expose your application module as a sub surface if you have your own model, which has some view object entity object and application modules and you need to access a some operation from outside from any other application like integration between other application and you need to expose some operation or some methods or as a subsurface as I as I told you before, a 02 type of operation, there are operation coming with is with some operation is built in with a view object itself. Like if you want to add a new department or delete or of course, this view object should be based on entity. So, these are built in operation and you can write your own method as well, in this video now, I will show you how you can expose application module to expose the built in operation in the view object.
So, now we will open the application module in the data model you will find zero or one instance of the view object in the data in the in the application module exists called departmental view one. So, in that case we can expose the built in operation in the department or the view as to which surface to do this you can go to the web surface there are two here I will police at this is a rough surface name if you want to change the name I keep it by default knickers. Next, here if you have your custom method, you will find it here but in the next video I will show you how you can create custom method method but for now we need to expose the built in operation in the view object. So I will press next here, it will ask you about this With the surface view in essence, so, this is only one view object available.
So, if you which is the bottom into view one okay I need to use to expose the built in operation of this view. So, once you selected select is that is the view object you will find here it's cooperation, a built in operation is here So, you can decide which operation you want subsurface will be export So, now we can make, create, you can delete get by key can find So, all this operation we can expose it okay so Next and Finish. So, this is simple and easy how you can expose a built in operation in a specific view object as a tube surface. Okay, so let's save all. So, you can find his application module This is the view instance department and this is operation which we need to expose. Here you will find your wisdom if you want to have a look in the in the wizard says this is surface wisdom.
Okay, so let's now try to run this whoops surface and test it to run this web surface for test, who can expense application module surface interface you will find an inbuilt class module surface and we'll just right click and press run. Okay, as you can see here is a deployment of or testing Is this web surface we can do it here boy, because this is actually a bug in this gdb server version two will be 213 you will find here file name or extension is too long. So you can't test this locally unless you make some workaround. Here in Oracle Support z reported it as a bug which is has the same filename oxygen's too long. This is when you need to test Jax Ws web service locally because there are too many JAR files exist when you try to invoke a Jax Ws client. If you have a look here in the library which we need we use in the in the library class pass.
If you have a look in Jax Ws web surface view, you will find all these short files is loaded in a class pass wants We run it locally and it is too long. So, Oracle Support workaround solution here that the just tell us that we can create our own library and remove the default one. So, I will show you how you can do this work around. So, in the tool here, I will create manage library I will go to the Manage libraries, tool, manage libraries, and I will create a new library. So library name, I will call it my Jax Ws client. And inside this library I will add to a jar file.
So I will add one JAR file in the in the boss which is Azure developer is installed if you see here it is in the GW store directory. So to go go to the wl server server live with logic. So, we need to add WebLogic to JAR file. So you will find here WebLogic dot JAR file I will add it here and I will add another file as broker support say we need to add this jar file which is exist in the Oracle common module internal. So, let us go to Oracle common module internal feature and we need to add this short file as well and Bruce open and okay so we add one called my Jax Ws client Oregon say we need to add another one call my Jax Ws web surface so let's add this as well. I would add new and this is only has one JAR file which is with logical jar.
So let's back again to the notion of jar. Okay, okay so now we created my Jackson displaying my Ws web surface and the press OK. Then I will go to the project property and I need to remove this Jax Ws which has a lot of Java file I do want it, I will remove it and I will add library and I will select my tool library. My Jax Ws claim my Jax RS web service. This is in the library and Nicholas buss and Bruce okay. Okay, so let's now try to run it again and see if it will work. Okay, so now it is running correctly and it is deployed correctly.
You will need to test it. And you will find the target URL here. You can take this URL and cigs wisdom in your browser. So just opens a browser and what this question mark W is the and this is your wisdom. So, you can call this wisdom from anywhere from your ADF application from a developer from any web service client like soap you all. So let us now try to test it in the soap UI.
And in the next video, I will add, I can take it from the jdeveloper and I will show you how you can call this web surface in your ADF application. So now it has this this wisdom I will open soap UI. I will go file new project called call my show I will add this is me we call my ex replicant Keisha Mobutu and this is my wisdom and a bliss okay. So you will find here a generates all operation which we define, create, department, delete department find department and get department view. So for example it is this to this get department here, if I say I need to get department number 10 you'll find here number 10 okay department 100 run gives you a bottom in 100. If you want to create new department, it's open to requests of security operation.
So now in jQuery to operation I need to add department. For example five 550 name is My test the from shore manager unit manager now on to vacation just missed it. So it is should be now is this department is created if you go to the database department that you'll find here 550 my test department is security ated so all operation notes is fine we can delete it. This is delete this department towards the mint 450 No need to add any more and run this refresh and go So now we exposed application you exposed one of the view object operation, and we can call it from the soap UI. Nick is to visit you, I will show you how you can create a custom method and how you can call this to boob surface in another ETF application. So see you next video.