}
}
public String buildFault( FaultPart faultPart )
{
SampleXmlUtil generator = new SampleXmlUtil( false );
generator.setExampleContent( false );
generator.setTypeComment( false );
generator.setMultiValues( multiValues );
String faultResponse = iface.getMessageBuilder().buildEmptyFault();
XmlCursor cursor = null;
try
{
// XmlObject xmlObject = XmlObject.Factory.parse( faultResponse );
XmlObject xmlObject = XmlUtils.createXmlObject( faultResponse );
XmlObject[] detail = xmlObject.selectPath( "//detail" );
if( detail.length > 0 )
{
cursor = detail[0].newCursor();
cursor.toFirstContentToken();
generator.setTypeComment( true );
generator.setIgnoreOptional( iface.getSettings().getBoolean(
WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS ) );
for( Part part : faultPart.getWsdlParts() )
createElementForPart( part, cursor, generator );
}