Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid calling WCF service
    primarykey
    data
    text
    <p>My application is calling wcf service. First time its call &amp; list all table name then on that screen select "Download" from menu option , Its calling again service, That time its give error message :Can not serialize</p> <p><img src="https://i.stack.imgur.com/89unS.png" alt="enter image description here"></p> <p>I called Like this</p> <pre><code> public static final String APPURL = "http://192.168.1.213:7986/XontService"; private static final String METHOD_NAME = "LoadDownLoadTablesInJSON"; private static final String NAMESPACE = "http://tempuri.org/"; private static String SOAP_ACTION = "http://tempuri.org/IXontPDAService/LoadDownLoadTablesInJSON"; private static final String METHOD_NAME1 = "LoadDownLoadTablesDataJson"; private static String SOAP_ACTION1 = "http://tempuri.org/IXontPDAService/LoadDownLoadTablesDataJson"; // ksoap2 calling wcf public SoapPrimitive soapPrimitiveData(String tablename) throws IOException,XmlPullParserException { SoapPrimitive responsesData = null; SoapObject requestData = new SoapObject(NAMESPACE, METHOD_NAME1); // set System.out.println(" ------- " + strBusinessUnit + " -- "+ strExecutive + " -- " + strTerritoryCode + "mrthod : " + METHOD_NAME1); requestData.addProperty("strBusinessUnit", strBusinessUnit); requestData.addProperty("strExecutive", strExecutive); requestData.addProperty("strTableName", tablename); requestData.addProperty("strDate", new Date()); requestData.addProperty("strTerritoryCode", strTerritoryCode); requestData.addProperty("strUField1", ""); requestData.addProperty("strUField2", ""); requestData.addProperty("strUField3", ""); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope( SoapEnvelope.VER11); // put all required data into a soap// // envelope envelope.dotNet = true; envelope.setOutputSoapObject(requestData); AndroidHttpTransport httpTransport = new AndroidHttpTransport(APPURL); httpTransport.debug = true; try { httpTransport.call(SOAP_ACTION1, envelope); responsesData = (SoapPrimitive) envelope.getResponse(); System.out.println("-- responses ---- " + responsesData); } catch (SocketException ex) { ex.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } return responsesData; } </code></pre> <p>Please help ..</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload