Package samplews

Examples of samplews.SignClient


  public static void main(String[] args) {
    try {
      String serviceEPR = Path.getString("SignClient.27") + NetworkUtils.getLocalHostname() //$NON-NLS-1$
          + Path.getString("SignClient.28"); //$NON-NLS-1$
      EndpointReference epr = new EndpointReference(serviceEPR);
      SignClient client = new SignClient(epr, wso2wsasHome);
     
      String strRequest = Messages.getString("SignClient.17"); //$NON-NLS-1$
      int scenarioNumber = 2;
     
      client.configureSecurity(scenarioNumber);

      // call AddToString and print response
      SampleServiceStub.AddToStringResponse res1 = client
          .sendRequestString(strRequest);
      System.out.println(Messages.getString("SignClient.18") //$NON-NLS-1$
          + res1.get_return() + "\n"); //$NON-NLS-1$
    } catch (Throwable e) {
      System.out.println(e.getMessage());
View Full Code Here

TOP

Related Classes of samplews.SignClient

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.