Call a Secure SOAP Web Service from ADF Application

Advanced Oracle ADF 12c Course Model|Expose Application Module to SOAP Web Service
14 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€67.24
List Price:  €96.07
You save:  €28.82
£55.68
List Price:  £79.55
You save:  £23.86
CA$100.66
List Price:  CA$143.82
You save:  CA$43.15
A$111.82
List Price:  A$159.75
You save:  A$47.93
S$94.88
List Price:  S$135.55
You save:  S$40.66
HK$543.79
List Price:  HK$776.87
You save:  HK$233.08
CHF 62.67
List Price:  CHF 89.54
You save:  CHF 26.86
NOK kr792.28
List Price:  NOK kr1,131.89
You save:  NOK kr339.60
DKK kr501.55
List Price:  DKK kr716.53
You save:  DKK kr214.98
NZ$123.71
List Price:  NZ$176.74
You save:  NZ$53.02
د.إ257.07
List Price:  د.إ367.25
You save:  د.إ110.18
৳8,328.16
List Price:  ৳11,897.89
You save:  ৳3,569.72
₹5,958.01
List Price:  ₹8,511.81
You save:  ₹2,553.80
RM314.25
List Price:  RM448.95
You save:  RM134.70
₦108,236.03
List Price:  ₦154,629.53
You save:  ₦46,393.50
₨19,398.69
List Price:  ₨27,713.60
You save:  ₨8,314.91
฿2,394.21
List Price:  ฿3,420.45
You save:  ฿1,026.24
₺2,465.01
List Price:  ₺3,521.60
You save:  ₺1,056.58
B$426.13
List Price:  B$608.79
You save:  B$182.65
R1,290
List Price:  R1,842.93
You save:  R552.93
Лв131.30
List Price:  Лв187.58
You save:  Лв56.28
₩101,582.03
List Price:  ₩145,123.41
You save:  ₩43,541.37
₪254.54
List Price:  ₪363.65
You save:  ₪109.10
₱4,098.92
List Price:  ₱5,855.86
You save:  ₱1,756.93
¥10,967.38
List Price:  ¥15,668.35
You save:  ¥4,700.97
MX$1,406.50
List Price:  MX$2,009.38
You save:  MX$602.87
QR254.06
List Price:  QR362.96
You save:  QR108.89
P963.25
List Price:  P1,376.14
You save:  P412.88
KSh9,053.20
List Price:  KSh12,933.70
You save:  KSh3,880.50
E£3,568.78
List Price:  E£5,098.48
You save:  E£1,529.69
ብር8,687.63
List Price:  ብር12,411.43
You save:  ብር3,723.80
Kz64,250.82
List Price:  Kz91,790.82
You save:  Kz27,540
CLP$69,297.02
List Price:  CLP$99,000
You save:  CLP$29,702.97
CN¥510.87
List Price:  CN¥729.84
You save:  CN¥218.97
RD$4,243.89
List Price:  RD$6,062.96
You save:  RD$1,819.07
DA9,435.69
List Price:  DA13,480.14
You save:  DA4,044.44
FJ$162.05
List Price:  FJ$231.51
You save:  FJ$69.46
Q536.99
List Price:  Q767.16
You save:  Q230.17
GY$14,580.66
List Price:  GY$20,830.41
You save:  GY$6,249.74
ISK kr9,757.30
List Price:  ISK kr13,939.60
You save:  ISK kr4,182.30
DH701.41
List Price:  DH1,002.06
You save:  DH300.64
L1,291.33
List Price:  L1,844.84
You save:  L553.50
ден4,135.36
List Price:  ден5,907.91
You save:  ден1,772.55
MOP$557.92
List Price:  MOP$797.07
You save:  MOP$239.14
N$1,283.07
List Price:  N$1,833.03
You save:  N$549.96
C$2,564.57
List Price:  C$3,663.83
You save:  C$1,099.26
रु9,479.94
List Price:  रु13,543.35
You save:  रु4,063.41
S/259.51
List Price:  S/370.75
You save:  S/111.23
K282.61
List Price:  K403.75
You save:  K121.13
SAR262.99
List Price:  SAR375.71
You save:  SAR112.72
ZK1,928.73
List Price:  ZK2,755.44
You save:  ZK826.71
L334.62
List Price:  L478.06
You save:  L143.43
Kč1,690.23
List Price:  Kč2,414.72
You save:  Kč724.49
Ft27,882.67
List Price:  Ft39,834.10
You save:  Ft11,951.42
SEK kr772.23
List Price:  SEK kr1,103.23
You save:  SEK kr331
ARS$71,547.27
List Price:  ARS$102,214.77
You save:  ARS$30,667.50
Bs481.59
List Price:  Bs688.02
You save:  Bs206.42
COP$305,890.51
List Price:  COP$437,005.17
You save:  COP$131,114.66
₡35,162.35
List Price:  ₡50,234.08
You save:  ₡15,071.73
L1,769.11
List Price:  L2,527.41
You save:  L758.30
₲543,432.39
List Price:  ₲776,365.26
You save:  ₲232,932.87
$U3,131.93
List Price:  $U4,474.38
You save:  $U1,342.44
zł286.59
List Price:  zł409.44
You save:  zł122.84
Already have an account? Log In

Transcript

Hello, last video, we secure our su boot surface. And we are able to call it in Show View or in this video destroy to call the secure web surface in the ADF application. First I will just check the wisdom is running. Okay. And there is here a policy and security configure to this web surface. As you can see here, our username token.

So I will take copy to this was the URL and I will go to the our ATF application in this time, I will use the same idiot publication which I used to call non secure so which surface but at that time, I need to create another project here which has the code to this which web surface security surface. So to do this, now I have our ADF application and I need to add a new project Which responsible for call a secure web surface in that case I will go here and I write new and in the right project you project Okay in this project it will be custom project okay core secure web surface without any feature now and the breeze finished so it will generate an empty project from this project I will write new from gallery and search for proxy or for client okay.

So we will find here web service client and the proxy as we did last time is okay. Nick is here I will send my wisdom next. Okay, so let's go to the most important one which is the policy next next here Okay, Nick is here's the policy now the policy you try to find the policy and he finds a series one policy exists, which is Ws username token client policy. So I will take this policy which is used to invoke this web service Nick has is okay, here okay next, this is old interface. First after you After you select this user name token policy you should add the username and password first before you finish it. So to do this you can go to override properties.

And from override property here you can create a new key with user name and password and the given in the key name so I will add my username with music And the password is this username and password which used to look into the WebLogic. Alice, if you go to the WebLogic console and security if you add a new user, you can use it here. And this is can call my key any any name my key, okay, and press OK. Press OK. So in the policy, I select my policy and an override durability I create a new key with the username and password. The next next and this is all operation which will be used from the web surface and I will press finish. So again, g developer will generate all three clauses and it will generate a client class who's the main method in case if you want to test subsurface Okay, so you will find here as usual but obon is our client, Java class here.

And this is a project which has all classes which need to go to a secure web surface. Let's have a look in this client, a class which is a developer generated for me to test the web surface, you will find here the zero is use as requested map to both psyche and he said Mikey and you will find here it uses security code, who is his username token security. so here we can try to invoke the web surface and see if it will work or not. So I will add here a try. block and I need to get the medial surface from support So here I need to write soup the empty name and I need to invoke the whip surface to find to get a custom department name and I will give now 10 Let's try to test this and see after we add this key and security to will be able to call the web service or not.

So I will right click, just minimize this and right click and again to exception of a filename extension too long. So I will do again here in the library and the class bus. I will remove This tool and I will add mine and I will re run it again. Here you find out what is administration and is successfully called the security surface. So, all you want to do is just to use this code as it is and use it in the back pain in your PDF application to invoke a secure web surface, so all I will do here okay I will go to my been And this bottom which will get the value Okay I will just comment this okay I can write here cool coal non secure subsurface. Okay, here.

Cool, secure to web service. And I will post here my code which I get it from the client plus which is a developer generated for me automatically I will pause it here. Okay. So what all you need to do Need dependency between this project and this project so that this project can see all libraries and everything from this project you should add dependency between this. So I will open the view controller properties and I will go for dependencies here and I will add that code secure root surface project build output if I do that so, the ViewController project will have access to all object and everything in this project. I will breeze okay and okay so now This secure policy feature should we should be able to recognize the security policy feature or you can or you can do you can go to to the import Here you will find here import security policy feature you can copy it and add it in the import of your back been if it will take time.

Actually it is imported here automatically is the same but she developer maybe need to take time she just right click and make right make to see. So, zero or zero warning is okay, but just still you developers can prove nice It is working fine so now this button which I created last video to call non secure roof surface will call at the security and the call the security surface and Brent sir is out here with us make this the our to be vertical to the result will be under the bottom okay so let's let's now run and test okay so now let's try to enter the department who is number 20 and I will invoke the security of surface and see he is the department administration is appear. Okay but because of we didn't splay the result in the output tickets sold it was display So it is out here and we should actually add can take all this we should add your department ID which is the user interface.

So I will make it exists so I will take the department ID box method and I will play it in the output text and even here we should see the system built output instead of 10 should be like this. It's wrong and retested okay. Now let's try to enter the department 24 ws now, we get the result. So now we are able to invoke a secure web surface in EDF application. In case if you want to change the username and password, which it is used in as a security from the WebLogic. For example, now we configure it to use default username and password in the WebLogic.

And if you add a new username and password or you want to change the password, and you want to make a change in the web service call. So what actually you have to do, you should go to the code security surface here. The common you will find here you're a module service proxy. You can right click, go to properties and you'll find Here client policy configuration. And you find our policy configuration, you can override property. And you can create another new key with a new username and password.

And you should enter the new key name if you if you insert a new key name, and you enter your new user name and password and insert a new key name, you just have to point to this key name here. In the Java code, this is in case if you want to make a change in the username or the password, it's as security to call the web surface. This is how you can call a secured citizen in the application. So from the couple of previous videos, I talked about how you can expose the application module as a soap web surface for the built in operations if you object or new custom, custom method and how you can call this The ADF application and how you can secure your sub surface and how you can coat the secured surface in your ADF application. This is almost a cover all things related to web surface.

From the next video I will talk to the same things which I talked about in the soap web service. I will do the same is the wrist with surface. So see you next activity

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.