public ReceiveMedicalCertificateAnswerResponseType receive(AttributedURIType logicalAddress) {
String SERVICE_ADDRESS = getServiceBaseUrl() + "RecMedCertAnswer/1/rivtabp20";
ReceiveMedicalCertificateAnswerResponderInterface service = new ReceiveMedicalCertificateAnswerResponderService(
createEndpointUrlFromServiceAddress(SERVICE_ADDRESS))
.getReceiveMedicalCertificateAnswerResponderPort();
ReceiveMedicalCertificateAnswerType request = new ReceiveMedicalCertificateAnswerType();
// Simple Question
AnswerFromFkType meddelande = new AnswerFromFkType();
request.setAnswer(meddelande);
meddelande.setAmne(Amnetyp.KONTAKT);
InnehallType fraga = new InnehallType();
fraga.setMeddelandeText("Kontakta mig!");
meddelande.setFraga(fraga);
ReceiveMedicalCertificateAnswerResponseType result = null;
try {
result = service.receiveMedicalCertificateAnswer(logicalAddress, request);
} catch (Exception ex) {
System.out.println("Exception=" + ex.getMessage());
}
return result;
}