|
|
In addition to these bindings, there will be multiple port addresses for those bindings in the service section as well. Number of binding generation is independent of whether you use WSDL11 or WSDL2.0 .
In some instances, you do not need to generate all of those bindings and you may want to configure the types of binding Axis2 generates. Now let's see how we can do this with Axis2.
There are two ways of doing that, you can control that for all the services in the system, or, you can control that for a particular service only. If you want to control for all services then you need to add the following parameter(s) into axis2.xml, and alternatively, if you only want to control for a particular service then add the parameter(s) in services.xml
Disable SOAP11 binding – To disable SOAP11 binding, add the following parameter:
<parameter name=”disableSOAP11”>true</parameter>
Disable SOAP12 binding – To disable SOAP12 binding, add the following parameter
<parameter name=”disableSOAP12”>true</parameter>
Disable Http binding – To disable http binding, add the following parameter
<parameter name=”disableHTTP”>true</parameter>
With this approach you can configure the number of bindings you want to generate , but it is advisable to have at least one binding. .
Deepal Jayasinghe is a Technical Lead at WSO2. Deepal at wso2 dot com
Thank you for your kind
Fabulous article. Thank you
is disableHTTP the same as disableREST
I tried "disableHTTP" with Axis2 1.4 but it didn't seem to work. When I tried "disableREST" it removed the HTTP binding. Are these the same?
typo
I think there is a typo - to disable http it should probably be disableHTTP and not as written.
Yaron Naveh
Web Services Performance, Interoperbility And Testing Blog
http://webservices20.blogspot.com/