Proxies and Skeltons
Proxies and Skeltons
PROXY
It forward a client remote calling to skeletons, which forward them on to the suitable server
objects
SKELETON
Skeletons return the results of server method invocation to client via stubs
PROXY TYPES
1. Stub Proxy
The purpose of the stub is to convert the java code into network oriented stream (Marshaling)
2. Skeleton Proxy
1
| SOA 22 December 2015 | 5:38:10 PM |
Purpose:
Network
2
| SOA 22 December 2015 | 5:38:10 PM |
Service contract is a tool that is used to generate service proxies and service skeletons
based on the WSDL
Service proxies are programming language used to define the new services
Service skeletons are programming language classes that give the framework for
implementing new services
(calc.java)
The code calc.java is a java service proxy class that models the CalcService and gives
methods that model the operations of the CalcService
2. Java Service Skeleton Class
(calcImp.java)
public class calcImp
{
public int add(int x, int y)
{
return(x+y);
3
| SOA 22 December 2015 | 5:38:10 PM |
}
public int mul(int x, int y)
{
return(x*y);
}
}
calcImp.java
It gives the framework for implementing the CalcService