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());