本文介绍了如何将数据从Android应用程序发送到asp.net网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开发一种员工跟踪应用程序,其中任何外出参与公司实地工作的员工都可以通过将他的经纬度地理位置以及他的emp_code发送到网站来提供他的出勤率。收到此详细信息,管理员将能够在地图上查看他的地理位置。请任何人帮我这样做!并告诉我数据库和哪个数据库将如何在这个应用程序中发挥作用



我尝试过:



我是Android和服务器通信应用程序的新手。我为此做了所有基本用户界面,但坚持实际工作

I am trying to develop an application of employee tracking in which any employee who is out for a field work of a company can give his attendance by sending his geo location that is latitude and longitude along with his emp_code to a website and after receiving this details the admin will able to view his geo location on map. Please any one help me to do so!!! and also tel me how database and which database will play its role in this application

What I have tried:

I am new to android and server communication application. I did all basic UI for this but stuck at actual working

推荐答案


public final String SOAP_ACTION = "http://tempuri.org/HelloWorld";

   public  final String OPERATION_NAME = "";

   public  final String WSDL_TARGET_NAMESPACE = "http://tempuri.org/";
       final String SOAP_ADDRESS ="";

       Log.d("errors",pid+" "+lat +" "+longs);

       SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE,OPERATION_NAME);
       PropertyInfo pi=new PropertyInfo();
               pi.setName("pid");
               pi.setValue(pid);
               pi.setType(String.class);
               request.addProperty(pi);


               SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
               SoapEnvelope.VER11);
                       envelope.dotNet = true;
                       envelope.setOutputSoapObject(request);
                       HttpTransportSE httpTransport = new HttpTransportSE(SOAP_ADDRESS);
                       Object response=null;
                       try
                       {
                       httpTransport.call(SOAP_ACTION, envelope);
                       response = envelope.getResponse();
                       }
                       catch (Exception exception)
                       {
                       response=exception.toString();
                       }

       return response.toString();


这篇关于如何将数据从Android应用程序发送到asp.net网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-28 23:22
查看更多