Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global TaxSvc.GetTaxResult GetTax(TaxSvc.GetTaxRequest GetTaxRequest) {
- TaxSvc.GetTax_element request_x = new TaxSvc.GetTax_element();
- TaxSvc.GetTaxResponse_element response_x;
- request_x.GetTaxRequest = GetTaxRequest;
- Map<String, TaxSvc.GetTaxResponse_element> response_map_x = new Map<String, TaxSvc.GetTaxResponse_element>();
- response_map_x.put('response_x', response_x);
- system.debug('testing 123');
- WebServiceCallout.invoke(
- this,
- request_x,
- response_map_x,
- new String[]{endpoint_x,
- 'http://avatax.avalara.com/services/GetTax',
- 'http://avatax.avalara.com/services',
- 'GetTax',
- 'http://avatax.avalara.com/services',
- 'GetTaxResponse',
- 'TaxSvc.GetTaxResponse_element'}
- );
- system.debug('above response_map_x');
- response_x = response_map_x.get('response_x');
- system.debug('Response: '+response_x);
- return response_x.GetTaxResult;
- }
Add Comment
Please, Sign In to add comment