Hello everyone,

I am trying to access a .NET webservice through PHP but I get the following message:

stdClass Object ( [GetDateTimeResult] => stdClass Object ( [Message] => 101 - doGetDateTime Object reference not set to an instance of an object. ) )

The wsdl file contains the following:

Code:
<wsdl:binding name="webserviceSoap" type="tns:webserviceSoap"><soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="doGetDateTime"><soap:operation soapAction="http://tempuri.org/GetDateTime" style="document"/><wsdl:input name="GetDateTime"><soap:body use="literal"/></wsdl:input><wsdl:output name="GetDateTime"><soap:body use="literal"/></wsdl:output></wsdl:operation>
</wsdl:binding>

<s:element name="GetDateTime"><s:complexType><s:sequence><s:element minOccurs="0" maxOccurs="1" name="clientRequest" type="tns:ClientRequest"/></s:sequence></s:complexType></s:element>
And in my PHP code I have:

Code:
class GetDateTime{
    public $GetDateTime;
}

$client = new SoapClient("http://localhost/webservice.asmx?WSDL");
$params = new GetDateTime;
$params->GetDateTime = date('Y-m-d');

$SOAPCall = 'doGetDateTime';
$SoapCallParameters = array('GetDateTime'=>date('Y-m-d'));
$obj = $client->__soapCall($SOAPCall, array($SoapCallParameters));
$result = $client->doGetDateTime(array($params));
Both calls return the same error. What am I doing wrong? Thank you.