SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 160 | Next

Binildas A Christudas

"Service-Oriented Java Business Integration"

IOrder.class: This is the service interface and is web service annotated. Since
all methods in the interface get exported by default, you don't need to define
the @WebMethod annotation in the interface. Annotations like @WebResult
too, are totally optional and let you control how the WSDL looks like.
The service interface, IOrder.class, is shown in the following code:
import javax.jws.WebService;
import javax.jws.WebResult;
@WebService
public interface IOrder
{
@WebResult(name="PurchaseOrderType")
public PurchaseOrderType getPurchaseOrderType(String orderId);
}
Chapter 5
[ 111 ]
2. OrderManagerImpl.class: As you can see here, OrderManagerImpl is the
service implementation class and is web service annotated. We use the
@WebService annotation with some parameters like web service name as that
is used on the client-side to decorate the class and tell the jsr181 processor
that there is an interface to export the web service methods.
import javax.jws.WebService; rvice; vice;
@WebService(serviceName = "OrderService",
endpointInterface = "IOrder")
public class OrderManagerImpl implements IOrder
{
public PurchaseOrderType getPurchaseOrderType(String orderId)
{
PurchaseOrderType po = new PurchaseOrderType();
po.


Pages:
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6