Discussions
Cannot create TimeBill
Hi ,
I want to create a TimeBill using Webservices (2.5 Version) and we are getting error like "[Error]: [Code=UNEXPECTED_ERROR] An unexpected error occurred." . We are using the following code. pls help me out ....
TimeBill timebill = new TimeBill();
RecordRef ref = new RecordRef();
ref.setInternalId("969");
timebill.setEmployee(ref);
ref = null;
ref = new RecordRef();
ref.setInternalId("1");
timebill.setLocation(ref);
ref = null;
ref = new RecordRef();
ref.setInternalId("-5");
timebill.setCustomer(ref);
timebill.setHours("1.1");
timebill.setExternalId("MYTIME01");
Calendar ca = Calendar.getInstance(Locale.US);
ca.set(Integer.parseInt("2007"), Integer.parseInt("7"), Integer
.parseInt("12"));
timebill.setTranDate(ca);
WriteResponse response = _port.add(timebill);
Thanks,
Derykm