You need to sign in to do that
Don't have an account?
honey.narang
Soap API Integration
Apex class to call : - global class WebserviceCall2 {
public WebserviceCall2(ApexPages.StandardController controller) {
}
public WebserviceCall2() {
}
@future (callout=true)
WebService static void sendOpp() {
wsdlToApex1.InsertSFProjDetailsSoap soap = new wsdlToApex1.InsertSFProjDetailsSoap();
wsdlToApexnew.InsertSFProjDetailsSoap soap = new wsdlToApexnew.InsertSFProjDetailsSoap();
wsdlToApexnew.InsertSFProjectDetailsResponse_element prjctRes = new wsdlToApexnew.InsertSFProjectDetailsResponse_element();
system.debug('soap instance'+soap);
prjctRes.InsertSFProjectDetailsResult = soap.InsertSFProjectDetails(21212121,'narang','projhoney','div121','workhh',datetime.now(),111,'from','trade','purchase','Automative','aa','asasa','asda','normal','asdwew','erzvc',1,1,1,1,'cool','ewrda','aswerA','honeynarang','kvp','honeyhoney','sos');
system.debug('soap instance'+prjctRes.InsertSFProjectDetailsResult);
}
}
Error i am getting as "Unable to parse callout response. Apex type not found for element " Please hepmeon this