+ Start a Discussion
revathyrevathy 

i am gettiong error,when calling Generated by wsdl2apex class?following error!!

Error: Compile Error: Method
does not exist or incorrect signature:
[gelightingComCom433Crdbmemorequest.SI_SFDC_CrDbMemoRequest_433_OB_ASYNCPort].RecordSet(LIST<GE_LGT_EM_ComplaintLineItem__c>)
at line 31 column 5
=======================apex class=========
public class GE_LGT_EM_SAPWebservice{

public gelightingComCom433Crdbmemorequest.RecordSet_element[] RecordSet;
//public gelightingComCom433Crdbmemorequest.RecordSet_element[] SI_SFDC_CrDbMemoRequest_433_OB_ASYNC;
@future(callout = true)
    public static void SfdcTOSapwebservice(set<string>cid)
    {
    string GELGT_result;
    list<GE_LGT_EM_ComplaintLineItem__c>CLIObjList=[select Name,
    GE_LGT_EM_ApprovedQuantity__c,
    GE_LGT_EM_ApprovedUnitPrice__c,
    GE_LGT_EM_Block_CR__c,
    GE_LGT_EM_Doc_Type__c,
    GE_LGT_EM_Material_Number__c,
    GE_LGT_EM_Rejection_Code__c,
    GE_LGT_EM_Sales_Org__c,
    GE_LGT_EM_SAPInvoiceNumber__c
     from GE_LGT_EM_ComplaintLineItem__c where Id=:cid];
   // string[] complineitemset;
  GE_LGT_EM_ComplaintLineItem__c[] slist=new GE_LGT_EM_ComplaintLineItem__c[0];

    for(GE_LGT_EM_ComplaintLineItem__c cli:CLIObjList)
    {
    slist.add(cli);
   }
     system.debug('listobj------>'+slist);
    //call your webservice method and pass all parameters to it
    
   

gelightingComCom433Crdbmemorequest.SI_SFDC_CrDbMemoRequest_433_OB_ASYNCPort
GELGTmainclass = new
gelightingComCom433Crdbmemorequest.SI_SFDC_CrDbMemoRequest_433_OB_ASYNCPort();
    system.debug('main class------>'+GELGTmainclass );
    GELGTmainclass.RecordSet(slist); ---here getting error

  
    }
}

=============================
//Generated by wsdl2apex

public class gelightingComCom433Crdbmemorequest {
    public class RecordSet_element {
        public String ComplaintNumber;
        public String ComplaintLineItemNo;
        public String SAPInvoiceNumber;
        public String SAPInvoiceLineItemNo;
        public String ApprovedQuantity;
        public String ApprovedPrice;
        public String SAPCustomerNumber;
        public String DocType;
        public String CategoryCode;
        public String SalesOrg;
        public String Division;
        public String DistributionChannel;
        public String RejectCode;
        public String BlockCR;
        public String MaterialNumber;
       
private String[] ComplaintNumber_type_info = new
String[]{'ComplaintNumber','urn:gelighting.com:COM_433:CrDbMemoRequest',null,'0','1','false'};
       
private String[] ComplaintLineItemNo_type_info = new
String[]{'ComplaintLineItemNo','urn:gelighting.com:COM_433:CrDbMemoRequest',null,'0','1','false'};
       
private String[] SAPInvoiceNumber_type_info = new
String[]{'SAPInvoiceNumber','urn:gelighting.com:COM_433:CrDbMemoRequest',null,'0','1','false'};
       
private String[] SAPInvoiceLineItemNo_type_info = new
String[]{'SAPInvoiceLineItemNo','urn:gelighting.com:COM_433:CrDbMemoRequest',null,'0','1','false'};
       
private String[] ApprovedQuantity_type_info = new
String[]{'ApprovedQuantity','urn:gelighting.com:COM_433:CrDbMemoRequest',null,'0','1','false'};
       
private String[] ApprovedPrice_type_info = new
String[]{'ApprovedPrice','urn:gelighting.com:COM_433:CrDbMemoRequest',null,'0','1','false'};
       
private String[] SAPCustomerNumber_type_info = new
String[]{'SAPCustomerNumber','urn:gelighting.com:COM_433:CrDbMemoRequest',null,'0','1','false'};
       
private String[] DocType_type_info = new
String[]{'DocType','urn:gelighting.com:COM_433:CrDbMemoRequest',null,'0','1','false'};
       
private String[] CategoryCode_type_info = new
String[]{'CategoryCode','urn:gelighting.com:COM_433:CrDbMemoRequest',null,'0','1','false'};
       
private String[] SalesOrg_type_info = new
String[]{'SalesOrg','urn:gelighting.com:COM_433:CrDbMemoRequest',null,'0','1','false'};
       
private String[] Division_type_info = new
String[]{'Division','urn:gelighting.com:COM_433:CrDbMemoRequest',null,'0','1','false'};
       
private String[] DistributionChannel_type_info = new
String[]{'DistributionChannel','urn:gelighting.com:COM_433:CrDbMemoRequest',null,'0','1','false'};
       
private String[] RejectCode_type_info = new
String[]{'RejectCode','urn:gelighting.com:COM_433:CrDbMemoRequest',null,'0','1','false'};
       
private String[] BlockCR_type_info = new
String[]{'BlockCR','urn:gelighting.com:COM_433:CrDbMemoRequest',null,'0','1','false'};
       
private String[] MaterialNumber_type_info = new
String[]{'MaterialNumber','urn:gelighting.com:COM_433:CrDbMemoRequest',null,'0','1','false'};
        private String[] apex_schema_type_info = new String[]{'urn:gelighting.com:COM_433:CrDbMemoRequest','false','false'};
       
private String[] field_order_type_info = new
String[]{'ComplaintNumber','ComplaintLineItemNo','SAPInvoiceNumber','SAPInvoiceLineItemNo','ApprovedQuantity','ApprovedPrice','SAPCustomerNumber','DocType','CategoryCode','SalesOrg','Division','DistributionChannel','RejectCode','BlockCR','MaterialNumber'};
    }
    public class DT_SFDC_CrDbMemoRequest {
        public gelightingComCom433Crdbmemorequest.RecordSet_element[] RecordSet;
       
private String[] RecordSet_type_info = new
String[]{'RecordSet','urn:gelighting.com:COM_433:CrDbMemoRequest',null,'0','-1','false'};
        private String[] apex_schema_type_info = new String[]{'urn:gelighting.com:COM_433:CrDbMemoRequest','false','false'};
        private String[] field_order_type_info = new String[]{'RecordSet'};
    }
    public class SI_SFDC_CrDbMemoRequest_433_OB_ASYNCPort {
       
public String endpoint_x =
'http://lxv2000.light.ge.com:50200/XISOAPAdapter/MessageServlet?channel=:BC_SFDC:COM_433_SFDC_CrDbMemoRequest_SOAP_SCC&version=3.0&Sender.Service=BC_SFDC&Interface=urn%3Agelighting.com%3ACOM_433%3ACrDbMemoRequest%5ESI_SFDC_CrDbMemoRequest_433_OB_ASYNC';
        public Map<String,String> inputHttpHeaders_x;
        public Map<String,String> outputHttpHeaders_x;
        public String clientCertName_x;
        public String clientCert_x;
        public String clientCertPasswd_x;
        public Integer timeout_x;
       
private String[] ns_map_type_info = new
String[]{'urn:gelighting.com:COM_433:CrDbMemoRequest',
'gelightingComCom433Crdbmemorequest'};
        public
gelightingComCom433Crdbmemorequest.RecordSet_element[]
SI_SFDC_CrDbMemoRequest_433_OB_ASYNC(gelightingComCom433Crdbmemorequest.RecordSet_element[]
RecordSet) {
           
gelightingComCom433Crdbmemorequest.DT_SFDC_CrDbMemoRequest request_x =
new gelightingComCom433Crdbmemorequest.DT_SFDC_CrDbMemoRequest();
            gelightingComCom433Crdbmemorequest.DT_SFDC_CrDbMemoRequest response_x;
            request_x.RecordSet = RecordSet;
           
Map<String,
gelightingComCom433Crdbmemorequest.DT_SFDC_CrDbMemoRequest>
response_map_x = new Map<String,
gelightingComCom433Crdbmemorequest.DT_SFDC_CrDbMemoRequest>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://sap.com/xi/WebService/soap1.1',
              'urn:gelighting.com:COM_433:CrDbMemoRequest',
              'MT_SFDC_CrDbMemoRequest',
              'urn:gelighting.com:COM_433:CrDbMemoRequest',
              'MT_SFDC_CrDbMemoRequest',
              'gelightingComCom433Crdbmemorequest.DT_SFDC_CrDbMemoRequest'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.RecordSet;
        }
    }
}

Ashish_SFDCAshish_SFDC

Hi Revathy, 

Looks like this error falls on "gelightingComCom433Crdbmemorequest.SI_SFDC_CrDbMemoRequest_433_OB_ASYNCPort" , 

This line seems to have missed a statement or a space or an instantiation, please check the same. 

Regards,

Ashish