Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

NuSOAP based service breaking .NET

2008-07-07
2013-06-06
  • I've created a NuSOAP based service that seems to work just fine when working on two disparate PHP systems as per the following:

    r:htdocs sf$ cat soap.php
    <?php

    try {
            $client = new SoapClient("http://services.limelock.com/index.php?wsdl", array('trace' => true));
            $response =  $client->getCallDetailRecords(430);
    } catch(Exception $e) {
           echo "RESPONSE: " . $client->__getLastResponse();
    }

    print_r($response);

    r:htdocs sf$ php soap.php
    Array
    (
        [0] => stdClass Object
            (
                [extension] => 5364742
                [call_log] => Array
                    (
                        [0] => stdClass Object
                            (
                                [date] => 2008-05-12 18:56:36
                                [caller] => 323
                            )

                        [1] => stdClass Object
                            (
                                [date] => 2008-05-13 11:25:51
                                [caller] => 718
                            )

                        [2] => stdClass Object
                            (
                                [date] => 2008-05-19 14:39:28
                                [caller] => 718
                            )

                        [3] => stdClass Object
                            (
                                [date] => 2008-05-19 19:13:05
                                [caller] => 718
                            )

                    )

            )

        [1] => stdClass Object
            (
                [extension] => 6182612
                [call_log] => Array
                    (
                        [0] => stdClass Object
                            (
                                [date] => 2008-05-12 18:09:03
                                [caller] => 718
                            )

                        [1] => stdClass Object
                            (
                                [date] => 2008-05-13 11:27:24
                                [caller] => 718
                            )

                    )

            )

    )
    r:htdocs sf$

    Yet, when the service gets invoked by a .NET client, they complain with the following:

    {"The specified type was not recognized: name=':', namespace='', at
    <return xmlns=''>."}

    Any idea what might be the cause of this?

    Thanks.