Add flag to wsdl2java so that methods are generated with parameter for custom 
headers.
--------------------------------------------------------------------------------------

                 Key: MUSE-166
                 URL: http://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.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to