+ Start a Discussion
IntegrationGuyIntegrationGuy 

Error Apex Generation Failed No type specified for element RequestInfo

Hi All,
this is my wsdl
https://staging.identitymanagement.lexisnexis.com/identity-proofing/services/identityProofingServiceWS/v2?wsdl
I am not able to parse it. Getting Error Apex Generation Failed No type specified for element RequestInfo message.
Best Answer chosen by IntegrationGuy
IntegrationGuyIntegrationGuy
Adding type="xsd:string" in line number 105 has resolved the issue. But i still want to know how to pass username and password in SOAP headers. Help me.

All Answers

IntegrationGuyIntegrationGuy
Adding type="xsd:string" in line number 105 has resolved the issue. But i still want to know how to pass username and password in SOAP headers. Help me.
This was selected as the best answer
VineetKumarVineetKumar
You need to refer your WSDL stub classes and documentation to know the exact parameter name to get the details
Some thing like below :
APIServiceSoap dsApiSend = new .APIServiceSoap();
dsApiSend.endpoint_x = <endpoint>;
dsApiSend.inputHttpHeaders_x = new Map<String, String>();
dsApiSend.inputHttpHeaders_x.put('X-API-Authentication', '<Credentials>'+
											'<Username>'+ <Value> + '</Username>'+
											'<Password>'+ <Value> + '</Password>'+
											'<IntegratorKey>' + <Value> + '</IntegratorKey>'+
										'</Credentials>');
dsApiSend.timeout_x = 120000;