Search in sources :

Example 1 with AddNumbersFault

use of org.apache.cxf.systest.ws.addr_feature.AddNumbersFault in project cxf by apache.

the class AddNumberImpl method execute.

int execute(int number1, int number2) throws AddNumbersFault_Exception {
    if (number1 < 0 || number2 < 0) {
        AddNumbersFault fb = new AddNumbersFault();
        fb.setDetail("Negative numbers cant be added!");
        fb.setMessage("Numbers: " + number1 + ", " + number2);
        throw new AddNumbersFault_Exception(fb.getMessage(), fb);
    }
    return number1 + number2;
}
Also used : AddNumbersFault_Exception(org.apache.cxf.systest.ws.addr_feature.AddNumbersFault_Exception) AddNumbersFault(org.apache.cxf.systest.ws.addr_feature.AddNumbersFault)

Example 2 with AddNumbersFault

use of org.apache.cxf.systest.ws.addr_feature.AddNumbersFault in project cxf by apache.

the class AddNumberImpl method execute.

int execute(int number1, int number2) throws AddNumbersFault_Exception {
    if (number1 < 0 || number2 < 0) {
        AddNumbersFault fb = new AddNumbersFault();
        fb.setDetail("Negative numbers cant be added!");
        fb.setMessage("Numbers: " + number1 + ", " + number2);
        throw new AddNumbersFault_Exception(fb.getMessage(), fb);
    }
    return number1 + number2;
}
Also used : AddNumbersFault_Exception(org.apache.cxf.systest.ws.addr_feature.AddNumbersFault_Exception) AddNumbersFault(org.apache.cxf.systest.ws.addr_feature.AddNumbersFault)

Example 3 with AddNumbersFault

use of org.apache.cxf.systest.ws.addr_feature.AddNumbersFault in project cxf by apache.

the class AddNumberImpl method execute.

int execute(int number1, int number2) throws AddNumbersFault_Exception {
    if (number1 == 5092) {
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
        // ignore
        }
    }
    if (number1 < 0 || number2 < 0) {
        AddNumbersFault fb = new AddNumbersFault();
        fb.setDetail("Negative numbers cant be added!");
        fb.setMessage("Numbers: " + number1 + ", " + number2);
        throw new AddNumbersFault_Exception(fb.getMessage(), fb);
    }
    return number1 + number2;
}
Also used : AddNumbersFault_Exception(org.apache.cxf.systest.ws.addr_feature.AddNumbersFault_Exception) AddNumbersFault(org.apache.cxf.systest.ws.addr_feature.AddNumbersFault)

Example 4 with AddNumbersFault

use of org.apache.cxf.systest.ws.addr_feature.AddNumbersFault in project cxf by apache.

the class AddNumberImpl method execute.

int execute(int number1, int number2) throws AddNumbersFault_Exception {
    if (number1 < 0 || number2 < 0) {
        AddNumbersFault fb = new AddNumbersFault();
        fb.setDetail("Negative numbers cant be added!");
        fb.setMessage("Numbers: " + number1 + ", " + number2);
        throw new AddNumbersFault_Exception(fb.getMessage(), fb);
    }
    return number1 + number2;
}
Also used : AddNumbersFault_Exception(org.apache.cxf.systest.ws.addr_feature.AddNumbersFault_Exception) AddNumbersFault(org.apache.cxf.systest.ws.addr_feature.AddNumbersFault)

Aggregations

AddNumbersFault (org.apache.cxf.systest.ws.addr_feature.AddNumbersFault)4 AddNumbersFault_Exception (org.apache.cxf.systest.ws.addr_feature.AddNumbersFault_Exception)4