ksoap2

How to query a web service via POST request in Android?

ⅰ亾dé卋堺 提交于 2019-11-27 04:01:16
问题 I am totally new to Web Feature Service (WFS) but I want to build an Android application with ksoap2-android on top of an API publishing its data via WFS. I would like to request data from the API passing them the bounding box parameter to limit the data that will be returned. Questions: How can I put the GetFeature object into the SOAP envelope? How can I use JAXBElement on the Android client? See edit from March 15, 2012 Here are some links to the API that might help to understand their

java.lang.noclassdeffounderror: org.ksoap2.serialization.SoapObject

一世执手 提交于 2019-11-27 02:09:25
I got this no class def error: org.ksoap2.serialization.SoapObject error ever since I have updated Eclipse ADT Plug in and SDK Manager. I was using ksoap2-android-assembly-2.4-jar-with-dependencies.jar as external library for KSOAP. I thought that may be deprecated so i also added 2.6.2 version from here: http://code.google.com/p/ksoap2-android/source/browse/m2-repo/com/google/code/ksoap2-android/ksoap2-android-assembly/2.6.2/ksoap2-android-assembly-2.6.2-jar-with-dependencies.jar I still get the error. I have also search for it through the site but nothing helped. Please help. Code:

Parsing ksoap2 response

佐手、 提交于 2019-11-27 01:47:14
I use a ksoap2 lib for communicating from android client with SOAP web service. Great job was done by ksoap team, but the problem is, there is no any good example how to use it correct in different aspects. For instance I get in soap response following data: anyType{ StatusSetting=anyType{Id=1; Name=Til afskrivning; LocationId=1; Editable=true; Default=true; Transcribed=false; }; StatusSetting=anyType{Id=2; Name=Afskrevet; LocationId=1; Editable=false; Default=false; Transcribed=true; }; ... } It's a complex object, or rather a collection of StatusSetting objects. When I try to get a property

KSOAP 2 Android with HTTPS

青春壹個敷衍的年華 提交于 2019-11-27 01:13:25
I am using KSOAP2 to manage SOAP in Android but it use https for the SOAP url and I am getting this error: javax.net.ssl.SSLException: Not trusted server certificate A normal error because the certificate is untrusted, but anyone knows how to workaround with this error? I can not manage the certificate because is from a other company and I don't have access to change it. Thanks I can't comment yet so i post my comments to rallat answer here. His solution works but it needs further explanations. To run ksoap2 with ssl: Put ksoap2-android-assembly-2.5.2-jar-with-dependencies.jar in a project

getting java.io.IOException: HTTP request failed, HTTP status: 404 in ksoap2 while passing xml data to soap1.2 android

一个人想着一个人 提交于 2019-11-26 23:25:34
问题 i have to pass <?xml version='1.0' encoding='utf-8' ?> <hello><username>test@test.com</username> <password>test</password></hello> to Wsdl <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl

How to create SOAP request via ksoap2

允我心安 提交于 2019-11-26 21:45:16
问题 <?xml version="1.0" encoding="UTF-8"?> <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Header/> <S:Body> <ns2:FReadStatus xmlns:ns2="http://poweb13/"> <arg0>000D6F0000</arg0> </ns2:FReadStatus> </S:Body> </S:Envelope> i'm working in an android project which i want to consume some JAX-WS. The services are made by someone else so i can't change anything of them.I want to sent the above SOAP message with this written code but the only thing i receive when call them is java

To use the tutorial in android 4.0.3 if had to work with AsynxTasc but i still dont work?

陌路散爱 提交于 2019-11-26 18:41:11
问题 I used the tutorial http://www.c-sharpcorner.com/UploadFile/88b6e5/how-to-call-web-service-in-android-using-soap/ and did some chances that it shoud work for android 4.0.3! But it still doesn't! Can someone post me a correct solution? package com.webservice; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; import android.app.Activity; import android.graphics

ksoap2 org.xmlpull.v1.xmlpullparserexception expected start_tag error

为君一笑 提交于 2019-11-26 17:35:19
Below is my code, which I have written to validate user log in credentials. The web service written using .net private static final String SOAP_ACTION = "http://tempuri.org/getCredentials"; private static final String OPERATION_NAME = "getCredentials"; private static final String WSDL_TARGET_NAMESPACE = "http://tempuri.org/"; private static final String SOAP_ADDRESS = "http://myStaticIP:portNo/WebSiteName/CommunicationInterface.asmx"; SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE, OPERATION_NAME); request.addProperty("username",Username); request.addProperty("password", Password);

How to call a WCF service using ksoap2 on android?

二次信任 提交于 2019-11-26 15:24:38
问题 Here is my code import org.ksoap2.*; import org.ksoap2.serialization.*; import org.ksoap2.transport.*; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class ksop2test extends Activity { /** Called when the activity is first created. */ private static final String METHOD_NAME = "SayHello"; // private static final String METHOD_NAME = "HelloWorld"; private static final String NAMESPACE = "http://tempuri.org"; // private static final String NAMESPACE

Parsing ksoap2 response

元气小坏坏 提交于 2019-11-26 12:28:42
问题 I use a ksoap2 lib for communicating from android client with SOAP web service. Great job was done by ksoap team, but the problem is, there is no any good example how to use it correct in different aspects. For instance I get in soap response following data: anyType{ StatusSetting=anyType{Id=1; Name=Til afskrivning; LocationId=1; Editable=true; Default=true; Transcribed=false; }; StatusSetting=anyType{Id=2; Name=Afskrevet; LocationId=1; Editable=false; Default=false; Transcribed=true; }; ...