public String getAddressingNamespace() {
return "http://schemas.xmlsoap.org/ws/2004/08/addressing";
}
public void addVersionTransformer(Dispatch<Object> dispatch) {
StaxTransformFeature feature = new StaxTransformFeature();
Map<String, String> outElements = new HashMap<String, String>();
outElements.put("{" + NS_1_1 + "}*",
"{" + NS_1_0 + "}*");
outElements.put("{" + INSTANCE_1_1.getAddressingNamespace() + "}*",
"{" + getAddressingNamespace() + "}*");
feature.setOutTransformElements(outElements);
Map<String, String> inElements = new HashMap<String, String>();
inElements.put("{" + NS_1_0 + "}*",
"{" + NS_1_1 + "}*");
inElements.put("{" + getAddressingNamespace() + "}*",
"{" + INSTANCE_1_1.getAddressingNamespace() + "}*");
feature.setInTransformElements(inElements);
feature.initialize(((DispatchImpl)dispatch).getClient(),
((DispatchImpl)dispatch).getClient().getBus());
Map<String, String> nsMap = new HashMap<String, String>();
nsMap.put("tns", NS_1_0);
nsMap.put("wsa", getAddressingNamespace());