Examples of addFault()


Examples of javax.wsdl.Operation.addFault()

        Output output = definition.createOutput();
        output.setName("Output");
        operation.setOutput(output);
        Fault fault = definition.createFault();
        fault.setName("Fault");
        operation.addFault(fault);

        Properties soapActions = new Properties();
        soapActions.setProperty("Operation", namespace + "/Action");
        provider.setSoapActions(soapActions);
View Full Code Here

Examples of javax.wsdl.Operation.addFault()

                    fault.setName(faultInfo.getFaultName().getLocalPart());
                    message = def.createMessage();
                    buildMessage(message, faultInfo, def);
                    this.addExtensibilityAttributes(fault, faultInfo.getExtensionAttributes());
                    fault.setMessage(message);
                    operation.addFault(fault);
                }
            }
            portType.addOperation(operation);
        }
    }
View Full Code Here

Examples of javax.wsdl.Operation.addFault()

    if (faultMessages != null) {
      for (Message message : faultMessages) {
        Fault fault = def.createFault();
        fault.setMessage(message);
        fault.setName("fault" + (count++));
        op.addFault(fault);
      }
    }
    portType.addOperation(op);
    portType.setUndefined(false);
    def.addPortType(portType);
View Full Code Here

Examples of javax.wsdl.Operation.addFault()

                    fault.setName(faultInfo.getFaultName().getLocalPart());
                    message = def.createMessage();
                    buildMessage(message, faultInfo, def);
                    this.addExtensibilityAttributes(fault, faultInfo.getExtensionAttributes());
                    fault.setMessage(message);
                    operation.addFault(fault);
                }
            }
            portType.addOperation(operation);
        }
    }
View Full Code Here

Examples of javax.xml.soap.SOAPBody.addFault()

        @Override
        protected SOAPMessage onMessage(SOAPMessage message) throws SOAPException {
            SOAPMessage response = messageFactory.createMessage();
            SOAPBody body = response.getSOAPBody();
            body.addFault(SOAPConstants.SOAP_RECEIVER_FAULT, "Receiver Fault");
            return response;
        }
    }

  @SuppressWarnings("serial")
View Full Code Here

Examples of javax.xml.soap.SOAPBody.addFault()

        @Override
        protected SOAPMessage onMessage(SOAPMessage message) throws SOAPException {
            SOAPMessage response = messageFactory.createMessage();
            SOAPBody body = response.getSOAPBody();
            body.addFault(SOAPConstants.SOAP_SENDER_FAULT, "Sender Fault");
            return response;
        }
    }

  @SuppressWarnings("serial")
View Full Code Here

Examples of javax.xml.soap.SOAPBody.addFault()

        try {
          getSaajBody().removeContents();
          SOAPBody body = getSaajBody();
          SOAPFault result;
          if (faultStringLocale == null) {
            result = body.addFault(faultCode, faultString);
          }
          else {
            result = body.addFault(faultCode, faultString, faultStringLocale);
          }
          SOAPFault saajFault = result;
View Full Code Here

Examples of javax.xml.soap.SOAPBody.addFault()

          SOAPFault result;
          if (faultStringLocale == null) {
            result = body.addFault(faultCode, faultString);
          }
          else {
            result = body.addFault(faultCode, faultString, faultStringLocale);
          }
          SOAPFault saajFault = result;
            return new SaajSoap12Fault(saajFault);
        }
        catch (SOAPException ex) {
View Full Code Here

Examples of javax.xml.soap.SOAPBody.addFault()

        try {
          getSaajBody().removeContents();
          SOAPBody body = getSaajBody();
          SOAPFault result;
          if (faultStringLocale == null) {
            result = body.addFault(faultCode, faultString);
          }
          else {
            result = body.addFault(faultCode, faultString, faultStringLocale);
          }
          SOAPFault saajFault = result;
View Full Code Here

Examples of javax.xml.soap.SOAPBody.addFault()

          SOAPFault result;
          if (faultStringLocale == null) {
            result = body.addFault(faultCode, faultString);
          }
          else {
            result = body.addFault(faultCode, faultString, faultStringLocale);
          }
          SOAPFault saajFault = result;
            return new SaajSoap11Fault(saajFault);
        }
        catch (SOAPException ex) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.