Example usage for javax.xml.soap SOAPFactory createDetail

List of usage examples for javax.xml.soap SOAPFactory createDetail

Introduction

In this page you can find the example usage for javax.xml.soap SOAPFactory createDetail.

Prototype

public abstract Detail createDetail() throws SOAPException;

Source Link

Document

Creates a new Detail object which serves as a container for DetailEntry objects.

Usage

From source file:org.apache.axis2.saaj.SOAPFactoryTest.java

@Validated
@Test/*from w w w  .j a v a 2s. c o  m*/
public void testCreateDetail() {
    try {
        SOAPFactory sf = SOAPFactory.newInstance();
        if (sf == null) {
            fail("SOAPFactory was null");
        }
        Detail d = sf.createDetail();
        if (d == null) {
            fail("Detail was null");
        }
    } catch (Exception e) {
        e.printStackTrace();
        fail("Unexpected Exception " + e);
    }
}