001 package railo.runtime.functions.xml; 002 003 import org.apache.axis.AxisFault; 004 005 import railo.runtime.PageContext; 006 import railo.runtime.exp.PageException; 007 import railo.runtime.net.rpc.AxisUtil; 008 import railo.runtime.op.Caster; 009 010 public class AddSOAPResponseHeader { 011 public static boolean call(PageContext pc, String nameSpace, String name, Object value) throws PageException { 012 return call(pc, nameSpace, name, value,false); 013 } 014 public static boolean call(PageContext pc, String nameSpace, String name, Object value, boolean mustUnderstand) throws PageException { 015 try { 016 AxisUtil.addSOAPResponseHeader(nameSpace, name, value, mustUnderstand); 017 } 018 catch (AxisFault e) { 019 throw Caster.toPageException(e); 020 } 021 return true; 022 } 023 }