• Ryan Francis Roque 24
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
In my below code, I was able to login and create array of meeting request successfully however I’m getting incorrect method or signature upon calling the final syntax that creating record in Cvent. Please advise and thanks in advance.
 
String acctNum = 'ACTxxxx';
String username = 'USRxxx';
String password = 'PASSxxxx';
 
//login to Cvent - Success
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);

 
//Create Meeting Request - Success
list<CventAPISandboxClass.MeetingRequest> Array_MR = new list<CventAPISandboxClass.MeetingRequest>();
CventAPISandboxClass.MeetingRequest MReq = new CventAPISandboxClass.MeetingRequest();
MReq.Formid = 'testFormid';
MReq.FormName = 'testFormName';
Array_MR.add(MReq);
System.debug(Array_MR);

 
//General Syntax to create record in cvent. - Failed with error incorrect method or signature
CreateMeetingRequestResultArray = CventAPISandboxClass.CreateMeetingRequest(Array_MR);

 

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;