function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SATZSATZ 

RE: Error in Apex Class from WSDL

Hi all,

I am trying to create the apex class from WSDL The created class contains error like following

 

Error: Compile Error: Method does not exist or incorrect signature: WebServiceCallout.invoke(tempuriOrg1.ServiceSoap, tempuriOrg1.HelloWorld_element, MAP<String,PackageTesting.tempuriOrg1.HelloWorldResponse_element>, LIST<String>) at line 22 column 13

 

Created class

---------------------

 

 //Generated by wsdl2apex

public class tempuriOrg1 {
    public class HelloWorld_element {
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
        private String[] field_order_type_info = new String[]{};
    }
    public class ServiceSoap {
        public String endpoint_x = 'http://173.15.158.230/webservice/Service.asmx';
        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[]{'http://tempuri.org/', 'tempuriOrg1'};
        public String HelloWorld() {
            tempuriOrg1.HelloWorld_element request_x = new tempuriOrg1.HelloWorld_element();
            tempuriOrg1.HelloWorldResponse_element response_x;
            Map<String, tempuriOrg1.HelloWorldResponse_element> response_map_x = new Map<String, tempuriOrg1.HelloWorldResponse_element>();
            response_map_x.put('response_x', response_x);
            WebServiceCallout.invoke(
              this,
              request_x,
              response_map_x,
              new String[]{endpoint_x,
              'http://tempuri.org/HelloWorld',
              'http://tempuri.org/',
              'HelloWorld',
              'http://tempuri.org/',
              'HelloWorldResponse',
              'tempuriOrg1.HelloWorldResponse_element'}
            );
            response_x = response_map_x.get('response_x');
            return response_x.HelloWorldResult;
        }
    }
    public class HelloWorldResponse_element {
        public String HelloWorldResult;
        private String[] HelloWorldResult_type_info = new String[]{'HelloWorldResult','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
        private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
        private String[] field_order_type_info = new String[]{'HelloWorldResult'};
    }
}


My WSDL URL IS:  http://173.15.158.230/webservice/Service.asmx?WSDL

 

what is the problem in the code.Give me the solution for this problem.

 

thanks

sathish

ARCCARCC

Hi SATZ,

Haave you fixed this issue? please let me know how to fix this issue.

 

Any help appreciated.

 

Thanks in advance.