Jump to content

PHP, SOAP and cvent


RIRedinPA

Recommended Posts

Has anyone worked with cvent and their api before? I am trying to use PHP and nuSOAP to just login and I keep getting an error message on the login part. I am pretty new at SOAP but I get the concept and the top level stuff if not the intricate stuff.

 

Here's my login code:

 

<?php

//include nusoap

require_once ("nusoap/lib/nusoap.php");

 

//set up parameters

$param = array('AccountNumber' =>'N.........1','UserName' => 'N.........i','Password' => '2.........R');

//set up serverpath

$serverpath = 'https://api.cvent.com/soap/V200611.ASMX?WSDL';

//declare new soapclient, for cvent, the true is absolutely essential, without it you will throw a SOAPAction error

$client = new soapclient($serverpath, true);

//make the call

$loginResult = $client->call('Login',$param);

print_r($loginResult);

 

?>

 

$loginResult gives me this:

 

Array ( [faultcode] => q0:CV10102 [faultstring] => INVALID_LOGIN [faultactor] => http://api.cvent.com/soap/V200611.ASMX [detail] => Array ( [Main-Exception] => Array ( [Exception-Detail] => ) [secondary-Exception] => Array ( [!t:has-more] => yes ) ) )

 

So my question is, other than passing wrong login information is there something in my code above, something I am not including or I shouldn't have that could cause this?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/144338-php-soap-and-cvent/
Share on other sites

  • 4 years later...

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.