import com.aol.fog.fr.objects.*; import javax.xml.rpc.Stub; import java.lang.reflect.*; public class FogWSClient { public static void main(String[] args) { String endpointAddress = "http://ymir.office.compuserve.com:9221/axis/services/urn:FadFogwService"; Stub stub; FadFogwService myWebService = null; try { stub = createProxy(); stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, endpointAddress); myWebService = (FadFogwService) stub; System.out.println("Successfully created Proxy of FOG WebService"); } catch (Exception ex) { System.out.println ("Problems in creating Proxies"); } try { PreQualifyRequest preQualifyRequest = new PreQualifyRequest(); preQualifyRequest.setMaid (1234); preQualifyRequest.setPhone("0172250969"); preQualifyRequest.setZip("75013"); System.out.println ("Zip Code of Request : "+preQualifyRequest.getZip()); System.out.println ("Phone Number of Request : "+preQualifyRequest.getPhone()); PreQualifyResponse res = myWebService.preQualify(preQualifyRequest); System.out.println ("Response code : "+res.getCode()); System.out.println ("Response Description : "+res.getDescription()); } catch (Exception exc) { System.out.println ("Error while calling the methods on FOG Web Service"); exc.printStackTrace(); } } private static Stub createProxy() throws Exception { try { return (Stub) (new FadFogwServiceService_Impl().getUrnFadFogwService()); } catch (Exception ex) { throw new Exception (ex.toString()); } } }