android-ksoap2

using addMapping without the “i:type=” attribute in ksoap2 for android

牧云@^-^@ 提交于 2019-12-09 00:06:39
问题 I am using the envelope.addMapping function in ksoap2 and I need to make it generate items with no i:type attribute. This is the soap request my code generates <v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://www.w3.org/2003/05/soap-encoding" xmlns:v="http://www.w3.org/2003/05/soap-envelope"> <v:Header> <ApiKey xmlns="urn:example:data">APIKey</ApiKey> </v:Header> <v:Body> <CreateScan xmlns="urn:example:services" id="o0"

Sending images using ksoap2 android

限于喜欢 提交于 2019-12-08 11:44:34
问题 I'm trying to send an .jpeg image from Android using Ksoap2 however everything that I've tried I get a error saying "Cannot Serialize" Here's what I'm doing: ByteArrayOutputStream out = new ByteArrayOutputStream(); bitmap.compress(CompressFormat.JPEG, 100, out); byte[] raw = out.toByteArray(); String encodedImage = Base64.encodeToString(raw, Base64.DEFAULT); SoapObject request = new SoapObject("http://tempuri.org/", "sendImage"); request.addProperty("image", out); SoapSerializationEnvelope

wsdl Soap request format for android

时光怂恿深爱的人放手 提交于 2019-12-08 10:44:24
问题 I am trying to access web services from Android using ksoap2. Soap request send from my android emulator is like, <v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"> <v:Header /> <v:Body> <Login xmlns="http://xxx.com/" id="o0" c:root="1"> <MyLoginCredentials i:type="d:anyType"> <Email i:type="d:string">asdf@asd.com</Email> <Password i

Passing string via web service call using ksoap generating warnings

只愿长相守 提交于 2019-12-08 10:30:12
问题 I have implemented an Android code that calls a SOAP web service. The web service takes a String parameter in the form "abc#bcd#efg#". When I pass such a String I get warnings as follows: Note this: ArrayList items2 = new ArrayList(); From logcat: 11-15 17:44:35.511: INFO/System.out(304): arr2 is ann 11-15 17:44:35.511: INFO/System.out(304): [ann] 11-15 17:44:35.511: INFO/System.out(304): absent students are 11-15 17:44:35.511: INFO/System.out(304): ann# 11-15 17:44:35.511: INFO/System.out

What sessionid/cookie information does asmx expect in the header?

跟風遠走 提交于 2019-12-08 10:04:47
问题 I'm saving http header cookie/sessionid information when calling a login webmethod so I can send it back on subsequent webmethod calls secured by formsauthentication. I think I just need to know the proper header values to save so and send them back. I'm calling these services from an android app using ksoap2. When I step through the code when calling login. I see two Set-Cookie header items: Set-Cookie ASP.NET_SessionId=wblzzrtfmli4blku2dslw5iw; path=/; HttpOnly Set-Cookie .ASPXAUTH

Android Ksoap get a list array of class from webservice

白昼怎懂夜的黑 提交于 2019-12-08 09:41:40
问题 i am developing an android application to get a list of class from wevservice the method of webservice is like List<mytable> GetAllmytableData(); But i cant cast that data in my mytable class. i create a mytable class as http://seesharpgears.blogspot.com/2010/10/ksoap-android-web-service-tutorial-with.html this link suggested. also applied kvm serialization in myclass to cast data. but always getting getting java.lang.ClassCastException: org.ksoap2.serialization.SoapObject error. Data i

ksoap session web service

无人久伴 提交于 2019-12-08 09:33:39
问题 How can i maintain the session state using ksoap? I need a way to receive and send the unique SessionID from the asp.net web service. So i wrote a simple web service, but the result is always 1.... [ScriptMethod] [WebMethod(EnableSession = true)] public string Calculate() { if (Session["example"] == null) { Session["example"] = 0; } int r = Convert.ToInt32(Session["example"]); r = r + 1; Session["example"] = r; return Session["example"].ToString(); } I know that i somehow need to get the

calling magento web service from android client using kSoap2

梦想的初衷 提交于 2019-12-08 01:46:56
问题 i am trying to access a magento web service from a android client.which should return a session id.i hav already done this uing java client using apache and am successful in calling the method. How ever i am getting xmlpullparser exception when trying with android client as: 10-24 15:25:44.409: WARN/System.err(277): org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://www.w3.org/2001/12/soap-envelope}Envelope (position:START_TAG @2:327 in java.io.InputStreamReader@44ee2268) well

XML parsing using kasoap2-Android

一个人想着一个人 提交于 2019-12-07 17:18:31
问题 i have difficulties parsing this structure xml: <Publications> <Publication> <PublicationID>1</PublicationID> <PublisherID>1</PublisherID> <Date>2012-03-28 13:39:04</Date> </Publication> <Publication> <PublicationID>2</PublicationID> <PublisherID>1</PublisherID> <Date>2012-01-23 10:00:03</Date> </Publication> </Publications> Maybe some one could give me some ides how to parse it ? My request looks: String method_name = "GetPublications"; // creating new SoapObject soap = GetSoapObject(method

How to make the SOAP request

拈花ヽ惹草 提交于 2019-12-07 16:42:50
问题 I am making a SOAP request in Android. What exactly I want to achieve is: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/"> <soap:Header/> <soap:Body> <tem:GeneratePin> <tem:sEmail>xyz@abc.com</tem:sEmail> <tem:sFlage>true</tem:sFlage> </tem:GeneratePin> </soap:Body> </soap:Envelope> but I am getting: <v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://www.w3.org/2003/05