安卓端:
public static int DeviceMonitor(UUID Employeeid)
{
SoapObject request = new SoapObject(SOAPNAMESPACE,SOAPLOGINMETHOD);
request.addProperty("Employeeid",Employeeid);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
Log.d("Device insert out",""+ envelope.bodyOut.toString());
try{HttpTransportSE httpTransport = new HttpTransportSE(SOAPURL);
httpTransport.call(SOAPLOGINACTION, envelope);
SoapObject response=(SoapObject)envelope.bodyIn;
id=Integer.parseInt(response.getProperty(0).toString());
}catch (Exception exception){
Log.d("Device Insertion Service Exception:::","\tExceptionMessage:"+exception.toString());
exception.printStackTrace();
}
return id;}
WCF 方面:
public int InsertEmployee(Guid Empid)
{
int counter = 0;
WrosDBEntities dbContext = new WrosDBEntities();
EmployeeType emp = new EmployeeType();
emp .SecurityID = Guid.NewGuid();
emp .FK_EMPID = Empid;
context.AddToDeviceSecurities(emp );
context.SaveChanges();
counter++;
return counter;
}
return 0;
}
我有这个错误 Java RuntimeException cannot Serialize UUID of employee id when call service of wcf 请我需要帮助...该怎么办?