public void init() { try { //TODO: pick values from the constants topicHeaderName = getPropertyValue("topicHeaderName"); if(topicHeaderName==null){ handleException("Unable to create topic header topic header name is null"); } topicHeaderNS = getPropertyValue("topicHeaderNS"); if(topicHeaderNS==null){ handleException("Unable to create topic header topic header namespace is null"); } topicXPath = new SynapseXPath( "s11:Header/ns:" + topicHeaderName + " | s12:Header/ns:" + topicHeaderName); topicXPath.addNamespace("s11", "http://schemas.xmlsoap.org/soap/envelope/"); topicXPath.addNamespace("s12", "http://www.w3.org/2003/05/soap-envelope"); topicXPath.addNamespace("ns", topicHeaderNS); } catch (JaxenException e) { handleException("Unable to create the topic header XPath", e); } }
public void init() { try { //TODO: pick values from the constants topicHeaderName = getPropertyValue("topicHeaderName"); if(topicHeaderName==null){ handleException("Unable to create topic header topic header name is null"); } topicHeaderNS = getPropertyValue("topicHeaderNS"); if(topicHeaderNS==null){ handleException("Unable to create topic header topic header namespace is null"); } topicXPath = new SynapseXPath( "s11:Header/ns:" + topicHeaderName + " | s12:Header/ns:" + topicHeaderName); topicXPath.addNamespace("s11", "http://schemas.xmlsoap.org/soap/envelope/"); topicXPath.addNamespace("s12", "http://www.w3.org/2003/05/soap-envelope"); topicXPath.addNamespace("ns", topicHeaderNS); } catch (JaxenException e) { handleException("Unable to create the topic header XPath", e); } }