1

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;
}

このエラーが発生しましたJavaRuntimeExceptionは、wcfのサービスを呼び出すときに従業員IDのUUIDをシリアル化できません。これについてはヘルプが必要です...どうすればよいですか?

4

0 に答える 0