String originOfExtensibilityElements) {
for (int i = 0; i < extensionElement.length; i++) {
ExtensionElement element = extensionElement[i];
if (element instanceof UnknownExtensionElement) {
UnknownExtensionElement unknown = (UnknownExtensionElement) element;
// look for the SOAP 1.2 stuff here. WSDL4j does not understand
// SOAP 1.2 things
// TODO this is wrong. Compare this with WSDL 2.0 QName
if (WSDLConstants.WSDL11Constants.SOAP_12_OPERATION.equals(unknown
.getExtensionType())) {
Element unknownElement = unknown.getElement();
if (description instanceof AxisOperation) {
AxisOperation axisOperation = (AxisOperation) description;
String style = unknownElement.getAttribute("style");
if (style != null) {
axisOperation.setStyle(style);
}
axisOperation.setSoapAction(unknownElement
.getAttribute("soapAction"));
}
} else if (WSDLConstants.WSDL11Constants.SOAP_12_HEADER.equals(unknown
.getExtensionType())) {
// TODO : implement thid
} else if (WSDLConstants.WSDL11Constants.SOAP_12_BINDING.equals(unknown
.getExtensionType())) {
style = unknown.getElement().getAttribute("style");
axisService.setSoapNsUri(element.getExtensionType()
.getNamespaceURI());
} else if (WSDLConstants.WSDL11Constants.SOAP_12_ADDRESS.equals(unknown
.getExtensionType())) {
axisService.setEndpoint(unknown.getElement().getAttribute(
"location"));
} else if (WSDLConstants.WSDL11Constants.POLICY.equals(unknown
.getExtensionType())) {
// TODO
} else if (WSDLConstants.WSDL11Constants.POLICY_REFERENCE.equals(unknown
.getExtensionType())) {
// TODO