Jump to content

PEAR::SOAP very simple example returns errors (SOAP_Client)


poisa

Recommended Posts

I'm trying to connect to as SOAP service (Vertical Response's to be more precise).

 

I run the following script but it returns an error message saying that the "login" function is not existent. As you can tell this is my first attempt at anything related to SOAP but as far as my humble Google research goes, once connected to the service, the client should somehow "incorporate" the service's functions. Well, this is not happening.

 

<?php
require ('SOAP/Client.php');
$soapclient = new SOAP_Client('https://api.verticalresponse.com/wsdl/1.0/VRAPI.wsdl', true);
$session_id = $soapclient->login(array('username' => 'test', 'password' => 'test', 'session_duration_minutes' => '3'));
echo $sid;
?> 

 

PEAR packages installed are:

 

Mail_mimeDecode  1.5.0   stable
Net_DIME         0.3     beta
Net_SMTP         1.2.10  stable
Net_Socket       1.0.8   stable
Net_URL          1.0.15  stable
PEAR             1.6.2   stable
SOAP             0.11.0  beta
XML_Parser       1.2.8   stable
XML_RPC          1.4.0   stable
XML_Serializer   0.18.0  beta
XML_Util         1.1.4   stable

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.