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

From: Date: Wed, 29 Dec 2010 18:27:48 +0000
Subject: Re: [SOAP] Need help figuring out what I'm doing wrong accessing this Web Service
References: 1 2 3 4 5  Groups: php.soap 
Request: Send a blank email to php-soap+get-3204@lists.php.net to get a copy of this message
On 29 December 2010 18:21, newcoder <tillman.stevens@rockingr.net> wrote: > > Don't suppose you can point me to a quick reference on examining objects to > determine what their parameters are? > > For example, if I request a set of data using the webservices I just logged > into, but I'm not sure what data is returning in the object, is there a way > to flip through each parameter and get the parameter name? > > Uggh, really need to find my php books. > > > > RQuadling wrote: >> >> On 29 December 2010 17:56, newcoder <tillman.stevens@rockingr.net> wrote: >>> >>> When I try those, it errors giving me the following: >>> >>> Catchable fatal error: Object of class agLoginResponse could not be >>> converted to string in C:\XAMPP\xampp\htdocs\agsync\AgLoginTest.php on >>> line >>> 22 >>> >>> That's where your test script tries to echo the $response object. >>> >>> Like I said, I guess I have to go refresh on accessing objects in PHP >>> >>> Thanks >>> >>> >>> RQuadling wrote: >>>> >>>> On 29 December 2010 16:14, newcoder <tillman.stevens@rockingr.net> >>>> wrote: >>>>> >>>>> Here's my code: >>>>> >>>>> <?php >>>>> >>>>>     echo "<p>sync test page</p>"; >>>>> >>>>> // test connection to agwebservice >>>>> >>>>>     $agLogURL = >>>>> >>>>>  "https://www.agemni.com/_snet/AgemniLogin.asmx?WSDL"; >>>>>     $agDN =        "myDNnumber"; >>>>>     $agUserName =  "myUserName"; >>>>>     $agPass =      "myPassword"; >>>>> >>>>>     $login = new SoapClient($agLogURL); >>>>> >>>>>          $login.service.aglogin($agDN, $agUserName, $agPass); >>>>> >>>>> ?> >>>>> >>>>> This is the resulting error when I run the script: >>>>> >>>>> sync test page >>>>> >>>>> Catchable fatal error: Object of class SoapClient could not be >>>>> converted >>>>> to >>>>> string in C:\XAMPP\xampp\htdocs\agsync\syncwork.php on line 14 >>>>> >>>>> >>>>> Not sure if you need more info to be able to help me, but the >>>>> webservice >>>>> is >>>>> defined here: >>>>> d >>>>> >>>>> http://wiki.agemni.com/Getting_Started/APIs/Agemni_CMS_Sync#Method_details >>>>> >>>>> http://wiki.agemni.com/Getting_Started/APIs/Agemni_CMS_Sync#Method_detailshttp://wiki.agemni.com/Getting_Started/APIs/Agemni_CMS_Sync#Method_details >>>>> >>>>> -- >>>>> View this message in context: >>>>> >>>>> http://old.nabble.com/Need-help-figuring-out-what-I%27m-doing-wrong-accessing-this-Web-Service-tp30552173p30552173.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 >>>>> >>>>> >>>> >>>> Take a look at ... >>>> >>>> http://pastebin.com/6XZBu6C0 >>>> >>>> and >>>> >>>> http://pastebin.com/rhv8JE0V >>>> >>>> The first is generated by wsdl2php and the second is a simple test >>>> framework I use for SOAP services. >>>> >>>> >>>> -- >>>> 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 >>>> >>>> >>>> >>> >>> -- >>> View this message in context: >>> >>> http://old.nabble.com/Need-help-figuring-out-what-I%27m-doing-wrong-accessing-this-Web-Service-tp30552173p30552797.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 >>> >>> >> >> Ah. Yes. >> >> echo $response->agLoginResult->any; >> >> >> -- >> 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 >> >> >> > > -- > View this message in context: > http://old.nabble.com/Need-help-figuring-out-what-I%27m-doing-wrong-accessing-this-Web-Service-tp30552173p30552922.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 > > Normally, the WSDL file would describe it. But in this instance, the wsdl file says XML. So you have to refer to the service provider's documentation. Very inefficient. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

« previous php.soap (#3204) next »