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

From: Date: Wed, 29 Dec 2010 22:34:30 +0000
Subject: Re: [SOAP] Need help figuring out what I'm doing wrong accessing this Web Service
References: 1 2 3 4 5 6 7 8  Groups: php.soap 
Request: Send a blank email to php-soap+get-3208@lists.php.net to get a copy of this message
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ÌPª8*„°ù�Z“q > 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

« previous php.soap (#3208) next »