php - YII - Webservice returns WSDL when I request from SOA Client addon -
when post soap body yii websevice soa client firefox add on, returns wsdl , not calling respective method.
how invoke respective method?
what problem?
see generated wsdl file : base url of methods exposed service found in "location" attribute @ file end (e.g. wsdl:service > wsdl:port > soap:address).
sample :
[...] <wsdl:service name="serviceproviderservice"> <wsdl:port name="serviceproviderport" binding="tns:serviceproviderbinding"> <soap:address location="http://localhost/website/service/soap/ws/1"/> </wsdl:port> </wsdl:service> [...]
the url provided has "/ws/1" (or "?ws=1", depending on application settings) appended controller route exposing web service.
see cwebserviceaction class reference :
cwebserviceaction serves 2 purposes. on 1 hand, displays wsdl content specifying web service apis. on other hand, invokes requested web service api. parameter named ws used differentiate these 2 aspects: existence of parameter indicates performing latter action.
the parameter used value of cwebserviceaction::servicevar property.
so must append required parameter (e.g. "ws=1") called url able use web method... or use "real" soap client fetch proper service url call web method.
Comments
Post a Comment