I'm also looking for method to add header definition to the generated WSDL. E.g:
I don't know how to customize DefaultWsdl11Definition bean for soap:header element in the binding part.
<wsdl:binding name="ServiceSoap11" type="tns:Service">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
<soap:operation soapAction="" />
<soap:body parts="request" use="literal"/>
<soap:header message="tns:HeaderMessage" part="SomePart" use="literal"/>
Any help will be appreciated. I would like to avoid editing WSDL by hand.