Search in sources :

Example 1 with WebFault

use of com.webcohesion.enunciate.modules.jaxws.model.WebFault in project enunciate by stoicflame.

the class WsdlInfo method getWebMessages.

public List<WebMessage> getWebMessages() {
    ArrayList<WebMessage> messages = new ArrayList<WebMessage>();
    HashSet<String> foundFaults = new HashSet<String>();
    for (EndpointInterface ei : getEndpointInterfaces()) {
        Collection<WebMethod> webMethods = ei.getWebMethods();
        for (WebMethod method : webMethods) {
            for (WebMessage webMessage : method.getMessages()) {
                if (webMessage.isFault() && !foundFaults.add(((WebFault) webMessage).getQualifiedName().toString())) {
                    continue;
                }
                messages.add(webMessage);
            }
        }
    }
    return messages;
}
Also used : EndpointInterface(com.webcohesion.enunciate.modules.jaxws.model.EndpointInterface) WebMethod(com.webcohesion.enunciate.modules.jaxws.model.WebMethod) WebFault(com.webcohesion.enunciate.modules.jaxws.model.WebFault) WebMessage(com.webcohesion.enunciate.modules.jaxws.model.WebMessage)

Aggregations

EndpointInterface (com.webcohesion.enunciate.modules.jaxws.model.EndpointInterface)1 WebFault (com.webcohesion.enunciate.modules.jaxws.model.WebFault)1 WebMessage (com.webcohesion.enunciate.modules.jaxws.model.WebMessage)1 WebMethod (com.webcohesion.enunciate.modules.jaxws.model.WebMethod)1