FileDocCategorySizeDatePackage
PingServiceClientMS.javaAPI DocExample2953Tue May 29 16:57:56 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.getScenario2IssuedTokenMutualCertificate10(); 
                    
            // 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!"));