WSO2Con 2013 CFP Banner

How to Control Binding Generation in Axis2 ?

 

Whenever you deploy a service in Axis2 , it generates a WSDL for you. You are able to see the WSDL generated when by executing a “?wsdl” for your service. If you look closer you will see that the WSDL generated has three bindings.

Date: Mon, 14th Jul, 2008
Level: Introductory
Reads: 6771
Discuss this article on Stack Overflow
Deepal Jayasingha

WSO2 Inc.
  • SOAP11 binding
  • SOAP12binding
  • HTTPbinding

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. .

Author

Deepal Jayasinghe is a Technical Lead at WSO2. Deepal at wso2 dot com

malingbowler.yahoo.com's picture

Great blog article about this

Great blog article about this topic,I have been lately in your blog once or twice now.I just wanted to say my thanks for the information provided. click
latharangith1988.gmail.com's picture

This is a good post. This

This is a good post. This post give truly quality information.I’m definitely going to look into it.Really very useful tips are provided here.thank you so much.Keep up the good works. printing flyers
liajames43.yahoo.com's picture

This is one of the good

This is one of the good articles you can find in the net explaining everything in detail regarding the topic. I thank you for taking your time sharing your thoughts and ideas to a lot of readers out there. send flowers morocco | flowers delivery in Italy
597529167.qq.com's picture

http://www.atcoachoutletsonli

http://www.atcoachoutletsonline.net Coach Outlet http://www.getcoachfactoryoutlet.org Coach Factory http://www.louisvuittonhandbagsoutlet.org/ Louis Vuitton Handbags Outlet http://www.saleincoachoutlets.com Coach Outlet Online http://www.atcoachoutletsonline.net Coach Outlet Online http://www.getcoachfactoryoutlet.org Coach Factory Outlet http://www.louisvuittonhandbagsoutlet.org/ Louis Vuitton Handbags http://www.saleincoachoutlets.com Coach Outlet http://www.coachfactoryoutlet-s.org Coach Factory Outlet http://www.buycoachoutletonline.org Coach Outlet http://www.coachoutletonfactory.net Coach Outlet http://www.buycoachoutletonline.org Coach Outlet Online
robin.pearson007.gmail.com's picture

Mac

Hi Deepal, It's not working on MAC (Leopard). Do you know how can I work around this? http://livewatchtvonpc.co.cc
1029441443.qq.com's picture

Thank you for your kind

Thank you for your kind guidance!! I just need that information! iphone repair  
company2714.gmail.com's picture

cricket info

Very nicely written post. It contains useful information for me. I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post. http://www.cricandcric.com cricket info
milliganbrent3.gmail.com's picture

Fabulous article. Thank you

Fabulous article. Thank you so much! Brent blog
brichins's picture

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?
yaronn01's picture

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/
skarootz's picture

disable http binding

To disable HTTP/Rest binding (at least from axis2 1.4.1) the right parameter is "disableREST", just set it to true. I found it searching for disableSOAP12 in the axis2 source distribution ;)