Open amolbodhare opened 6 years ago
org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG @2:7 in java.io.InputStreamReader@277fcdc5)
-While Accessing a WCF service through an Android Application it is Throwing an Exception At: transportSE.call(SOAP_ACTION,envelope);
-My Applicayion code is below:
ProgressBar pb; public static final String NAMESPACE="http://tempuri.org/"; public static final String URL="http://192.168.43.179:52492/Service.svc/soap"; public static final String SOAP_ACTION="http://tempuri.org/IService/DoWork"; public static final String METHOD_NAME="DoWork"; public int TIMEOUT=20000; String response; @Override protected String doInBackground(String... strings) { SoapObject request=new SoapObject(NAMESPACE,METHOD_NAME); SoapSerializationEnvelope envelope=new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet=true; envelope.setOutputSoapObject(request); try { HttpTransportSE transportSE=new HttpTransportSE(URL,TIMEOUT); transportSE.call(SOAP_ACTION,envelope); response= (String) envelope.getResponse(); } catch (IOException e) { response="IOException"; e.printStackTrace(); Log.e("Error",e.toString()); } catch (XmlPullParserException e) { response="XmlPullParserException"; e.printStackTrace(); Log.e("Error",e.toString()); } return response; }
org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG @2:7 in java.io.InputStreamReader@277fcdc5)
-While Accessing a WCF service through an Android Application it is Throwing an Exception At: transportSE.call(SOAP_ACTION,envelope);
-My Applicayion code is below: