Cancel Sales order from .Net using AIF service in Dynamics ax 2009

i know how to cancel order in AX .

i want to implement this from .net.

below is my code

public void SalesOrderCancellation()

{

AXSalesIntegrationRef.SalesOrderServiceClient salesService = new SalesOrderServiceClient();

AxdSalesOrder axdsales = new AxdSalesOrder();

EntityKey[] AxEntityKey = new EntityKey[1];

AxEntityKey[0] = new EntityKey();

KeyField[] AxKeyField = new KeyField[1];

AxKeyField[0] = new KeyField();

AxKeyField[0].Field = “SalesID”;

AxKeyField[0].Value = “00000306_032”;

AxEntityKey[0].KeyData = AxKeyField;

axdsales = salesService.read(AxEntityKey);

axdsales.SalesTable[0].SalesLine[0].RemainInventPhysicalSpecified = true;

axdsales.SalesTable[0].SalesLine[0].RemainInventPhysical = 0;

axdsales.SalesTable[0].SalesLine[0].RemainSalesPhysicalSpecified = true;

axdsales.SalesTable[0].SalesLine[0].RemainSalesPhysical = 0;

salesService.update(AxEntityKey, axdsales);

}

this code is not working.