Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.

Integrating with Web Services


In this chapter, we use a third-party web service to do the credit card validation. This credit card validation service was found (after a quick search) on the Internet, and it is suitable for our example. The web service is hosted by a company called Hypercom (http://www.hypercom.com).

Developing the Web Service Client

The service is a standard web service with a WSDL description, which makes it easy for us to integrate it into our application. The WSDL is located at http://www.tpisoft.com/smartpayments/validate.asmx?WSDL. As is apparent from the URL, the service is not Java based. In the web services world, the implementation does not matter as long as the interfaces are standard.

We use built-in tools of Eclipse to generate client-side code for the credit card validator web service.

  1. 1. Web services are created using wizards in the Eclipse IDE. Select project DWREasyAjax, and in the File | New | Other menu, there is a wizard to create the Web Service Client...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
DWR Java AJAX Applications
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon