November 2003
Intermediate to advanced
592 pages
16h 2m
English
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 ...
Read now
Unlock full access