Re: Need help figuring out what I'm doing wrong accessing this Web Service

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

 





RQuadling wrote:
> 
> 
> If you've got the cookie, then you need to split it into name/value ...
> 
> list($name, $value) = explode('=', $cookie, 2);
> 
> should do that just fine.
> 
> So, with that, you can now do ...
> 
> $service = new ServiceXYZ();
> $service->__setCookie($name, $value);
> 
> And that is a LOT easier than using a stream context. Next time, I'll
> RTFM.
> -- 
> Richard Quadling
> Twitter : EE : Zend
> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
> 
> --
> PHP Soap Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

and that worked great! I did this:

		// explose the cookie
		list($s_CookieName, $s_CookieValue) = explode('=', $s_Cookie, 2);

		// try setting the cookie using the soapClient method __setCookie

		$agDataService->__setCookie($s_CookieName, $s_CookieValue);
		//$agDataService->__setCookie('https', $s_Cookie);
		
		// try a simple request - getCMSTables()
		$agTables = $agDataService->getCMSTables();

		echo '<p style="color:blue"> print_r($agTables): </p><p> ';
		print_r($agTables);
		echo '</p>';

and it returned:

print_r($agTables):

stdClass Object ( [getCMSTablesResult] => stdClass Object ( [any] =>
accounts
appointment
employee
invoice_line_item
) ) 

so, I know we're now successfully authenticating, however, when I do the
next request:

		$agColumns = $agDataService->getCMSTableColumns('employee');

		echo '<p style="color:blue"> print_r($agColumns): </p><p> ';
		print_r($agColumns);
		echo '</p>';

the following is returned:

print_r($agColumns):

stdClass Object ( [getCMSTableColumnsResult] => stdClass Object ( [any] => )
) 

and the documentation of the getCMSTableColumns is:

getCMSTableColumns
This is a generic method used to get the column names for a specified table 
                                                              
1) The method takes an operation type that specifies which table to retreive
data from. 
Input Name           Description                                 
Table                     This is the table which you want the column names
for.


Any idea what I might be doing wrong now?
-- 
View this message in context: http://old.nabble.com/Need-help-figuring-out-what-I%27m-doing-wrong-accessing-this-Web-Service-tp30552173p30630568.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