Java RuntimeException无法序列化UUID

时间:2012-12-16 15:20:43

标签: java android runtime

AndroidSide:

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无法在wcf的调用服务时序列化员工ID的UUID请我需要这个帮助...该怎么办?

0 个答案:

没有答案