subdee / yii2-soap-server

A SOAP server for Yii 2 based on the implementation of Yii 1 framework.
20 stars 28 forks source link

Update SoapAction.php #8

Closed psobeich closed 10 years ago

psobeich commented 10 years ago

Fixed bug where WSDL is always delivered when serviceVar is not set.

subdee commented 10 years ago

I don't think that's correct. Look at Yii 1.1 implementation:

https://github.com/yiisoft/yii/blob/1731acf8e2c0a1dcb8755268e409fec972ac39f4/framework/web/services/CWebServiceAction.php#L102

psobeich commented 10 years ago

Oh you are correct. Sorry for the disturbance.

I thought that an additional GET parameter has to be set to retrieve the WSDL. That is what I am used to: http://endpoint - calls web service http://endpoint?wsdl - retrieves wsdl

So exactly vice versa. Since I cannot adjust the clients to the web service I need to make the soap server behave as expected by the clients. I think I extend the class by an option that inverts the behavior of $serviceVar.

psobeich commented 10 years ago

I created the branch invertServiceVar in my fork that takes care of the behavior of $serviceVar.