}
public static String callRecMedCertQuestion(String id, String serviceAddress, String logicalAddresss)
throws Exception {
ReceiveMedicalCertificateQuestionResponderInterface service = new ReceiveMedicalCertificateQuestionResponderService(
createEndpointUrlFromServiceAddress(serviceAddress))
.getReceiveMedicalCertificateQuestionResponderPort();
AttributedURIType logicalAddressHeader = new AttributedURIType();
logicalAddressHeader.setValue(logicalAddresss);
ReceiveMedicalCertificateQuestionType request = new ReceiveMedicalCertificateQuestionType();
// Simple Question
QuestionFromFkType meddelande = new QuestionFromFkType();
request.setQuestion(meddelande);
meddelande.setAmne(Amnetyp.KONTAKT);
InnehallType fraga = new InnehallType();
fraga.setMeddelandeText("Kontakta mig!");
meddelande.setFraga(fraga);
try {
ReceiveMedicalCertificateQuestionResponseType result = service.receiveMedicalCertificateQuestion(logicalAddressHeader, request);
if (result != null) {
return ("Result OK");
} else {
return ("Result Error!");