Re: Create function for soap call to godaddy ote using given libraries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Anather codde I tryed, but responca is again the same:
code:
------------------------------

<?php
//NUSOAP Array
echo '<h3>NUSOAP Array</h3>';

require_once('lib/nusoap.php');

$credential = array(
                  "Account" => 'acacac', 
		  "Password" => 'pspsps'); 
$param =array(
                  "sCLTRID" => "123123123",
		  "credential" => $credential); 

 print_r($param); 

// define path to server application (the true parameter is absolutely
crucial)
$endpoint_path =
'https://api.ote.wildwestdomains.com/wswwdapi/wapi.asmx?wsdl';
   
$client = new nusoap_client($endpoint_path, true);

//MY CONFIG
$client->soap_defencoding = 'UTF-8';//set Header request: charset=UTF-8 and
body encoding="UTF-8" 
$client->decode_utf8 = true;

$client->setHTTPEncoding($enc = 'gzip, deflate'); //set header POST
/wswwdapi/wapi.asmx HTTP/1.1
//print_r($client); 
        
// make the call
$DescribeResponse = $client->call('Describe',$param);

//Print resaut
foreach ($DescribeResponse as $value) {
    echo '<br />'.'DescribeResponse:
'.'<pre>'.$value.'</pre>'.'/DescribeResponse';
}

//Debug
echo '<h2>Request</h2><pre>' . htmlspecialchars($client->request,
ENT_QUOTES) . '</pre>';
echo '<h2>Response</h2><pre>' . htmlspecialchars($client->response,
ENT_QUOTES) . '</pre>';
echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->debug_str,
ENT_QUOTES) . '</pre>';

?>
------------------------------
Responce:

Print_f($param) - aray passed to Describe($param):
Array ( [sCLTRID] => 123213[credential] => Array ( [Account] =>
acacac[Password] => pspsps ) ) 
DescribeResponse:

  Login credentials failed.
  
/DescribeResponse
-- 
View this message in context: http://old.nabble.com/Create-function-for-soap-call-to-godaddy-ote-using-given-libraries-tp30743384p30778004.html
Sent from the Php - Soap mailing list archive at Nabble.com.


-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux