¿Cómo pasar el objeto de androide a servicio web de jabón?

Tengo que pasar un objeto de android a un servicio web de jabón, pero tengo un error que el objeto de controlador es nulo. ¿Cómo puedo pasar un objeto al servicio web de jabón sin obtener este error?

Aquí está el objeto:

<soap:Body> <CreateDriver xmlns="http://tempuri.org/"> <objDriver> <status>int</status> <DriverId>int</DriverId> <FirstName>string</FirstName> <LastName>string</LastName> <AccessCode>string</AccessCode> <Picture>string</Picture> <Signature>string</Signature> <Email>string</Email> <Phone>string</Phone> <Status>int</Status> <CreationDate>dateTime</CreationDate> <ModificationDate>dateTime</ModificationDate> <CreatedUserId>int</CreatedUserId> <CreatedUser> <status>int</status> <UserID>int</UserID> <FirstName>string</FirstName> <LastName>string</LastName> <UserName>string</UserName> <Password>string</Password> <ConfirmPassword>string</ConfirmPassword> <UserMail>string</UserMail> <CreationDate>dateTime</CreationDate> <ModificationDate>dateTime</ModificationDate> <Status>int</Status> <CreatedUserId>int</CreatedUserId> <ModifiedUserId>int</ModifiedUserId> </CreatedUser> <ModifiedUserId>int</ModifiedUserId> <ModifiedUser> <status>int</status> <UserID>int</UserID> <FirstName>string</FirstName> <LastName>string</LastName> <UserName>string</UserName> <Password>string</Password> <ConfirmPassword>string</ConfirmPassword> <UserMail>string</UserMail> <CreationDate>dateTime</CreationDate> <ModificationDate>dateTime</ModificationDate> <Status>int</Status> <CreatedUserId>int</CreatedUserId> <ModifiedUserId>int</ModifiedUserId> </ModifiedUser> </objDriver> <bytArrPicture>base64Binary</bytArrPicture> <bytArrSignature>base64Binary</bytArrSignature> </CreateDriver> </soap:Body> </soap:Envelope> 

Aquí está mi código:

 public void postData() throws IOException, XmlPullParserException { CreateDriver cDriver = new CreateDriver(); cDriver.setFirstName("n"); cDriver.setLastName("n"); SoapObject objDriver = new SoapObject(NAMESPACE, METHOD_NAME); objDriver.addProperty("FirstName", "n"); objDriver.addProperty("LastName", "n"); // request. // request.addProperty("CreateDriverSimple",request); HttpTransportSE androidHttpTransport = new HttpTransportSE(URL); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope( SoapEnvelope.VER11); envelope.setOutputSoapObject(objDriver); envelope.dotNet = true; // this is the actual part that will call the webservice androidHttpTransport.call(SOAP_ACTION, envelope); SoapObject result = (SoapObject) envelope.bodyIn; 

comprobar este hilo, que tenía un problema similar y la solución se proporcionó allí Android ksoap2 problemas de parámetros

  SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); //Use this to add parameters //request.addProperty("Parameter","Value"); //Declare the version of the SOAP request SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.setOutputSoapObject(request); //Needed to make the internet call HttpTransportSE androidHttpTransport = new HttpTransportSE(URL); try { //this is the actual part that will call the webservice androidHttpTransport.call(SOAP_ACTION, envelope); } catch (Exception e) { e.printStackTrace(); } // Get the SoapResult from the envelope body. SoapObject result = (SoapObject)envelope.bodyIn; 
  • Fuera de memoria en una asignación de bytes (Bitmap como String al servicio web con jabón)
  • El método HttpTransportSe.call () tarda hasta un minuto en llamar al servicio web
  • Solicitud de Android KSOAP2 al servidor SOAP de PHP
  • Algo mal con la importación org.ksoap2.transport.AndroidHttpTransport;
  • Android, KSoap2 y .NET Web Service w / parameters = Resultado NULL
  • Usando addMapping sin el atributo "i: type =" en ksoap2 para android
  • Cómo llamar a un Webservice .NET de Android usando KSOAP2?
  • KSOAP2: Cómo utilizar HttpsTransportSE?
  • Transferencia de matriz de bytes desde servicio de jabón a android
  • Ksoap2 Android tipo inesperado en respuesta
  • Crear solicitud SOAP utilizando KSOAP Android
  • FlipAndroid es un fan de Google para Android, Todo sobre Android Phones, Android Wear, Android Dev y Aplicaciones para Android Aplicaciones.