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

From: Date: Wed, 29 Dec 2010 16:27:50 +0000
Subject: Re: [SOAP] Need help figuring out what I'm doing wrong accessing this Web Service
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-3195@lists.php.net to get a copy of this message
You are access the $login object incorrectly. PHP does not use dots to denote object levels. You might try: $login->aglogin($agDN, $agUserName, $agPass); Not sure if that will work, but it should get you closer. Jonathan On Dec 29, 2010, at 10:14 AM, newcoder 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


« previous php.soap (#3195) next »