Exemplo n.º 1
0
 @Validated
 @Test
 public void testGetFaultNode() throws Exception {
   SOAPFault fault = createEmptySOAPFault();
   fault.setFaultNode("urn:mynode");
   assertEquals("urn:mynode", fault.getFaultNode());
 }
Exemplo n.º 2
0
  SOAP12Fault(SOAPFault fault) {
    code = new CodeType(fault.getFaultCodeAsQName());
    try {
      fillFaultSubCodes(fault);
    } catch (SOAPException e) {
      throw new WebServiceException(e);
    }

    reason = new ReasonType(fault.getFaultString());
    role = fault.getFaultRole();
    node = fault.getFaultNode();
    if (fault.getDetail() != null) {
      detail = new DetailType();
      Iterator iter = fault.getDetail().getDetailEntries();
      while (iter.hasNext()) {
        Element fd = (Element) iter.next();
        detail.getDetails().add(fd);
      }
    }
  }
Exemplo n.º 3
0
 @Validated
 @Test
 public void testGetFaultNodeNotPresent() throws Exception {
   SOAPFault fault = createEmptySOAPFault();
   assertNull(fault.getFaultNode());
 }