In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "how to pass XML as a parameter in android ksoap2". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to pass XML as a parameter in android ksoap2.
Article catalogue
Treatment method
I need to send webservice in my android app, so I use ksop2 to send it, which is not very smooth during the test and does not work properly.
My web service request format is as follows
[string?] [string?] [string?] [string?]
I use ksoap2 in my android code as follows
SoapObject request = new SoapObject ("Namespace", "methodname"); request.addProperty (properyObject); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope (SoapEnvelope.VER11); / / SOAP is implemented in dotNet true/false. Envelope.dotNet = true; MarshalDouble md = new MarshalDouble (); / / envelope.implicitTypes = true; envelope.implicitTypes = true; md.register (envelope); / / Set request data into envelope and send request using HttpTransport envelope.setOutputSoapObject (request); HttpTransportSE androidHttpTransport = new HttpTransportSE (mInObj.getUrl (), networkTimeOut); androidHttpTransport.debug= true; androidHttpTransport.call (SoapAction, envelope,headerPropertyArrayList)
The ksop2 looks like this after processing the request
B5B2FDF87E848946red
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.