Guest User

Untitled

a guest
Oct 16th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. global TaxSvc.GetTaxResult GetTax(TaxSvc.GetTaxRequest GetTaxRequest) {
  2. TaxSvc.GetTax_element request_x = new TaxSvc.GetTax_element();
  3. TaxSvc.GetTaxResponse_element response_x;
  4. request_x.GetTaxRequest = GetTaxRequest;
  5. Map<String, TaxSvc.GetTaxResponse_element> response_map_x = new Map<String, TaxSvc.GetTaxResponse_element>();
  6. response_map_x.put('response_x', response_x);
  7. system.debug('testing 123');
  8. WebServiceCallout.invoke(
  9. this,
  10. request_x,
  11. response_map_x,
  12. new String[]{endpoint_x,
  13. 'http://avatax.avalara.com/services/GetTax',
  14. 'http://avatax.avalara.com/services',
  15. 'GetTax',
  16. 'http://avatax.avalara.com/services',
  17. 'GetTaxResponse',
  18. 'TaxSvc.GetTaxResponse_element'}
  19. );
  20. system.debug('above response_map_x');
  21. response_x = response_map_x.get('response_x');
  22. system.debug('Response: '+response_x);
  23. return response_x.GetTaxResult;
  24. }
Add Comment
Please, Sign In to add comment