&& !found) {
// Header can't be found in java method parameters, in
// different message
// other than messages used in porttype operation
ParameterProcessor processor = new ParameterProcessor(this.env);
Part exPart = this.definition.getMessage(soapHeader.getMessage()).getPart(
soapHeader
.getPart());
JavaType.Style jpStyle = JavaType.Style.IN;
if (isInOutParam(soapHeader.getPart(), operation.getBindingOutput())) {
jpStyle = JavaType.Style.INOUT;
}
JavaParameter jp = processor.addParameterFromBinding(jm, exPart, jpStyle);
if (soapHeader.getPart() != null && soapHeader.getPart().length() > 0) {
jp.getAnnotation().addArgument("partName", soapHeader.getPart());
}
setParameterAsHeader(jp);
}
}
if (obj instanceof MIMEMultipartRelated && jm.getBindingExt().isEnableMime()) {
// Commented for future use
LOG.warning("The MIME content in wsdl file will be ignored, "
+ "current version does not support MIME content");
// MIMEProcessor mimeProcessor = new MIMEProcessor(this.env);
// mimeProcessor.process(jm, (MIMEMultipartRelated)obj,
// JavaType.Style.IN);
}
}
// process output
if (operation.getBindingOutput() != null) {
Iterator outbindings = operation.getBindingOutput().getExtensibilityElements().iterator();
while (outbindings.hasNext()) {
Object obj = outbindings.next();
if (obj instanceof SOAPHeader) {
SOAPHeader soapHeader = (SOAPHeader)obj;
boolean found = false;
for (JavaParameter parameter : jm.getParameters()) {
if (soapHeader.getPart().equals(parameter.getPartName())) {
setParameterAsHeader(parameter);
found = true;
}
}
if (jm.getReturn().getName().equals(soapHeader.getPart())) {
found = true;
}
if (Boolean.valueOf((String)env.get(ToolConstants.CFG_EXTRA_SOAPHEADER)).booleanValue()
&& !found) {
// Header can't be found in java method parameters, in
// different message
// other than messages used in porttype operation
ParameterProcessor processor = new ParameterProcessor(this.env);
Part exPart = this.definition.getMessage(soapHeader.getMessage())
.getPart(soapHeader.getPart());
JavaParameter jp = processor.addParameterFromBinding(jm, exPart, JavaType.Style.OUT);
setParameterAsHeader(jp);
}
}