[ https://issues.apache.org/jira/browse/MUSE-166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Eberbach resolved MUSE-166. ---------------------------------- Resolution: Fixed Added the flag, flag help and support in both the proxy and server synthersizers. > Add flag to wsdl2java so that methods are generated with parameter for custom > headers. > -------------------------------------------------------------------------------------- > > Key: MUSE-166 > URL: https://issues.apache.org/jira/browse/MUSE-166 > Project: Muse > Issue Type: Improvement > Components: Tooling - Code Generation > Affects Versions: 2.1.0 > Reporter: Dan Jemiolo > Assigned To: Andrew Eberbach > Fix For: 2.2.0 > > > The goal here is to keep the clients stateless but to allow for custom SOAP > headers (non-WS-A headers) for each request. There should be a code > generation option/flag that causes wsdl2java to create an extra Element[] > parameter for custom headers. Something like: > wsdl2java -wsdl MyResource.wsdl -headers > which would turn > void myOperation(String param); > into > void myOperation(String param, Element[] customHeaders); > If the flag were used, the new parameter would be applied to all operations. > This will require me to provide an overloaded version of > AbstractResourceClient.invoke() that has the following parameter list: > Object invoke(ProxyHandler, Object[], Element[]); > This is the method that can be called by all generated methods; if the flag > is not used, you can either call the invoke() that doesn't have the Element[] > param *or* you can make an empty Element[] to pass it. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]