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

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

 



RE to myself: I have got some response from service with these code.
Credential still gives me problem to pass them correctly:
-------------------------------
<?php
require_once 'WAPI.php';
$Wapi = new Wapi();

$credential = new Credential();
$describe= new Describe();
$dscribeResponse = new DescribeResponse();

//set variable od type Credential
$describe->credential = $credential;

$describe->credential->Account = 'acacac';
$describe->credential->Password = 'pspsps';

$describe->sCLTRID = '123123123123';

echo 'print_r($describe) of the argument passed to Discribe metod:'.'<br
/>';
print_r($describe);

//Calling Describe metod:
$DescribeResponse = $Wapi->Describe($describe);

echo '<pre>'; print_r($DescribeResponse); echo '</pre>';
?> 
------------------------------------------------------
And here is result :

---------------------
print_r($describe) of the argument passed to Discribe metod:
Describe Object ( [sCLTRID] => 123123123 [credential] => Credential Object (
[Account] => acacac[Password] => pspsps ) )

DescribeResponse Object
(
    [DescribeResult] => 
  
    Login credentials failed.
  )
-------------------------
and how do I know that sCLTRID parameter is passing ok to the service, cause
when I comment these line:
//$describe->sCLTRID = '123123123123', I get these responce:
-------------------------------
DescribeResponse Object
(
    [DescribeResult] => Server=P3OWCORPAPI001; Source=WsWWDAPI;
Description=sCLTRID is a required parameter.
)
-- 
View this message in context: http://old.nabble.com/Create-function-for-soap-call-to-godaddy-ote-using-given-libraries-tp30743384p30777140.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