Download - Web Serviced
-
8/12/2019 Web Serviced
1/27
1. WebService Module\
The Web Serviceapplication is a collection of services that accelerate the use of commonfunctionalities of integration-based business capabilities.
Step1: Go to File>New>Other
Step2: Go to WebLogicWebService>WebServiceProjectProvide Project name and check add to EAR. Provide EAR name. Click Finish.
-
8/12/2019 Web Serviced
2/27
Step3: Right Click on the WebService Project then New>other>WSDL
-
8/12/2019 Web Serviced
3/27
Step4: In the active window select WSDL and click on next
-
8/12/2019 Web Serviced
4/27
Step5: Expand WebService Project > select WebContent > provide WSDL name and click on next
-
8/12/2019 Web Serviced
5/27
Step6: In the Target namespace provide package name and click on finish
-
8/12/2019 Web Serviced
6/27
Step7:Now WebService Looks like this
-
8/12/2019 Web Serviced
7/27
Step8: Double click on operation name
Step9: Type the proper operation name and click on the right arrow to edit input parameters
Step10: Double click on the element name and type proper element name> select new from the dropdown
-
8/12/2019 Web Serviced
8/27
-
8/12/2019 Web Serviced
9/27
Step13: Click on Design View
Step14: WSDL now looks like the following
-
8/12/2019 Web Serviced
10/27
Step15: Right click on AddCustDetailsType > Add Element
Step16: Provide Element Name
-
8/12/2019 Web Serviced
11/27
Step17: Add all required element by repeating step 15 and 16
Step18:Now Right Click on (AddCustomerType) > Add Element
Step19: Provide the next element name in similar way
-
8/12/2019 Web Serviced
12/27
Step20: Add elements in similar way
Step21: Add all required types and elements in same way
-
8/12/2019 Web Serviced
13/27
-
8/12/2019 Web Serviced
14/27
Step23: Add element and element name for response
Step24: Right click on the Customer Operation to add Delete Operation
Step25: Add Delete Operation
Step26: Provide required request parameters
Step27: Provide required response parameter
-
8/12/2019 Web Serviced
15/27
Step28: Right click on the Binding icon> Generate Binding Content..
Step29: Check Overwrite existing binding information > finish and save the changes
-
8/12/2019 Web Serviced
16/27
1.1WSDL Source View
-
8/12/2019 Web Serviced
17/27
-
8/12/2019 Web Serviced
18/27
-
8/12/2019 Web Serviced
19/27
1.2 Add fault in WSDL
Add fault in WSDL to handle exceptions.
Step1: Right click > Add Fault
Step2: WSDL looks like this
Step3: Go to source view and replace the left hand side code with right hand side this makes theexception type as customer profile fault
-
8/12/2019 Web Serviced
20/27
Step4: WSDL looks like this
Step5: Similar way add another fault System Fault from source view
Step6: Similar way add faults to delete operation also
-
8/12/2019 Web Serviced
21/27
Step7: Save the configuration changes
-
8/12/2019 Web Serviced
22/27
1.3 WSDL to java
Now a java class has to be created from WSDL.
Step1: Right click on WSDL> new>other
-
8/12/2019 Web Serviced
23/27
Step2: WebLogic Web Service > Web Service from WSDL > next
-
8/12/2019 Web Serviced
24/27
Step3: Select CustomerSolution.wsdl > next
-
8/12/2019 Web Serviced
25/27
Step4: Check keep generated Ant script > finish
-
8/12/2019 Web Serviced
26/27
One classCustomerSolution_CustomerSolutionSOAPImpl.java iscreated inside thepackage, whose name was provided during wsdl creation. One jar CustomerSolution_wsdl.jaralsocreated inside WebContent>WEB-INF>lib.
-
8/12/2019 Web Serviced
27/27