this is how i created service and consuming
- created controller class
class WebServiceController extends Controller
{
public function actions()
{
return array('service'=>array('class'=>'CWebServiceAction',),);
}
/**
* @param string
* @param string
* @param string
* @return string
* @soap
*/
public function RestoreDisplayIfAny($hardwareKey, $userName, $mac)
{
}
//some more methods here
}
now when i call Webservice/service XML is generated
<definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="urn:WebServiceControllerwsdl"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/soap/envelope/"
targetNamespace="urn:WebServiceControllerwsdl">
Here, Problem Is
urn:WebServiceControllerwsdl
my client sets request like
SOAPAction: "urn:xmds#RegisterDisplayWithMac"
so how to resolve this…problem is i cant change my client code ??