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
€64.51
List Price:  €92.16
You save:  €27.65
£55.26
List Price:  £78.95
You save:  £23.68
CA$95.77
List Price:  CA$136.82
You save:  CA$41.05
A$105.61
List Price:  A$150.88
You save:  A$45.26
S$94.49
List Price:  S$134.99
You save:  S$40.50
HK$546.56
List Price:  HK$780.84
You save:  HK$234.27
CHF 64.51
List Price:  CHF 92.16
You save:  CHF 27.65
NOK kr745.92
List Price:  NOK kr1,065.65
You save:  NOK kr319.72
DKK kr481.76
List Price:  DKK kr688.26
You save:  DKK kr206.50
NZ$114.32
List Price:  NZ$163.32
You save:  NZ$49
د.إ257.07
List Price:  د.إ367.26
You save:  د.إ110.19
৳8,200.05
List Price:  ৳11,714.86
You save:  ৳3,514.80
₹5,813.28
List Price:  ₹8,305.04
You save:  ₹2,491.76
RM329.26
List Price:  RM470.40
You save:  RM141.13
₦102,276.30
List Price:  ₦146,115.27
You save:  ₦43,838.96
₨19,447.66
List Price:  ₨27,783.57
You save:  ₨8,335.90
฿2,561.05
List Price:  ฿3,658.80
You save:  ฿1,097.75
₺2,253.54
List Price:  ₺3,219.48
You save:  ₺965.94
B$361.65
List Price:  B$516.66
You save:  B$155.01
R1,289.17
List Price:  R1,841.76
You save:  R552.58
Лв126.36
List Price:  Лв180.52
You save:  Лв54.16
₩95,655.33
List Price:  ₩136,656.33
You save:  ₩41,001
₪256.70
List Price:  ₪366.73
You save:  ₪110.03
₱4,073.73
List Price:  ₱5,819.86
You save:  ₱1,746.13
¥10,984.57
List Price:  ¥15,692.92
You save:  ¥4,708.34
MX$1,168.81
List Price:  MX$1,669.81
You save:  MX$500.99
QR254.92
List Price:  QR364.18
You save:  QR109.26
P949.81
List Price:  P1,356.93
You save:  P407.12
KSh9,122.85
List Price:  KSh13,033.20
You save:  KSh3,910.35
E£3,298.27
List Price:  E£4,712.01
You save:  E£1,413.74
ብር4,016.76
List Price:  ብር5,738.47
You save:  ብር1,721.71
Kz59,376.64
List Price:  Kz84,827.41
You save:  Kz25,450.77
CLP$63,605.87
List Price:  CLP$90,869.43
You save:  CLP$27,263.55
CN¥497.66
List Price:  CN¥710.97
You save:  CN¥213.31
RD$4,116.79
List Price:  RD$5,881.38
You save:  RD$1,764.59
DA9,406.51
List Price:  DA13,438.44
You save:  DA4,031.93
FJ$158.71
List Price:  FJ$226.74
You save:  FJ$68.02
Q543.03
List Price:  Q775.80
You save:  Q232.76
GY$14,626.09
List Price:  GY$20,895.31
You save:  GY$6,269.22
ISK kr9,653.57
List Price:  ISK kr13,791.40
You save:  ISK kr4,137.83
DH697.32
List Price:  DH996.21
You save:  DH298.89
L1,240.19
List Price:  L1,771.78
You save:  L531.58
ден3,973.31
List Price:  ден5,676.40
You save:  ден1,703.09
MOP$562.57
List Price:  MOP$803.71
You save:  MOP$241.13
N$1,284.81
List Price:  N$1,835.52
You save:  N$550.71
C$2,572.99
List Price:  C$3,675.86
You save:  C$1,102.87
रु9,296.83
List Price:  रु13,281.76
You save:  रु3,984.92
S/261.34
List Price:  S/373.37
You save:  S/112.02
K271.67
List Price:  K388.13
You save:  K116.45
SAR262.50
List Price:  SAR375.02
You save:  SAR112.51
ZK1,865.84
List Price:  ZK2,665.60
You save:  ZK799.76
L320.98
List Price:  L458.57
You save:  L137.58
Kč1,589.64
List Price:  Kč2,271.01
You save:  Kč681.37
Ft24,759.44
List Price:  Ft35,372.15
You save:  Ft10,612.70
SEK kr760.40
List Price:  SEK kr1,086.34
You save:  SEK kr325.93
ARS$62,235.70
List Price:  ARS$88,911.95
You save:  ARS$26,676.25
Bs483.06
List Price:  Bs690.12
You save:  Bs207.05
COP$270,493.43
List Price:  COP$386,435.76
You save:  COP$115,942.32
₡35,841.38
List Price:  ₡51,204.17
You save:  ₡15,362.78
L1,727.58
List Price:  L2,468.08
You save:  L740.49
₲525,820.15
List Price:  ₲751,203.84
You save:  ₲225,383.69
$U2,694.45
List Price:  $U3,849.38
You save:  $U1,154.93
zł274.83
List Price:  zł392.63
You save:  zł117.80
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.