function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ChampconChampcon 

cvent webservcices

I am getting an error when I try to do a webservice callout to cvent.  I am using the SOAP1.1 wsdl

 

11:31:10.147 (1147039000)|EXCEPTION_THROWN|[877]|System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element http://schemas.cvent.com/api/2006-11=LoginResult
11:31:10.147 (1147193000)|METHOD_EXIT|[18]|01pW00000008dg0|apiCventCom200611.V200611Soap.Login(String, String, String)
11:31:10.147 (1147211000)|CONSTRUCTOR_EXIT|[1]|01pW00000008di6|<init>()
11:31:10.147 (1147280000)|FATAL_ERROR|System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element http://schemas.cvent.com/api/2006-11=LoginResult

 

public apiCventCom200611.V200611Soap cv = new apiCventCom200611.V200611Soap();
    
    public ImportUserSurvey() {
         schemasCventComApi200611.LoginResult LoginResult = cv.Login(account, username, password);
        
         //assign login object to session
          cv.CventSessionHeaderValue = new cv.CventSessionHeader();
          cv.CventSessionHeaderValue.CventSessionValue = loginResult.CventSessionHeader;              


dcrofforddcrofford

Did you ever receive an answer or find the workaround for this message?  I'm getting the same response.

Gina GarciaGina Garcia
Hi, I am having difficulty to log in to Cvent API Web Service. I am always getting "Access is denied." Could you please share your code in logging in to Cvent API Web Service.? Many thanks.
Ryan Francis Roque 24Ryan Francis Roque 24

Hi Ate Gina  - I was able to login successfully using apex code below. Make sure you are using user define on the SOAP API USAGE section.


String acctNum = 'ACCTxxxx';
String username = 'Userxxxxx';
String password = 'Passxxxxx';

CventAPISandboxClass.V200611Soap soap = new CventAPISandboxClass.V200611Soap();
CventAPISandboxClass.LoginResult loginResult = soap.Login(acctNum, username, password);   
CventAPISandboxClass.CventSessionHeader session = new CventAPISandboxClass.CventSessionHeader();
session.CventSessionValue = loginResult.CventSessionHeader;
soap.CventSessionHeader = session;
system.debug(loginResult);

 

Nasa part nako ng insert record to cvent object which is struggle  huhuhu :-(