javax.xml.ws.FaultAction Java Examples

The following examples show how to use javax.xml.ws.FaultAction. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Encryption.java    From fido2 with GNU Lesser General Public License v2.1 6 votes vote down vote up
/**
 * 
 * @param password
 * @param relayencoding
 * @param relayurl
 * @param relayprotocol
 * @param relaycontent
 * @param did
 * @param username
 * @return
 *     returns java.lang.String
 * @throws StrongKeyLiteException_Exception
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "relay", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.Relay")
@ResponseWrapper(localName = "relayResponse", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.RelayResponse")
@Action(input = "http://web.strongkeylite.strongauth.com/Encryption/relayRequest", output = "http://web.strongkeylite.strongauth.com/Encryption/relayResponse", fault = {
    @FaultAction(className = StrongKeyLiteException_Exception.class, value = "http://web.strongkeylite.strongauth.com/Encryption/relay/Fault/StrongKeyLiteException")
})
public String relay(
    @WebParam(name = "did", targetNamespace = "")
    Long did,
    @WebParam(name = "username", targetNamespace = "")
    String username,
    @WebParam(name = "password", targetNamespace = "")
    String password,
    @WebParam(name = "relayurl", targetNamespace = "")
    String relayurl,
    @WebParam(name = "relayprotocol", targetNamespace = "")
    String relayprotocol,
    @WebParam(name = "relayencoding", targetNamespace = "")
    String relayencoding,
    @WebParam(name = "relaycontent", targetNamespace = "")
    String relaycontent)
    throws StrongKeyLiteException_Exception
;
 
Example #2
Source File: JAnnotationTest.java    From cxf with Apache License 2.0 6 votes vote down vote up
@Test
public void testCombination() {
    JAnnotation annotation = new JAnnotation(Action.class);
    annotation.addElement(new JAnnotationElement("input", "3in"));
    annotation.addElement(new JAnnotationElement("output", "3out"));


    JAnnotation faultAction = new JAnnotation(FaultAction.class);
    faultAction.addElement(new JAnnotationElement("className", A.class));
    faultAction.addElement(new JAnnotationElement("value", "3fault"));

    annotation.addElement(new JAnnotationElement("fault",
                                                        Arrays.asList(new JAnnotation[]{faultAction})));

    String expected = "@Action(input = \"3in\", output = \"3out\", "
        + "fault = {@FaultAction(className = A.class, value = \"3fault\")})";
    assertEquals(expected, annotation.toString());

    assertTrue(annotation.getImports().contains("javax.xml.ws.FaultAction"));
    assertTrue(annotation.getImports().contains("javax.xml.ws.Action"));
    assertTrue(annotation.getImports().contains("org.apache.cxf.tools.common.model.A"));
}
 
Example #3
Source File: W3CAddressingWSDLGeneratorExtension.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
@Override
public void addOperationFaultExtension(TypedXmlWriter fault, JavaMethod method, CheckedException ce) {
    if (!enabled)
        return;

    Action a = method.getSEIMethod().getAnnotation(Action.class);
    Class[] exs = method.getSEIMethod().getExceptionTypes();

    if (exs == null)
        return;

    if (a != null && a.fault() != null) {
        for (FaultAction fa : a.fault()) {
            if (fa.className().getName().equals(ce.getExceptionClass().getName())) {
                if (fa.value().equals(""))
                    return;

                addAttribute(fault, fa.value());
                return;
            }
        }
    }
}
 
Example #4
Source File: W3CAddressingWSDLGeneratorExtension.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
@Override
public void addOperationFaultExtension(TypedXmlWriter fault, JavaMethod method, CheckedException ce) {
    if (!enabled)
        return;

    Action a = method.getSEIMethod().getAnnotation(Action.class);
    Class[] exs = method.getSEIMethod().getExceptionTypes();

    if (exs == null)
        return;

    if (a != null && a.fault() != null) {
        for (FaultAction fa : a.fault()) {
            if (fa.className().getName().equals(ce.getExceptionClass().getName())) {
                if (fa.value().equals(""))
                    return;

                addAttribute(fault, fa.value());
                return;
            }
        }
    }
}
 
Example #5
Source File: W3CAddressingWSDLGeneratorExtension.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
@Override
public void addOperationFaultExtension(TypedXmlWriter fault, JavaMethod method, CheckedException ce) {
    if (!enabled)
        return;

    Action a = method.getSEIMethod().getAnnotation(Action.class);
    Class[] exs = method.getSEIMethod().getExceptionTypes();

    if (exs == null)
        return;

    if (a != null && a.fault() != null) {
        for (FaultAction fa : a.fault()) {
            if (fa.className().getName().equals(ce.getExceptionClass().getName())) {
                if (fa.value().equals(""))
                    return;

                addAttribute(fault, fa.value());
                return;
            }
        }
    }
}
 
Example #6
Source File: W3CAddressingWSDLGeneratorExtension.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
@Override
public void addOperationFaultExtension(TypedXmlWriter fault, JavaMethod method, CheckedException ce) {
    if (!enabled)
        return;

    Action a = method.getSEIMethod().getAnnotation(Action.class);
    Class[] exs = method.getSEIMethod().getExceptionTypes();

    if (exs == null)
        return;

    if (a != null && a.fault() != null) {
        for (FaultAction fa : a.fault()) {
            if (fa.className().getName().equals(ce.getExceptionClass().getName())) {
                if (fa.value().equals(""))
                    return;

                addAttribute(fault, fa.value());
                return;
            }
        }
    }
}
 
Example #7
Source File: W3CAddressingWSDLGeneratorExtension.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
@Override
public void addOperationFaultExtension(TypedXmlWriter fault, JavaMethod method, CheckedException ce) {
    if (!enabled)
        return;

    Action a = method.getSEIMethod().getAnnotation(Action.class);
    Class[] exs = method.getSEIMethod().getExceptionTypes();

    if (exs == null)
        return;

    if (a != null && a.fault() != null) {
        for (FaultAction fa : a.fault()) {
            if (fa.className().getName().equals(ce.getExceptionClass().getName())) {
                if (fa.value().equals(""))
                    return;

                addAttribute(fault, fa.value());
                return;
            }
        }
    }
}
 
Example #8
Source File: W3CAddressingWSDLGeneratorExtension.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
@Override
public void addOperationFaultExtension(TypedXmlWriter fault, JavaMethod method, CheckedException ce) {
    if (!enabled)
        return;

    Action a = method.getSEIMethod().getAnnotation(Action.class);
    Class[] exs = method.getSEIMethod().getExceptionTypes();

    if (exs == null)
        return;

    if (a != null && a.fault() != null) {
        for (FaultAction fa : a.fault()) {
            if (fa.className().getName().equals(ce.getExceptionClass().getName())) {
                if (fa.value().equals(""))
                    return;

                addAttribute(fault, fa.value());
                return;
            }
        }
    }
}
 
Example #9
Source File: W3CAddressingWSDLGeneratorExtension.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
@Override
public void addOperationFaultExtension(TypedXmlWriter fault, JavaMethod method, CheckedException ce) {
    if (!enabled)
        return;

    Action a = method.getSEIMethod().getAnnotation(Action.class);
    Class[] exs = method.getSEIMethod().getExceptionTypes();

    if (exs == null)
        return;

    if (a != null && a.fault() != null) {
        for (FaultAction fa : a.fault()) {
            if (fa.className().getName().equals(ce.getExceptionClass().getName())) {
                if (fa.value().equals(""))
                    return;

                addAttribute(fault, fa.value());
                return;
            }
        }
    }
}
 
Example #10
Source File: W3CAddressingWSDLGeneratorExtension.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
@Override
public void addOperationFaultExtension(TypedXmlWriter fault, JavaMethod method, CheckedException ce) {
    if (!enabled)
        return;

    Action a = method.getSEIMethod().getAnnotation(Action.class);
    Class[] exs = method.getSEIMethod().getExceptionTypes();

    if (exs == null)
        return;

    if (a != null && a.fault() != null) {
        for (FaultAction fa : a.fault()) {
            if (fa.className().getName().equals(ce.getExceptionClass().getName())) {
                if (fa.value().equals(""))
                    return;

                addAttribute(fault, fa.value());
                return;
            }
        }
    }
}
 
Example #11
Source File: Encryption.java    From fido2 with GNU Lesser General Public License v2.1 6 votes vote down vote up
/**
 * 
 * @param password
 * @param plaintext
 * @param did
 * @param username
 * @return
 *     returns java.lang.String
 * @throws StrongKeyLiteException_Exception
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "search", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.Search")
@ResponseWrapper(localName = "searchResponse", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.SearchResponse")
@Action(input = "http://web.strongkeylite.strongauth.com/Encryption/searchRequest", output = "http://web.strongkeylite.strongauth.com/Encryption/searchResponse", fault = {
    @FaultAction(className = StrongKeyLiteException_Exception.class, value = "http://web.strongkeylite.strongauth.com/Encryption/search/Fault/StrongKeyLiteException")
})
public String search(
    @WebParam(name = "did", targetNamespace = "")
    Long did,
    @WebParam(name = "username", targetNamespace = "")
    String username,
    @WebParam(name = "password", targetNamespace = "")
    String password,
    @WebParam(name = "plaintext", targetNamespace = "")
    String plaintext)
    throws StrongKeyLiteException_Exception
;
 
Example #12
Source File: Encryption.java    From fido2 with GNU Lesser General Public License v2.1 6 votes vote down vote up
/**
 * 
 * @param password
 * @param did
 * @param username
 * @param token
 * @return
 *     returns java.lang.String
 * @throws StrongKeyLiteException_Exception
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "decrypt", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.Decrypt")
@ResponseWrapper(localName = "decryptResponse", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.DecryptResponse")
@Action(input = "http://web.strongkeylite.strongauth.com/Encryption/decryptRequest", output = "http://web.strongkeylite.strongauth.com/Encryption/decryptResponse", fault = {
    @FaultAction(className = StrongKeyLiteException_Exception.class, value = "http://web.strongkeylite.strongauth.com/Encryption/decrypt/Fault/StrongKeyLiteException")
})
public String decrypt(
    @WebParam(name = "did", targetNamespace = "")
    Long did,
    @WebParam(name = "username", targetNamespace = "")
    String username,
    @WebParam(name = "password", targetNamespace = "")
    String password,
    @WebParam(name = "token", targetNamespace = "")
    String token)
    throws StrongKeyLiteException_Exception
;
 
Example #13
Source File: Encryption.java    From fido2 with GNU Lesser General Public License v2.1 6 votes vote down vote up
/**
 * 
 * @param password
 * @param size
 * @param did
 * @param username
 * @return
 *     returns java.lang.String
 * @throws StrongKeyLiteException_Exception
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "entropy", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.Entropy")
@ResponseWrapper(localName = "entropyResponse", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.EntropyResponse")
@Action(input = "http://web.strongkeylite.strongauth.com/Encryption/entropyRequest", output = "http://web.strongkeylite.strongauth.com/Encryption/entropyResponse", fault = {
    @FaultAction(className = StrongKeyLiteException_Exception.class, value = "http://web.strongkeylite.strongauth.com/Encryption/entropy/Fault/StrongKeyLiteException")
})
public String entropy(
    @WebParam(name = "did", targetNamespace = "")
    Long did,
    @WebParam(name = "username", targetNamespace = "")
    String username,
    @WebParam(name = "password", targetNamespace = "")
    String password,
    @WebParam(name = "size", targetNamespace = "")
    Integer size)
    throws StrongKeyLiteException_Exception
;
 
Example #14
Source File: Encryption.java    From fido2 with GNU Lesser General Public License v2.1 6 votes vote down vote up
/**
 * 
 * @param inputfile
 * @param password
 * @param did
 * @param username
 * @return
 *     returns java.lang.String
 * @throws StrongKeyLiteException_Exception
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "batchEncrypt", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.BatchEncrypt")
@ResponseWrapper(localName = "batchEncryptResponse", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.BatchEncryptResponse")
@Action(input = "http://web.strongkeylite.strongauth.com/Encryption/batchEncryptRequest", output = "http://web.strongkeylite.strongauth.com/Encryption/batchEncryptResponse", fault = {
    @FaultAction(className = StrongKeyLiteException_Exception.class, value = "http://web.strongkeylite.strongauth.com/Encryption/batchEncrypt/Fault/StrongKeyLiteException")
})
public String batchEncrypt(
    @WebParam(name = "did", targetNamespace = "")
    Long did,
    @WebParam(name = "username", targetNamespace = "")
    String username,
    @WebParam(name = "password", targetNamespace = "")
    String password,
    @WebParam(name = "inputfile", targetNamespace = "")
    String inputfile)
    throws StrongKeyLiteException_Exception
;
 
Example #15
Source File: Encryption.java    From fido2 with GNU Lesser General Public License v2.1 6 votes vote down vote up
/**
 * 
 * @param inputfile
 * @param password
 * @param did
 * @param username
 * @return
 *     returns java.lang.String
 * @throws StrongKeyLiteException_Exception
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "batchDecrypt", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.BatchDecrypt")
@ResponseWrapper(localName = "batchDecryptResponse", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.BatchDecryptResponse")
@Action(input = "http://web.strongkeylite.strongauth.com/Encryption/batchDecryptRequest", output = "http://web.strongkeylite.strongauth.com/Encryption/batchDecryptResponse", fault = {
    @FaultAction(className = StrongKeyLiteException_Exception.class, value = "http://web.strongkeylite.strongauth.com/Encryption/batchDecrypt/Fault/StrongKeyLiteException")
})
public String batchDecrypt(
    @WebParam(name = "did", targetNamespace = "")
    Long did,
    @WebParam(name = "username", targetNamespace = "")
    String username,
    @WebParam(name = "password", targetNamespace = "")
    String password,
    @WebParam(name = "inputfile", targetNamespace = "")
    String inputfile)
    throws StrongKeyLiteException_Exception
;
 
Example #16
Source File: Encryption.java    From fido2 with GNU Lesser General Public License v2.1 6 votes vote down vote up
/**
 * 
 * @param inputfile
 * @param password
 * @param did
 * @param username
 * @return
 *     returns java.lang.String
 * @throws StrongKeyLiteException_Exception
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "batchDelete", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.BatchDelete")
@ResponseWrapper(localName = "batchDeleteResponse", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.BatchDeleteResponse")
@Action(input = "http://web.strongkeylite.strongauth.com/Encryption/batchDeleteRequest", output = "http://web.strongkeylite.strongauth.com/Encryption/batchDeleteResponse", fault = {
    @FaultAction(className = StrongKeyLiteException_Exception.class, value = "http://web.strongkeylite.strongauth.com/Encryption/batchDelete/Fault/StrongKeyLiteException")
})
public String batchDelete(
    @WebParam(name = "did", targetNamespace = "")
    Long did,
    @WebParam(name = "username", targetNamespace = "")
    String username,
    @WebParam(name = "password", targetNamespace = "")
    String password,
    @WebParam(name = "inputfile", targetNamespace = "")
    String inputfile)
    throws StrongKeyLiteException_Exception
;
 
Example #17
Source File: Encryption.java    From fido2 with GNU Lesser General Public License v2.1 6 votes vote down vote up
/**
 * 
 * @param inputfile
 * @param password
 * @param did
 * @param username
 * @return
 *     returns java.lang.String
 * @throws StrongKeyLiteException_Exception
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "batchSearch", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.BatchSearch")
@ResponseWrapper(localName = "batchSearchResponse", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.BatchSearchResponse")
@Action(input = "http://web.strongkeylite.strongauth.com/Encryption/batchSearchRequest", output = "http://web.strongkeylite.strongauth.com/Encryption/batchSearchResponse", fault = {
    @FaultAction(className = StrongKeyLiteException_Exception.class, value = "http://web.strongkeylite.strongauth.com/Encryption/batchSearch/Fault/StrongKeyLiteException")
})
public String batchSearch(
    @WebParam(name = "did", targetNamespace = "")
    Long did,
    @WebParam(name = "username", targetNamespace = "")
    String username,
    @WebParam(name = "password", targetNamespace = "")
    String password,
    @WebParam(name = "inputfile", targetNamespace = "")
    String inputfile)
    throws StrongKeyLiteException_Exception
;
 
Example #18
Source File: Encryption.java    From fido2 with GNU Lesser General Public License v2.1 6 votes vote down vote up
/**
 * 
 * @param password
 * @param did
 * @param username
 * @param token
 * @return
 *     returns java.lang.Boolean
 * @throws StrongKeyLiteException_Exception
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "delete", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.Delete")
@ResponseWrapper(localName = "deleteResponse", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.DeleteResponse")
@Action(input = "http://web.strongkeylite.strongauth.com/Encryption/deleteRequest", output = "http://web.strongkeylite.strongauth.com/Encryption/deleteResponse", fault = {
    @FaultAction(className = StrongKeyLiteException_Exception.class, value = "http://web.strongkeylite.strongauth.com/Encryption/delete/Fault/StrongKeyLiteException")
})
public Boolean delete(
    @WebParam(name = "did", targetNamespace = "")
    Long did,
    @WebParam(name = "username", targetNamespace = "")
    String username,
    @WebParam(name = "password", targetNamespace = "")
    String password,
    @WebParam(name = "token", targetNamespace = "")
    String token)
    throws StrongKeyLiteException_Exception
;
 
Example #19
Source File: Encryption.java    From fido2 with GNU Lesser General Public License v2.1 6 votes vote down vote up
/**
 * 
 * @param password
 * @param plaintext
 * @param did
 * @param username
 * @return
 *     returns java.lang.String
 * @throws StrongKeyLiteException_Exception
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "encrypt", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.Encrypt")
@ResponseWrapper(localName = "encryptResponse", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.EncryptResponse")
@Action(input = "http://web.strongkeylite.strongauth.com/Encryption/encryptRequest", output = "http://web.strongkeylite.strongauth.com/Encryption/encryptResponse", fault = {
    @FaultAction(className = StrongKeyLiteException_Exception.class, value = "http://web.strongkeylite.strongauth.com/Encryption/encrypt/Fault/StrongKeyLiteException")
})
public String encrypt(
    @WebParam(name = "did", targetNamespace = "")
    Long did,
    @WebParam(name = "username", targetNamespace = "")
    String username,
    @WebParam(name = "password", targetNamespace = "")
    String password,
    @WebParam(name = "plaintext", targetNamespace = "")
    String plaintext)
    throws StrongKeyLiteException_Exception
;
 
Example #20
Source File: EmployeeService.java    From tutorials with MIT License 5 votes vote down vote up
/**
 * 
 * @param arg1
 * @param arg0
 * @return
 *     returns com.baeldung.jaxws.client.Employee
 * @throws EmployeeAlreadyExists_Exception
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "addEmployee", targetNamespace = "http://bottomup.server.jaxws.baeldung.com/", className = "com.baeldung.jaxws.client.AddEmployee")
@ResponseWrapper(localName = "addEmployeeResponse", targetNamespace = "http://bottomup.server.jaxws.baeldung.com/", className = "com.baeldung.jaxws.client.AddEmployeeResponse")
@Action(input = "http://bottomup.server.jaxws.baeldung.com/EmployeeService/addEmployeeRequest", output = "http://bottomup.server.jaxws.baeldung.com/EmployeeService/addEmployeeResponse", fault = {
    @FaultAction(className = EmployeeAlreadyExists_Exception.class, value = "http://bottomup.server.jaxws.baeldung.com/EmployeeService/addEmployee/Fault/EmployeeAlreadyExists")
})
public Employee addEmployee(
    @WebParam(name = "arg0", targetNamespace = "")
    int arg0,
    @WebParam(name = "arg1", targetNamespace = "")
    String arg1)
    throws EmployeeAlreadyExists_Exception
;
 
Example #21
Source File: Encryption.java    From fido2 with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * 
 * @param password
 * @param did
 * @return
 *     returns java.lang.String
 * @throws StrongKeyLiteException_Exception
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "ping", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.Ping")
@ResponseWrapper(localName = "pingResponse", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.PingResponse")
@Action(input = "http://web.strongkeylite.strongauth.com/Encryption/pingRequest", output = "http://web.strongkeylite.strongauth.com/Encryption/pingResponse", fault = {
    @FaultAction(className = StrongKeyLiteException_Exception.class, value = "http://web.strongkeylite.strongauth.com/Encryption/ping/Fault/StrongKeyLiteException")
})
public String ping(
    @WebParam(name = "did", targetNamespace = "")
    Long did,
    @WebParam(name = "password", targetNamespace = "")
    String password)
    throws StrongKeyLiteException_Exception
;
 
Example #22
Source File: EmployeeService.java    From tutorials with MIT License 5 votes vote down vote up
/**
 * 
 * @param arg0
 * @return
 *     returns boolean
 * @throws EmployeeNotFound_Exception
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "deleteEmployee", targetNamespace = "http://bottomup.server.jaxws.baeldung.com/", className = "com.baeldung.jaxws.client.DeleteEmployee")
@ResponseWrapper(localName = "deleteEmployeeResponse", targetNamespace = "http://bottomup.server.jaxws.baeldung.com/", className = "com.baeldung.jaxws.client.DeleteEmployeeResponse")
@Action(input = "http://bottomup.server.jaxws.baeldung.com/EmployeeService/deleteEmployeeRequest", output = "http://bottomup.server.jaxws.baeldung.com/EmployeeService/deleteEmployeeResponse", fault = {
    @FaultAction(className = EmployeeNotFound_Exception.class, value = "http://bottomup.server.jaxws.baeldung.com/EmployeeService/deleteEmployee/Fault/EmployeeNotFound")
})
public boolean deleteEmployee(
    @WebParam(name = "arg0", targetNamespace = "")
    int arg0)
    throws EmployeeNotFound_Exception
;
 
Example #23
Source File: EmployeeService.java    From tutorials with MIT License 5 votes vote down vote up
/**
 * 
 * @param arg1
 * @param arg0
 * @return
 *     returns com.baeldung.jaxws.client.Employee
 * @throws EmployeeNotFound_Exception
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "updateEmployee", targetNamespace = "http://bottomup.server.jaxws.baeldung.com/", className = "com.baeldung.jaxws.client.UpdateEmployee")
@ResponseWrapper(localName = "updateEmployeeResponse", targetNamespace = "http://bottomup.server.jaxws.baeldung.com/", className = "com.baeldung.jaxws.client.UpdateEmployeeResponse")
@Action(input = "http://bottomup.server.jaxws.baeldung.com/EmployeeService/updateEmployeeRequest", output = "http://bottomup.server.jaxws.baeldung.com/EmployeeService/updateEmployeeResponse", fault = {
    @FaultAction(className = EmployeeNotFound_Exception.class, value = "http://bottomup.server.jaxws.baeldung.com/EmployeeService/updateEmployee/Fault/EmployeeNotFound")
})
public Employee updateEmployee(
    @WebParam(name = "arg0", targetNamespace = "")
    int arg0,
    @WebParam(name = "arg1", targetNamespace = "")
    String arg1)
    throws EmployeeNotFound_Exception
;
 
Example #24
Source File: EmployeeService.java    From tutorials with MIT License 5 votes vote down vote up
/**
 * 
 * @param arg0
 * @return
 *     returns com.baeldung.jaxws.client.Employee
 * @throws EmployeeNotFound_Exception
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "getEmployee", targetNamespace = "http://bottomup.server.jaxws.baeldung.com/", className = "com.baeldung.jaxws.client.GetEmployee")
@ResponseWrapper(localName = "getEmployeeResponse", targetNamespace = "http://bottomup.server.jaxws.baeldung.com/", className = "com.baeldung.jaxws.client.GetEmployeeResponse")
@Action(input = "http://bottomup.server.jaxws.baeldung.com/EmployeeService/getEmployeeRequest", output = "http://bottomup.server.jaxws.baeldung.com/EmployeeService/getEmployeeResponse", fault = {
    @FaultAction(className = EmployeeNotFound_Exception.class, value = "http://bottomup.server.jaxws.baeldung.com/EmployeeService/getEmployee/Fault/EmployeeNotFound")
})
public Employee getEmployee(
    @WebParam(name = "arg0", targetNamespace = "")
    int arg0)
    throws EmployeeNotFound_Exception
;
 
Example #25
Source File: Encryption.java    From fido2 with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * 
 * @param password
 * @param ciphertext
 * @param aad
 * @param gpktoken
 * @param encoding
 * @param iv
 * @param did
 * @param username
 * @param algorithm
 * @return
 *     returns java.lang.String
 * @throws StrongKeyLiteException_Exception
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "gpkDecrypt", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.GpkDecrypt")
@ResponseWrapper(localName = "gpkDecryptResponse", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.GpkDecryptResponse")
@Action(input = "http://web.strongkeylite.strongauth.com/Encryption/gpkDecryptRequest", output = "http://web.strongkeylite.strongauth.com/Encryption/gpkDecryptResponse", fault = {
    @FaultAction(className = StrongKeyLiteException_Exception.class, value = "http://web.strongkeylite.strongauth.com/Encryption/gpkDecrypt/Fault/StrongKeyLiteException")
})
public String gpkDecrypt(
    @WebParam(name = "did", targetNamespace = "")
    Long did,
    @WebParam(name = "username", targetNamespace = "")
    String username,
    @WebParam(name = "password", targetNamespace = "")
    String password,
    @WebParam(name = "gpktoken", targetNamespace = "")
    String gpktoken,
    @WebParam(name = "ciphertext", targetNamespace = "")
    String ciphertext,
    @WebParam(name = "encoding", targetNamespace = "")
    String encoding,
    @WebParam(name = "algorithm", targetNamespace = "")
    String algorithm,
    @WebParam(name = "iv", targetNamespace = "")
    String iv,
    @WebParam(name = "aad", targetNamespace = "")
    String aad)
    throws StrongKeyLiteException_Exception
;
 
Example #26
Source File: Encryption.java    From fido2 with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * 
 * @param password
 * @param aad
 * @param gpktoken
 * @param plaintext
 * @param encoding
 * @param iv
 * @param did
 * @param username
 * @param algorithm
 * @return
 *     returns java.lang.String
 * @throws StrongKeyLiteException_Exception
 */
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "gpkEncrypt", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.GpkEncrypt")
@ResponseWrapper(localName = "gpkEncryptResponse", targetNamespace = "http://web.strongkeylite.strongauth.com/", className = "com.strongauth.saka.web.GpkEncryptResponse")
@Action(input = "http://web.strongkeylite.strongauth.com/Encryption/gpkEncryptRequest", output = "http://web.strongkeylite.strongauth.com/Encryption/gpkEncryptResponse", fault = {
    @FaultAction(className = StrongKeyLiteException_Exception.class, value = "http://web.strongkeylite.strongauth.com/Encryption/gpkEncrypt/Fault/StrongKeyLiteException")
})
public String gpkEncrypt(
    @WebParam(name = "did", targetNamespace = "")
    Long did,
    @WebParam(name = "username", targetNamespace = "")
    String username,
    @WebParam(name = "password", targetNamespace = "")
    String password,
    @WebParam(name = "gpktoken", targetNamespace = "")
    String gpktoken,
    @WebParam(name = "plaintext", targetNamespace = "")
    String plaintext,
    @WebParam(name = "encoding", targetNamespace = "")
    String encoding,
    @WebParam(name = "algorithm", targetNamespace = "")
    String algorithm,
    @WebParam(name = "iv", targetNamespace = "")
    String iv,
    @WebParam(name = "aad", targetNamespace = "")
    String aad)
    throws StrongKeyLiteException_Exception
;
 
Example #27
Source File: AddNumberImpl.java    From cxf with Apache License 2.0 5 votes vote down vote up
@Action(input = "http://cxf.apache.org/input3", output = "http://cxf.apache.org/output3",
        fault = {@FaultAction(className = AddNumbersException.class,
                              value = "http://cxf.apache.org/fault3") })
@WebMethod(action = "http://cxf.apache.org/input3")
public int addNumbers3(int number1, int number2) throws AddNumbersException {
    return execute(number1, number2);
}
 
Example #28
Source File: AddNumberImpl.java    From cxf with Apache License 2.0 5 votes vote down vote up
@Action(input = "http://cxf.apache.org/input4", output = "http://cxf.apache.org/output4",
        fault = {@FaultAction(className = AddNumbersException.class,
                              value = "http://cxf.apache.org/fault4") })
@WebMethod(action = "http://cxf.apache.org/input4")
public int addNumbers4(int number1, int number2) throws AddNumbersException {
    return number1 + number2;
}
 
Example #29
Source File: W3CAddressingJavaGeneratorExtension.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void writeMethodAnnotations(TWSDLOperation two, JMethod jMethod) {
    JAnnotationUse actionAnn = null;

    if (!(two instanceof Operation))
        return;

    Operation o = ((Operation)two);

    // explicit input action
    if (o.getInput().getAction() != null && !o.getInput().getAction().equals("")) {
        // explicitly specified
        actionAnn = jMethod.annotate(Action.class);
        actionAnn.param("input", o.getInput().getAction());
    }

    // explicit output action
    if (o.getOutput() != null && o.getOutput().getAction() != null && !o.getOutput().getAction().equals("")) {
        // explicitly specified
        if (actionAnn == null)
            actionAnn = jMethod.annotate(Action.class);

        actionAnn.param("output", o.getOutput().getAction());
    }

    // explicit fault action
    if (o.getFaults() != null && o.getFaults().size() > 0) {
        Map<String, JClass> map = o.getFaults();
        JAnnotationArrayMember jam = null;

        for (Fault f : o.faults()) {
            if (f.getAction() == null)
                continue;

            if (f.getAction().equals(""))
                continue;

            if (actionAnn == null) {
                actionAnn = jMethod.annotate(Action.class);
            }
            if (jam == null) {
                jam = actionAnn.paramArray("fault");
            }
            final JAnnotationUse faAnn = jam.annotate(FaultAction.class);
            faAnn.param("className", map.get(f.getName()));
            faAnn.param("value", f.getAction());
        }
    }
}
 
Example #30
Source File: WSActionAnnotator.java    From cxf with Apache License 2.0 4 votes vote down vote up
public void annotate(JavaAnnotatable ja) {
    JavaMethod method;
    if (ja instanceof JavaMethod) {
        method = (JavaMethod) ja;
    } else {
        throw new RuntimeException("Action can only annotate JavaMethod");
    }

    boolean required = false;


    JavaInterface intf = method.getInterface();
    MessageInfo inputMessage = operation.getInput();
    MessageInfo outputMessage = operation.getOutput();

    JAnnotation actionAnnotation = new JAnnotation(Action.class);
    if (inputMessage.getExtensionAttributes() != null) {
        String inputAction = getAction(inputMessage);
        if (inputAction != null) {
            actionAnnotation.addElement(new JAnnotationElement("input",
                                                               inputAction));
            required = true;
        }
    }

    if (outputMessage != null && outputMessage.getExtensionAttributes() != null) {
        String outputAction = getAction(outputMessage);
        if (outputAction != null) {
            actionAnnotation.addElement(new JAnnotationElement("output",
                                                               outputAction));
            required = true;
        }
    }
    if (operation.hasFaults()) {
        List<JAnnotation> faultAnnotations = new ArrayList<>();
        for (FaultInfo faultInfo : operation.getFaults()) {
            if (faultInfo.getExtensionAttributes() != null) {
                String faultAction = getAction(faultInfo);
                if (faultAction == null) {
                    continue;
                }

                JavaException exceptionClass = getExceptionClass(method, faultInfo);
                if (!StringUtils.isEmpty(exceptionClass.getPackageName())
                    && !exceptionClass.getPackageName().equals(intf.getPackageName())) {
                    intf.addImport(exceptionClass.getClassName());
                }

                JAnnotation faultAnnotation = new JAnnotation(FaultAction.class);
                faultAnnotation.addElement(new JAnnotationElement("className", exceptionClass));
                faultAnnotation.addElement(new JAnnotationElement("value",
                                                                  faultAction));
                faultAnnotations.add(faultAnnotation);
                required = true;
            }
        }
        actionAnnotation.addElement(new JAnnotationElement("fault", faultAnnotations));
    }

    if (required) {
        method.addAnnotation("Action", actionAnnotation);
    }
}