Package javax.wsdl.extensions.soap

Examples of javax.wsdl.extensions.soap.SOAPHeaderFault


                        input ? BindingEntry.IN_HEADER : BindingEntry.OUT_HEADER);

                // Add any soap:headerFault info to the faults array
                Iterator headerFaults = header.getSOAPHeaderFaults().iterator();
                while (headerFaults.hasNext()) {
                    SOAPHeaderFault headerFault =
                            (SOAPHeaderFault) headerFaults.next();
                    faults.add(new FaultInfo(headerFault, this));
                }
            }
            else if (obj instanceof MIMEMultipartRelated) {
View Full Code Here


        throw new WSIFException(
          "non existent part specified on soap:header: "
            + soapHeader);
      }

      SOAPHeaderFault soapHeaderFault =
        (SOAPHeaderFault) wsifPort.getExtElem(
          soapHeader,
          javax.wsdl.extensions.soap.SOAPHeaderFault.class,
          extensabilityElements);
      if (soapHeaderFault != null) {
View Full Code Here

          // Going through the soap:headerfaultS
          for (int j = 0; j < headerFaults.size(); j++)
          {
            if (headerFaults.get(j) instanceof SOAPHeaderFault)
            {
              SOAPHeaderFault shf = (SOAPHeaderFault) headerFaults.get(j);
              // If a soap:headerfault references the corresponding
              // message, adding part name to the list
              if (message.equals(shf.getMessage()))
                parts.add(shf.getPart());
            }
            // the same workaround...
            else
            {
              Element shf = (Element) headerFaults.get(j);
              // If a soap:headerfault references the corresponding
              // message, adding part name to the list
              if (referencesMessage(shf, message.getQName()))
                parts.add(shf.getAttribute("part"));
            }
          }
        }
        // else if that is a mime:content
        else if (extElem.getElementType().equals(WSDL_MIME_CONTENT))
View Full Code Here

    // Test the assertion
    // Check for correct use value
    for (int i = 0; i < soapHeaderFaults.length; i++)
    {
      SOAPHeaderFault soapHeaderFault = soapHeaderFaults[i];
      if (soapHeaderFault.getUse() != null
        && !soapHeaderFault.getUse().equals(
          WSIConstants.ATTRVAL_SOAP_BODY_USE_LIT))
      {
        result = AssertionResult.RESULT_FAILED;
        failureDetailMessage =
          (failureDetailMessage == null
            ? soapHeaderFault.toString()
            : failureDetailMessage + "\n\n" + soapHeaderFault.toString());
        if (failureDetail == null)
          failureDetail =
            this.validator.createFailureDetail(failureDetailMessage, entryContext);
        else
          failureDetail.setFailureMessage(failureDetailMessage);
View Full Code Here

          // Check each header fault to see if it has part element with NMTOKEN type
          while (iterator.hasNext()
            && result.equals(AssertionResult.RESULT_PASSED))
          {
            SOAPHeaderFault soapHeaderFault =
              (SOAPHeaderFault) iterator.next();
            if ((soapHeaderFault.getPart() == null)
              || (!XMLUtils.isNmtoken(soapHeaderFault.getPart())))
            {
              result = AssertionResult.RESULT_FAILED;
              failureDetail =
                this.validator.createFailureDetail(soapHeaderFault.toString(), entryContext);
            }
          }
        }
      }
    }
View Full Code Here

                // Add any soap:headerFault info to the faults array
                Iterator headerFaults = header.getSOAPHeaderFaults().iterator();

                while (headerFaults.hasNext()) {
                    SOAPHeaderFault headerFault =
                            (SOAPHeaderFault) headerFaults.next();

                    faults.add(new FaultInfo(headerFault, this));
                }
            } else if (obj instanceof MIMEMultipartRelated) {
View Full Code Here

                // Add any soap:headerFault info to the faults array
                Iterator headerFaults = header.getSOAPHeaderFaults().iterator();

                while (headerFaults.hasNext()) {
                    SOAPHeaderFault headerFault =
                            (SOAPHeaderFault) headerFaults.next();

                    faults.add(new FaultInfo(headerFault, this));
                }
            } else if (obj instanceof MIMEMultipartRelated) {
View Full Code Here

                // Add any soap:headerFault info to the faults array
                Iterator headerFaults = header.getSOAPHeaderFaults().iterator();

                while (headerFaults.hasNext()) {
                    SOAPHeaderFault headerFault =
                            (SOAPHeaderFault) headerFaults.next();

                    faults.add(new FaultInfo(headerFault, this));
                }
            } else if (obj instanceof MIMEMultipartRelated) {
View Full Code Here

                        input ? BindingEntry.IN_HEADER : BindingEntry.OUT_HEADER);

                // Add any soap:headerFault info to the faults array
                Iterator headerFaults = header.getSOAPHeaderFaults().iterator();
                while (headerFaults.hasNext()) {
                    SOAPHeaderFault headerFault =
                            (SOAPHeaderFault) headerFaults.next();
                    faults.add(new FaultInfo(headerFault, this));
                }
            }
            else if (obj instanceof MIMEMultipartRelated) {
View Full Code Here

                // Add any soap:headerFault info to the faults array
                Iterator headerFaults = header.getSOAPHeaderFaults().iterator();

                while (headerFaults.hasNext()) {
                    SOAPHeaderFault headerFault =
                            (SOAPHeaderFault) headerFaults.next();

                    faults.add(new FaultInfo(headerFault, this));
                }
            } else if (obj instanceof MIMEMultipartRelated) {
View Full Code Here

TOP

Related Classes of javax.wsdl.extensions.soap.SOAPHeaderFault

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.