ksoap2

How to call a .NET web service from Blackberry Simulator?

我怕爱的太早我们不能终老 提交于 2019-11-29 05:03:09
I have to call a .NET web service ( http://192.168.1.14/CG/authentication.asmx ) from the Blackberry Simulator. Already i have done it in Android with KSOAP2, but i have no idea about how to do this in Blackberry. Can i use KSOAP2 in Blackberry? If i can please give some code snippets. Also please tell if you know any other ways to do this. I've not used KSOAP2 before but I know that you can use it for Blackberry. To call web services I use the Sun Java Wireless Toolkit (WTK) to generate stubs from your webservice's WSDL file, which should probably be http://192.168.1.14/ CG/authentication

How to pass parameter to a webservice using ksoap2?

我是研究僧i 提交于 2019-11-29 03:55:59
I'm using Eclipse IDE to develop an android app. I'm trying to connect to a .net webservice. I'm using ksoap2 version 2.3 When I'm calling a webmethod with no parameters, it works fine. When I come to pass a parameter to the webmethod, I get null (while debugging the webservice I discovered that) and I get a null from the webmethod in the client side code. Code: package com.examples.hello; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.PropertyInfo; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2

kSoap2 Android — Cast Class Exception (SoapObject)

谁都会走 提交于 2019-11-28 14:46:05
I'm currently trying to retrieve an array from my webservice by using regular Ksoap implementation. However, when trying to access this array I am getting the following logcat error: 04-27 00:27:01.772: ERROR/AndroidRuntime(530): Caused by: java.lang.RuntimeException: Unable to start activity ComponentInfo{android.waiter/android.waiter.TablesActivity}: java.lang.ClassCastException: org.ksoap2.serialization.SoapPrimitive It appears that for some reason Soap is not getting along with the way I am casting my property values. Attached is the problem code (and related methods) public static

Cannot serialize issue in KSOAP in android

和自甴很熟 提交于 2019-11-28 14:40:47
I am using SOAP services in my application,in that when i am calling SOAP services it throwing some cannot serialization problem: SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); SoapObject authentication = new SoapObject(NAMESPACE,"authentication"); PropertyInfo usrid =new PropertyInfo(); usrid.setName("LoginID"); usrid.setValue("sting"); usrid.setType(String.class); authentication.addProperty(usrid); PropertyInfo pass =new PropertyInfo(); pass.setName("Password"); pass.setValue("string"); pass.setType(String.class); authentication.addProperty(pass); request.addSoapObject

Android calling .net webservice Ksoap2

谁都会走 提交于 2019-11-28 14:38:42
I am calling a .NET webservice using ksoap2 in android and i get a response someting like this anyType{NewDataSet=anyType{string=77777}; how can i parse this. please help! This is a multidimensional array of properties, it goes like : anyType //property 0 { NewDataSet=anyType // property 0 [0] { string=77777; } }; you can parse it manually (this is java code): SoapObject yourResponseObject = (SoapObject) soapEnvelope.bodyIn; SoapObject array = (SoapObject) yourResponseObject .getProperty(0);// this is -->anyType //property 0 SoapObject NewDataSetArray= (SoapObject)array .getProperty(0);// this

android soapfault error

ぐ巨炮叔叔 提交于 2019-11-28 14:34:21
I am a begginer in android,here I have activity that use web service: SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); GetBoundData val = new GetBoundData() { }; PropertyInfo pi = new PropertyInfo(); pi.setName("GetBoundData"); pi.setValue(val); pi.setType(GetBoundData.class); request.addProperty(pi); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.setOutputSoapObject(request); Marshal floatMarshal = new MarshalFloat(); envelope.addMapping(NAMESPACE, GetBoundData.class.getSimpleName(), GetBoundData.class); floatMarshal.register

java.lang.NoClassDefFoundError: org.ksoap2.serialization.SoapSerializationEnvelope

半世苍凉 提交于 2019-11-28 14:14:59
Hai am Calling the webservice in my android application am using android version(r-18).but i got error in Soap serilization.am trying the ksoap2 version(2.5.4,2.4,2.6.4,2.5.8). Error Message; 05-07 02:20:26.920: W/dalvikvm(4852): threadid=1: thread exiting with uncaught exception (group=0x4001d888) 05-07 02:20:26.920: E/AndroidRuntime(4852): FATAL EXCEPTION: main 05-07 02:20:26.920: E/AndroidRuntime(4852): java.lang.NoClassDefFoundError: org.ksoap2.serialization.SoapSerializationEnvelope 05-07 02:20:26.920: E/AndroidRuntime(4852): at com.android.StringBuilderActivity.<init>

Connection refused when calling SOAP Webservice using Android

浪尽此生 提交于 2019-11-28 13:06:09
I developed a webservice in .net and I'm trying to call it in Android. To call the webservice I'm using ksoap2. The WDSL's URL is: http://localhost/Cidadaos_Cidade/Open.asmx?WSDL Here's the WSDL <?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://Cidadaos_Cidade/Open/" xmlns:s0="http://www.outsystems.com" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http=

BlackBerry simulator can connect to web service, but real device can't

微笑、不失礼 提交于 2019-11-28 12:53:48
I am developing BlackBerry application that connects to the web service. When I developed on simulator, I used BlackBerry MDS for simulator and everything just went fine. My application (running on simulator) can connect with my web service perfectly. Please note that the simulator and the web service are on different PCs. Now, my project is done. I tried deploying my app to the real device (BB 8520). When I used the app on the device, I found it can't connect to the web service. I did a research on the Internet and I am sure it must be due to MDS issue. It seems like I have to do something

Parse KSoap2 response in android [duplicate]

怎甘沉沦 提交于 2019-11-28 12:24:43
Possible Duplicate: Parsing ksoap2 response So I managed to call a webservice using KSoap2 in android but I can't find a way to parse the response... So here's what I receive from the webservice anyType{ WORCCategoriaSubcategoriaRecord=anyType{ssENCategoria=anyType{Id=1; Nome=Problema na rua; }; ssENSubcategoria=anyType{Id=1; Nome=Falta de acesso; Imagem=anyType{}; CategoriaId=1; }; }; WORCCategoriaSubcategoriaRecord=anyType{ssENCategoria=anyType{Id=1; Nome=Problema na rua; }; ssENSubcategoria=anyType{Id=2; Nome=Falta de Passadeira; Imagem=anyType{}; CategoriaId=1; }; }; } And here's the code