Unfortunately this isn't anything to do with PHP.  I don't have any info on
the app, what it's supposed to return or what the parameter passed should
be.  The PHP soap call is working, but the app isn't returning what you
want or expect I guess.


On Thu, Sep 26, 2013 at 8:36 AM, Alf Stockton <a...@stockton.co.za> wrote:

>  Shawn, that was silly of me. I have now removed the echo but I still do
> not get the expected result from the server.
> var_dump of $result returns:-
>
> object(stdClass)#2 (1) {
>   ["GetSequenceNoResult"]=>
>   object(stdClass)#3 (6) {
>     ["iServerNo"]=>
>     int(0)
>     ["iClientNo"]=>
>     int(0)
>     ["bNoLimitDownload"]=>
>     bool(false)
>     ["dtStartDate"]=>
>     string(19) "0001-01-01T00:00:00"
>     ["dtEndDate"]=>
>     string(19) "0001-01-01T00:00:00"
>     ["dtServerTime"]=>
>     string(19) "0001-01-01T00:00:00"
>   }
> }
>
> whereas the expected result is to have each of those fields containing
> data.
> My code now looks like
>
> <?php
>     $strTerminalname = "CIS";
>     $version = "1.2";
>     $client = new SoapClient(
> "http://192.168.0.10/CISWebService/Mediamanager.asmx?WSDL";<http://192.168.0.10/CISWebService/Mediamanager.asmx?WSDL>
> );
>     $result = $client->GetSequenceNo($strTerminalname);
>     print_r($result);
>     var_dump($result);
> ?>
>
>
> On 25/09/13 17:23, Shawn McKenzie wrote:
>
> $result = $client->GetSequenceNo( "CIS" ); shouldn't be throwing that
> error.  Maybe you are trying to do something with $result afterwards?  Try
> var_dump($result);
>
>
> On Wed, Sep 25, 2013 at 10:12 AM, Alf Stockton <a...@stockton.co.za> wrote:
>
>>
>> On 25/09/13 16:52, Shawn McKenzie wrote:
>>
>> $client->GetSequenceNo( $parameters );
>>
>> That unfortunately returns
>>
>> alf@alf-ThinkPad-T500:~/Development/PHP/DevIt$ php
>> php-soap-web-service.php > test.txt
>> PHP Catchable fatal error:  Object of class stdClass could not be
>> converted to string in
>> /home/alf/Development/PHP/DevIt/php-soap-web-service.php on line 7
>>
>> No matter if I use
>>     $result = $client->GetSequenceNo( "CIS" );
>> or
>>     $result = $client->GetSequenceNo($strTerminalname);
>>
>>
>>
>>
>> --
>>
>> Regards,
>> Alf Stockton              www.stockton.co.za
>>
>>
>
>
>  --
>  ----------------------
> Thanks!
> -Shawn
> ----------------------
>
>
> --
>
> Regards,
> Alf Stockton              www.stockton.co.za
>
>


-- 
Thanks!
-Shawn

Reply via email to