O'Reilly logo

Developing Enterprise Web Services: An Architect's Guide by James Webber - Ph.D., Sandeep Chatterjee - Ph.D.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Direct Mobile Web Service Access

Mobile applications can directly access Web services without an intermediary proxy server. MobileDirectTestServiceInvoke.java is a simple Java program that uses the InvokeService class we discussed earlier in the chapter and directly calls the ChessMaster Web service without using a proxy server for the invocation.

The Java source code in its entirety for the MobileDirectTestServiceInvoke.java class follows:

/*
 * MobileDirectTestServiceInvoke.java
 */

import java.util.StringTokenizer;

public class MobileDirectTestServiceInvoke
{
   public static void main ( String args[] )
   {

Each of the hard-coded values for the Web service endpoint, method name, and method arguments can be easily changed to build a dynamic mobile ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required