-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBillingServiceProxy.cls
62 lines (60 loc) · 3.59 KB
/
BillingServiceProxy.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//Generated by wsdl2apex
public class BillingServiceProxy {
public class billProjectRequest_element {
public BillingServiceProxy.project project;
private String[] project_type_info = new String[]{'project','http://salesforce.com/th/invoice-web-service',null,'1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://salesforce.com/th/invoice-web-service','true','false'};
private String[] field_order_type_info = new String[]{'project'};
}
public class project {
public String username;
public String password;
public String projectid;
public String projectRef;
public Double billAmount;
private String[] username_type_info = new String[]{'username','http://salesforce.com/th/invoice-web-service',null,'1','1','false'};
private String[] password_type_info = new String[]{'password','http://salesforce.com/th/invoice-web-service',null,'1','1','false'};
private String[] projectid_type_info = new String[]{'projectid','http://salesforce.com/th/invoice-web-service',null,'1','1','false'};
private String[] projectRef_type_info = new String[]{'projectRef','http://salesforce.com/th/invoice-web-service',null,'1','1','false'};
private String[] billAmount_type_info = new String[]{'billAmount','http://salesforce.com/th/invoice-web-service',null,'1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://salesforce.com/th/invoice-web-service','true','false'};
private String[] field_order_type_info = new String[]{'username','password','projectRef','projectid','billAmount'};
}
public class billProjectResponse_element {
public String status;
private String[] status_type_info = new String[]{'status','http://salesforce.com/th/invoice-web-service',null,'1','1','false'};
private String[] apex_schema_type_info = new String[]{'http://salesforce.com/th/invoice-web-service','true','false'};
private String[] field_order_type_info = new String[]{'status'};
}
public class InvoicesPortSoap11 {
public String endpoint_x = 'http://sb-integration-bs.herokuapp.com:80/ws';
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://salesforce.com/th/invoice-web-service', 'BillingServiceProxy'};
public String billProject(BillingServiceProxy.project project) {
BillingServiceProxy.billProjectRequest_element request_x = new BillingServiceProxy.billProjectRequest_element();
request_x.project = project;
BillingServiceProxy.billProjectResponse_element response_x;
Map<String, BillingServiceProxy.billProjectResponse_element> response_map_x = new Map<String, BillingServiceProxy.billProjectResponse_element>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'',
'http://salesforce.com/th/invoice-web-service',
'billProjectRequest',
'http://salesforce.com/th/invoice-web-service',
'billProjectResponse',
'BillingServiceProxy.billProjectResponse_element'}
);
response_x = response_map_x.get('response_x');
return response_x.status;
}
}
}