You need to sign in to do that
Don't have an account?
Testclass: how to write test class for the below class. I'm unable to find out!
public class tempuriOrgAddClient28 {
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 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'};
}
public class AddClientsResponse_element {
private String[] apex_schema_type_info = new String[]{'http://tempuri.org/','true','false'};
private String[] field_order_type_info = new String[]{};
}
public class AddClients_element {
public String ClientName;
public String ClientId;
private String[] ClientName_type_info = new String[]{'ClientName','http://www.w3.org/2001/XMLSchema','string','0','1','false'};
private String[] ClientId_type_info = new String[]{'ClientId','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[]{'ClientName','ClientId'};
}
public class AddClientSoap {
public String endpoint_x = 'http://184.168.20.92:1025/AddClient.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/', 'tempuriOrgAddClient28'};
public String HelloWorld() {
tempuriOrgAddClient28.HelloWorld_element request_x = new tempuriOrgAddClient28.HelloWorld_element();
tempuriOrgAddClient28.HelloWorldResponse_element response_x;
Map<String, tempuriOrgAddClient28.HelloWorldResponse_element> response_map_x = new Map<String, tempuriOrgAddClient28.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',
'tempuriOrgAddClient28.HelloWorldResponse_element'}
);
response_x = response_map_x.get('response_x');
return response_x.HelloWorldResult;
}