发送XML文件的Andr​​oid使用HTTP POST [英] Send xml files in android with http post

查看:131
本文介绍了发送XML文件的Andr​​oid使用HTTP POST的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人知道一个很好的教程。我在我的应用程序2 edittexts用户名和密码。我想在XML文件中写入这些并将其发送到我的服务器。我在想这将打开连接,写XML,将其发送,并等待一个答案的函数,这个函数有两个输入参数,这些参数的用户名和密码。 请给我code建议:-)感谢

I want to know if anyone knows a good tutorial. I have in my app 2 edittexts with username and password. I want to write these in an xml file and send it to my server. I was thinking about a function which opens the connection, writes the xml, sends it, and waits for an answer, and this function will have two input parameters which are username and password. Please send me code suggestions :-) thanks

推荐答案

您的问题已问过:的 Android的,通过HTTP POST(SOAP)发送XML 一个简单的谷歌搜索:Android的HTTP POST XML返回的结果,当然等方面具有搜索功能太;)

Your question has been asked before: Android, sending XML via HTTP POST (SOAP) A simple google search of: android http post xml returned that result, of course SO has a search feature too ;)

这篇关于发送XML文件的Andr​​oid使用HTTP POST的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆