Beispiel #1
0
        private void testRetrieveCommissions()
        {
            CustomerSalesServicesClient client = new CustomerSalesServicesClient();

            retrieveCommissionsRequest request = new retrieveCommissionsRequest();
            identityDTO idensales = new identityDTO();

            idensales.documentType          = document.CPF;
            idensales.documentTypeSpecified = true;
            idensales.documentValue         = "06573508696";

            salesman salman = new salesman();

            salman.identity = idensales;

            request.pageNumber          = 1;
            request.pageNumberSpecified = true;
            request.salesman            = salman;



            retrieveCommissionsResponse response = null;

            try {
                response = client.retrieveCommissions(request);

                Console.WriteLine("Response = " + response);
            } catch (Exception ex) {
                Console.WriteLine("Exception to call service : " + ex);
            }
        }
 public retrieveCommissionsResponse retrieveCommissions(retrieveCommissionsRequest retrieveCommissionsRequest)
 {
     return(client.retrieveCommissions(retrieveCommissionsRequest));
 }