FileDocCategorySizeDatePackage
PingServiceClientMS.javaAPI DocExample2968Tue May 29 16:58:04 BST 2007simple.client

PingServiceClientMS

public class PingServiceClientMS extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

            
            SymmetricFederatedService service = new SymmetricFederatedService();
            IPingService stub = service.getScenario1IssuedTokenOverTransportUsernameOverTransport(); 
                    
            // use static stubs to override endpoint property of WSDL       
            String serviceURL = System.getProperty("service.url");

            System.out.println("Service URL=" + serviceURL);
      
            ((BindingProvider)stub).getRequestContext().
                put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL); 

            stub.ping(new Holder("1"), new Holder("sun"), new Holder("Passed!"));