Hello Martin,
please note my below step:
-
Created an ASP. Net WebService Application (VS 2010 SP1) with target framewoek 3.0
-
Added a custom service to my project (I created this custom service with the custCustomerService functionalities (create, read, update, delete…)
-
After Building the WebSite i got 16 Errors (regardless the target framework - i changed it between 3.0 3.5 and 4)
Error as below:
The type or namespace name ‘AxdEntity_CustTable’ could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name ‘AxdCustomer’ could not be found (are you missing a using directive or an assembly reference?)
the above error is happening on a certain class where i am trying to create a customer. The code is as follow:
CustomerServiceClient proxy = new CustomerServiceClient();
CallContext context = new CallContext();
context.Company = “ceu”;
AxdCustomer customer = new AxdCustomer();
AxdEntity_CustTable custTable = new AxdEntity_CustTable();
custTable.AccountNum = “998899”;
custTable.Currency = “USD”;
custTable.CustGroup = “20”;
custTable.OneTimeCustomer = AxdExtType_OneTimeCustomer.Yes;
custTable.OneTimeCustomerSpecified = true;
//Create the party record
AxdEntity_DirParty_DirPerson party = new AxdEntity_DirParty_DirPerson();
party.NameAlias = “Jhon”;
//Set the name fields
AxdEntity_PersonName personName = new AxdEntity_PersonName();
personName.FirstName = “John”;
personName.LastName = “Longhorn”;
//Add the names to the party record and set the name sequence
party.PersonName = new AxdEntity_PersonName[1] { personName };
party.NameSequence = “FirstLast”;
//Add the addresses to the party record and the party to the CustTable record
custTable.DirParty = new AxdEntity_DirParty_DirPartyTable[1] { party };
//Add the CustTable record to the Customer entity
customer.CustTable = new AxdEntity_CustTable[1] { custTable };
//Create the customer
proxy.create(context, customer);
}
catch (Exception ex)
{
Console.WriteLine(“Error encountered: {0}”, ex.Message);
// Take other error action as needed.
}
I am having the above errors on all AxdEntity, CallContext and CustomerServiceClient (my added webservice is called CustomerService)
Please advise…