Package se.inera.ifv.findallanswers.v1.rivtabp20

Examples of se.inera.ifv.findallanswers.v1.rivtabp20.FindAllAnswersResponderService


    public ReceiveMedicalCertificateAnswerResponseType receive(AttributedURIType logicalAddress) {

        String SERVICE_ADDRESS = getServiceBaseUrl() + "RecMedCertAnswer/1/rivtabp20";
       
        ReceiveMedicalCertificateAnswerResponderInterface service = new ReceiveMedicalCertificateAnswerResponderService(
                createEndpointUrlFromServiceAddress(SERVICE_ADDRESS))
                .getReceiveMedicalCertificateAnswerResponderPort();

        ReceiveMedicalCertificateAnswerType request = new ReceiveMedicalCertificateAnswerType();
View Full Code Here


    }

    public static String callRecMedCertAnswer(String id, String serviceAddress, String logicalAddresss)
            throws Exception {

        ReceiveMedicalCertificateAnswerResponderInterface service = new ReceiveMedicalCertificateAnswerResponderService(
                createEndpointUrlFromServiceAddress(serviceAddress)).getReceiveMedicalCertificateAnswerResponderPort();

        AttributedURIType logicalAddressHeader = new AttributedURIType();
        logicalAddressHeader.setValue(logicalAddresss);
View Full Code Here

    }

    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!");
View Full Code Here

    public ReceiveMedicalCertificateQuestionResponseType receive(AttributedURIType logicalAddress) {

        String SERVICE_ADDRESS = getServiceBaseUrl() + "RecMedCertQuestion/1/rivtabp20";
       
        ReceiveMedicalCertificateQuestionResponderInterface service = new ReceiveMedicalCertificateQuestionResponderService(
                createEndpointUrlFromServiceAddress(SERVICE_ADDRESS))
                .getReceiveMedicalCertificateQuestionResponderPort();

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

        ReceiveMedicalCertificateQuestionResponseType result = null;
        try {
            result = service.receiveMedicalCertificateQuestion(logicalAddress, request);
        } catch (Exception ex) {
            System.out.println("Exception=" + ex.getMessage());
        }
        return result;
    }
View Full Code Here

    }

    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);
View Full Code Here

    public ReceiveMedicalCertificateQuestionResponseType receive(AttributedURIType logicalAddress) {

        String SERVICE_ADDRESS = getServiceBaseUrl() + "RecMedCertQuestion/1/rivtabp20";
       
        ReceiveMedicalCertificateQuestionResponderInterface service = new ReceiveMedicalCertificateQuestionResponderService(
                createEndpointUrlFromServiceAddress(SERVICE_ADDRESS))
                .getReceiveMedicalCertificateQuestionResponderPort();

        ReceiveMedicalCertificateQuestionType request = new ReceiveMedicalCertificateQuestionType();
View Full Code Here

TOP

Related Classes of se.inera.ifv.findallanswers.v1.rivtabp20.FindAllAnswersResponderService

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.