You need to sign in to do that
Don't have an account?
![Champcon Champcon](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
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;
Did you ever receive an answer or find the workaround for this message? I'm getting the same response.
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 :-(