ksoap2

How to determine method names and parameters in wsdl web service

心已入冬 提交于 2019-11-29 22:24:47
I have few problems with Web Services and KSoap library. I searched this topic before asking but couldn't find anything. Here is the question : I have an url like http://www.anyting.com/bulkService.wsdl but i haven't got any documentation about it. Can I determine METHOD NAME and NAMESPACE parameters just examining wsdl file. Example : http://www.webservicex.net/isbn.asmx?WSDL If it is possible, where can i found method parameters for sending request. I'm working on Android Project so I'm using KSoap2, that what i need METHOD NAME and NAMESPACE. Little question : Is myservice.wsdl url same

SOAP web service on android

自作多情 提交于 2019-11-29 16:16:46
I am am trying to connect to a SOAP web service using ksoap2 library. I have read a bunch of docs about it, but i am stuck as my request is not an ordinary one. I need to specify some headers prior to sending the request. when is use a soap client to test the webservice i also need to put this in the soap enveope header section: <SOAP-ENV:Header> <mns:AuthIn xmlns:mns="http://enablon/wsdl/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <UserInfo xsi:type="wsdlns:AuthHeader"> <EnaHomeSite xsi:type="xsd:string">sss</EnaHomeSite> <EnaUserName xsi:type="xsd:string">sadsa<

Ksoap2 Android adding Attributes to a simple property

冷暖自知 提交于 2019-11-29 16:07:05
I am trying to create a new property inside a SoapObject that will contain simple string properties with attributes to them like this: <Power Unit="kw">1500</Power> here is the code i am using for my samples below. final SoapObject powerObject= new SoapObject(namespace, "Power"); powerObject.addAttribute("Unit", getPowerUnit()); PropertyInfo powerObjectProperty = new PropertyInfo(); powerObjectProperty .setName(""); powerObjectProperty .type = String.class; powerObjectProperty .setValue(getPower()); powerObjectProperty .addProperty(powerObjectProperty); root.addSoapObject(powerObject); // this

Blackberry kSoap2 & Soap Header

心不动则不痛 提交于 2019-11-29 15:19:42
问题 Trying to specify a custom soap header. Not sure how the SoapEnvelope.headerOut propery is to be populated. My code so far? String soapAction = serviceNamespace + "/SearchCustomer"; SoapObject rpc = new SoapObject(serviceNamespace, "SearchCustomers"); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.bodyOut = rpc; envelope.dotNet = true; envelope.encodingStyle = SoapSerializationEnvelope.ENC; rpc.addProperty("searchBy", searchBy); rpc

Android Ksoap2 Setting the namespace for nested (children) types

你离开我真会死。 提交于 2019-11-29 13:08:33
I want to send an object, SBNInloggBegar , to a WCF web service. SBNInloggBegar contains the objects SBPBegar and SBPInloggning , which in turn contain a number of strings. SBPInloggning also contain SBPSubjekt , containing a number of strings. I have serialized those classes using the KvmSerializable interface. I have a function that looks like this: private String soap() { String returnString = ""; String NAMESPACE = "Sambruk"; String METHOD_NAME = "SBAInloggning"; String SOAP_ACTION = "Sambruk/AuthenticationService/SBAInloggning"; String URL = "http://exshaerpm.argentum.local/EliasTest

Ksoap2 in android cannot serialize

↘锁芯ラ 提交于 2019-11-29 13:03:29
I use ksoap2 in android to send list of numbers as string But it have error: java.lang.runtimeexception cannot serialize I search a solution to this error but result not change Can Help me please public String Send(ArrayList<String> contactlist) { try{ SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE,OPERATION_NAME); PropertyInfo pi=new PropertyInfo(); pi.setType(String.class); pi.setName("contactlist"); pi.setValue(contactlist); request.addProperty("contactlist", pi); StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode

How to create proper soap envelope (request xml) in code while using KSoap2?

喜你入骨 提交于 2019-11-29 11:40:24
This is the soap request as obtained from SoapUi by feeding the wsdl. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://wsclient.xyz.com/types/"> <soapenv:Header/> <soapenv:Body> <typ:loginserviceElement> <typ:username>test.test</typ:username> <typ:password>test123</typ:password> </typ:loginserviceElement> </soapenv:Body> </soapenv:Envelope> But the android code dumped (from logcat) the request as: <?xml version="1.0" encoding= "UTF-8" ?> <v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns

exception while using ksoap2 library for android

[亡魂溺海] 提交于 2019-11-29 10:48:05
I'm using Ksoap2 version 2.5.4 in my maven enabled android Project. Any reference to the Ksoap specific classes is throwing this exception 04-18 20:35:15.429: ERROR/dalvikvm(626): Could not find class 'org.ksoap2.serialization.SoapObject', referenced from method com.rare.Main.fetchSoapResponse 04-18 20:35:15.662: ERROR/AndroidRuntime(626): FATAL EXCEPTION: main 04-18 20:35:15.662: ERROR/AndroidRuntime(626): java.lang.NoClassDefFoundError: org.ksoap2.serialization.SoapObject 04-18 20:35:15.662: ERROR/AndroidRuntime(626): at com.rare.Main.fetchSoapResponse(Main.java:57) 04-18 20:35:15.662: ERROR

xmlpullparserexception expected: START_TAG

你说的曾经没有我的故事 提交于 2019-11-29 08:30:24
I have the following: public String searchRecipes( String searchString, int pageNumber ) throws Exception { SoapObject _client = new SoapObject( "", "searchRecipes" ); _client.addProperty("searchString", searchString); _client.addProperty("pageNumber", pageNumber); SoapSerializationEnvelope _envelope = new SoapSerializationEnvelope( SoapEnvelope.VER11 ); _envelope.bodyOut = _client; Marshal dateMarshal = new MarshalDate(); dateMarshal.register(_envelope); HttpTransportSE _ht = new HttpTransportSE(Configuration.getWsUrl()); _ht.call("", _envelope); return _envelope.getResponse().toString(); }

Android ksoap2 via https

旧街凉风 提交于 2019-11-29 08:19:28
has any one been able to connect to a soap server using ksoap2 android via https? I keep getting the error that "Hostname <###>was not verified" I'm doing AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport (URL); androidHttpTransport.call(SOAP_ACTION, envelope); apparently looking back at other ksoap which isn't for android your ment to us a different call to connect via https, but i can't find a way to do it in the android version. Anyone found a way about or know the call im ment to use? thanks for you help android ksoap2 2.5.2 is out which supports https http://code.google