"Error getting HTTP object" using php SoapClient

I have some problems sending user data to the server using Soap. All that I get:
Error fetching http-bodies, no content-length, connecting private or shared data Am I doing something wrong?

$client = new SoapClient(APPPATH.'my.wsdl',array(
    'login' => 'user',
    'password' => 'pass',
    'location' => 'http://gimmeyadata.com/crm/regserv?wsdl',
    'trace' => true,
    )
);
$result = $client->register(array(
    'Email' => 'me@mail.com',
    'Gender' => 'm',
    'First name' => 'Oliver',
    'Last name' => 'Liermann',
    'Language code' => 'de-de',
));

Last response header: HTTP / 1.1 200 OK X-SiteConfidence: jenppb601 Content-Location: http: // . *** . * / General / html / pages / layouts / columnContent.jsp Content-Language: de-DE Content-Type: text / html; charset = UTF-8 Date: Fri, May 18, 2012 3:50:01 PM GMT Transmission encoding: chunked Connection: keep-alive Connection: Transfer-Encoding Set-Cookie: JSESSIONID = 0a6d28f530d798c4676f59494491a82035d98e25ff6f.e38Ka38Sax4TbOhtfthefhtfthefhtftheffhtftfhtffh8fh8f8f8faff8fa8f8fa8fa8f8fa8f8a5a8a5a5a6a5a5a6a5a5a5a5a5a5a5a6a5a6a6a5a6a6a6a6a6a6a6a6a6a5a6a1a6a1a3a3a3a3bfff1fcfcfcfcfcfcfc0 path = / Cache-Control: private

: POST/html/de_DE/index_DE/index.html HTTP/1.1 Host: . **. * : Keep-Alive: PHP-SOAP/5.2.13 Content-Type: text/XML; = UTF-8 SOAPAction: "" Content-Length: 937 : c3RyZ19ka29zaGF2ZTpsNFB3TVZqDlRhZUc1cg == Cookie: JSESSIONID = 0a6e28e930d70301b8f6dd3e8a2598bff7cef065809a.e38Pa3mLbx4Oci0Mah4Qb34TbxmOe6fznA5Pp7etoltGmkTy; BIGipServerPirobase = 254438666.20480.0000;

PHP: 5.2.13

+3
2

PHP 5.3

$client = new SoapClient("< some url  >", 
    array(
        'trace' => 1,
        'stream_context' => stream_context_create(
            array(
                'http' => array(
                    'protocol_version' => 1.0,
                ),
            )
        ),
    )
);
+12

PHP 5.4.4 Transfer-Encoding: chunked:

$client = new SoapClient("< some url  >", 
    array(
        'trace' => 1,
        'stream_context' => stream_context_create(
            array(
                'http' => array(
                    'protocol_version' => 1.0,
                    'header' => "Transfer-Encoding: chunked\r\n",
                ),
            )
        ),
    )
);
0

All Articles