actionType.setStringValue(action);
actionElem = actionDoc;
}
XmlBeanUtils.addChildElement(header, toElem);
XmlBeanUtils.addChildElement(header, actionElem);
XmlBeansEndpointReference newepr = null;
if (eprXBean.schemaType().getName().getNamespaceURI().equals(Constants.NS_URI_ADDRESSING_2003_03))
{
newepr = new XmlBeansEndpointReference((org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType) eprXBean);
}
else
{
newepr = new XmlBeansEndpointReference((org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType) eprXBean);
}
if (newepr.getReferenceProperties() != null)
{
XmlObject[] refPropElems = (XmlObject[]) newepr.getReferenceProperties();
for (int i = 0; i < refPropElems.length; i++)
{
XmlBeanUtils.addChildElement(header, refPropElems[i]);
}
}