Jump to content

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


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

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.