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
Share on other sites

  • 4 years later...
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.