Issues

ZF-12091: setBindingStyle() and setOperationBodyStyle() do not work if declared after setClass()... using Zend_Soap_AutoDiscover class

Description

If you set the binding style or operation body style before setting the class it works fine. But if you set the binding style or operation body style after setting the class it does not set the new styles.

Broken Implementation:

Zend_Loader::loadClass('Zend_Soap_AutoDiscover'); $ad = new Zend_Soap_AutoDiscover(); $ad->setClass('MySoapClass'); $ad->setBindingStyle(array('style'=>'document')); $ad->setOperationBodyStyle(array('use'=>'literal')); $ad->handle();

To make the above code work just move the $ad->setClass('MySoapClass') line of code to just before the last line.

Comments

No comments to display