The following is an example Apache Axis client calling a promotions web service. The claimCoupon web service is used in this example.

The first step in calling a promotion web service using Apache is to generate the client stubs:

java org.apache.axis.wsdl.WSDL2Java

Next, the following code executes the claimCoupon web service:

ClaimCouponSEIService webService = new ClaimCouponSEIServiceLocator();
ClaimCouponSEI couponStub = webService.getClaimCouponSEIPort();
CouponStub.claimCoupon(myProfileId, someCouponClaimCode);
loading table of contents...