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]

 



On 29 December 2010 22:11, newcoder <tillman.stevens@rockingr.net> wrote:
>
> Ok, still more issues I hope someone can help with.
>
> My code is below:
>
> <?php
>
> // test connection to agwebservice
>
> Â Â Â Â$agLogURL = Â Â"https://www.agemni.com/_snet/AgemniLogin.asmx?WSDL";;
> Â Â Â Â$myLogin->dn = Â Â Â Â"myDN";
> Â Â Â Â$myLogin->username = Â"myUserName";
> Â Â Â Â$myLogin->password = Â Â Â"myPassword";
>
> Â Â Â Â$login = new SoapClient($agLogURL);
>
> Â Â Â Â$LoginResults = $login->aglogin($myLogin);
>
>
> // now get some data
>
> Â Â Â Â$agDataURL = "http://www.agemni.com/_anet/ADBAccess.asmx?WSDL";;
> Â Â Â Â$DataClient = new SoapClient($agDataURL);
>
> Â Â Â Â$DataParams->opName = 'appointment';
> Â Â Â Â$DataParams->startDate = '12/29/2010 12:01:00 AM';
> Â Â Â Â$DataParams->endDate = '12/29/2010 4:00:00 PM';
>
> Â Â Â Â$DataSet = $DataClient->getCMSData($DataParams);
>
> Â Â Â Âecho "<p> This is the print_r of DataSet: </p>";
> Â Â Â Âprint_r($DataSet->getCMSDataResult);
>
> Â Â Â Âecho "<p> This is the vardump of DataSet: </p>";
> Â Â Â Âvar_dump($DataSet->getCMSDataResult);
>
> Â Â Â Â?>
>
> It's just returning no data that I can tell, it should be returning a
> <responseresultset> for each record, up to 1000 records, but I get nothing.
> Here's the resulting output of the above:
>
> Login Results are: myDNmyUserNamexxxxxxx
>
> This is the print_r of DataSet:
> stdClass Object ( [any] => 12/29/2010 12:01:00 AM12/29/2010 4:00:00 PM )
>
> This is the vardump of DataSet:
> object(stdClass)#8 (1) { ["any"]=> string(296) "12/29/2010 12:01:00
> AM12/29/2010 4:00:00 PM" }
>
>
> ... again, here is where it's all documented, but I really need help, they
> don't support developers trying to access it in php, so they're being no
> help at all, really.
>
> http://wiki.agemni.com/Getting_Started/APIs/Agemni_CMS_Sync#CMS_Sync_Web_Service_Protocol

They seem happy to document what they require but don't care about
what is sent back.

Can you var_dump($service->__getLastResponse()) to show EXACTLY what
is returned?

It is entirely possible to create a class which matches the response
type and add that class to the soapclient classmap. That way, you will
get a decoded object as the result rather than a junk string.

-- 
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




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

  Powered by Linux