axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <sam...@wso2.com>
Subject Re: Creating Axis2 SOAP Header
Date Fri, 11 May 2007 04:40:28 GMT
Eran Chinthaka wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Samisa Abeysinghe wrote:
>   
>> Amila Suriarachchi wrote:
>>     
>>> I am not sure about your problem.
>>> but add this code to specifically set the soap12 for service client.
>>>
>>> clientOptions = new Options();
>>> clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI
>>> );
>>>       
>> Why not simplify the API to something like:
>> clientOptions.setSoap12();
>>     
>
> Look at the number of properties inside Options. So are you suggesting
> to have one setter and a getter method of all of those params? 
Not exactly! Just make the common case simple. As an example, setting 
SOAP version, enabling MTOM, REST are more common. Leave all other more 
complex stuff to params.

Samisa...

-- 
Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web Services Developers' Portal)


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message