use of sdk.ddf.soap.hello.HelloWorldResponse in project ddf by codice.
the class SoapEndpoint method helloWorldOp.
public HelloWorldResponse helloWorldOp(HelloWorld helloWorld) {
String name = null;
try {
Subject subject = SecurityUtils.getSubject();
name = SubjectUtils.getName(subject);
} catch (Exception e) {
LOGGER.debug("Unable to retrieve user from request.", e);
}
HelloWorldResponse helloWorldResponse = new HelloWorldResponse();
helloWorldResponse.setResult("Hello " + name);
return helloWorldResponse;
}
Aggregations