title: error occur on HttpTransportSE call method in android
body: <p>i am making one example of calling wsdl webservice made in Zend (framework of php) and i am using ksoap api(jar file) and i got this error </p>
  
  <p><code>org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG &lt;definitions name='Ccc_Core_Model_Api_Server' targetNamespace='http://gsmadmin.com/zendtest/api'&gt;@2:385 in java.io.InputStreamReader@40539078)</code>      </p>
  
  <p>i read all questions of stackoverflow related to this error, but i am not able to solve this error.</p>
  
  <p>what is the real solution of this error ?</p>
  
  <p>please help me.</p>
  
  <p>my wsdl xml file is :</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;              
  &lt;definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://gsmadmin.com/zendtest/api" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="Ccc_Core_Model_Api_Server" targetNamespace="http://gsmadmin.com/zendtest/api"&gt; 
  &lt;types&gt;             
  &lt;xsd:schema targetNamespace="http://gsmadmin.com/zendtest/api"/&gt;  
  &lt;/types&gt;    
  &lt;portType name="Ccc_Core_Model_Api_ServerPort"&gt;  
  &lt;operation name="addition"&gt;  
  &lt;documentation&gt; This method is used for addition of two numbers&lt;/documentation&gt;
  &lt;input message="tns:additionIn"/&gt;
  &lt;output message="tns:additionOut"/&gt;
  &lt;/operation&gt; 
  &lt;operation name="substraction"&gt;   
  &lt;documentation&gt; This method is used for substraction of two numbers&lt;/documentation&gt; 
  &lt;input message="tns:substractionIn"/&gt;
  &lt;output message="tns:substractionOut"/&gt;  
  &lt;/operation&gt;    
  &lt;operation name="multiple"&gt;  
  &lt;documentation&gt;This method is used for multiple of two numbers&lt;/documentation&gt;   
  &lt;input message="tns:multipleIn"/&gt; 
  &lt;output message="tns:multipleOut"/&gt;  
  &lt;/operation&gt; 
  &lt;operation name="division"&gt;   
  &lt;documentation&gt;This method is used for division of two numbers&lt;/documentation&gt;
  &lt;input message="tns:divisionIn"/&gt; 
  &lt;output message="tns:divisionOut"/&gt; 
  &lt;/operation&gt;   
  &lt;/portType&gt;  
  &lt;binding name="Ccc_Core_Model_Api_ServerBinding" type="tns:Ccc_Core_Model_Api_ServerPort"&gt;  
  &lt;soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/&gt;
  &lt;operation name="addition"&gt;  
  &lt;soap:operation soapAction="http://gsmadmin.com/zendtest/api#addition"/&gt;
  &lt;input&gt;
  &lt;soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://gsmadmin.com/zendtest/api"/&gt; 
  &lt;/input&gt; 
  &lt;output&gt; 
  &lt;soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://gsmadmin.com/zendtest/api"/&gt;  
  &lt;/output&gt;  
  &lt;/operation&gt;   
  &lt;operation name="substraction"&gt;  
  &lt;soap:operation soapAction="http://gsmadmin.com/zendtest/api#substraction"/&gt; 
  &lt;input&gt;   
  &lt;soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://gsmadmin.com/zendtest/api"/&gt;
  &lt;/input&gt;  
  &lt;output&gt;   
  &lt;soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://gsmadmin.com/zendtest/api"/&gt;  
  &lt;/output&gt;
  &lt;/operation&gt;  
  &lt;operation name="multiple"&gt; 
  &lt;soap:operation soapAction="http://gsmadmin.com/zendtest/api#multiple"/&gt;  
  &lt;input&gt;    
  &lt;soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://gsmadmin.com/zendtest/api"/&gt;
  &lt;/input&gt;   
  &lt;output&gt;  
  &lt;soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://gsmadmin.com/zendtest/api"/&gt;
  &lt;/output&gt;
  &lt;/operation&gt;   
  &lt;operation name="division"&gt;
  &lt;soap:operation soapAction="http://gsmadmin.com/zendtest/api#division"/&gt;    
  &lt;input&gt;  
  &lt;soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://gsmadmin.com/zendtest/api"/&gt;   
  &lt;/input&gt;
  &lt;output&gt;   
  &lt;soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://gsmadmin.com/zendtest/api"/&gt; 
  &lt;/output&gt;  
  &lt;/operation&gt;  
  &lt;/binding&gt;  
  &lt;service name="Ccc_Core_Model_Api_ServerService"&gt;  
  &lt;port name="Ccc_Core_Model_Api_ServerPort" binding="tns:Ccc_Core_Model_Api_ServerBinding"&gt;  
  &lt;soap:address location="http://gsmadmin.com/zendtest/api"/&gt;  
  &lt;/port&gt;  
  &lt;/service&gt;   
  &lt;message name="additionIn"&gt;   
  &lt;part name="param1" type="xsd:int"/&gt;   
  &lt;part name="param2" type="xsd:int"/&gt;  
  &lt;/message&gt; 
  &lt;message name="additionOut"&gt;  
  &lt;part name="return" type="xsd:float"/&gt;  
  &lt;/message&gt;   
  &lt;message name="substractionIn"&gt; 
  &lt;part name="param1" type="xsd:int"/&gt; 
  &lt;part name="param2" type="xsd:int"/&gt;
  &lt;/message&gt;    
  &lt;message name="substractionOut"&gt;   
  &lt;part name="return" type="xsd:float"/&gt;     
  &lt;/message&gt;     
  &lt;message name="multipleIn"&gt;     
  &lt;part name="param1" type="xsd:int"/&gt;      
  &lt;part name="param2" type="xsd:int"/&gt;
  &lt;/message&gt; 
  &lt;message name="multipleOut"&gt;   
  &lt;part name="return" type="xsd:float"/&gt;    
  &lt;/message&gt;   
  &lt;message name="divisionIn"&gt;    
  &lt;part name="param1" type="xsd:float"/&gt;  
  &lt;part name="param2" type="xsd:float"/&gt; 
  &lt;/message&gt;    
  &lt;message name="divisionOut"&gt; 
  &lt;part name="return" type="xsd:float"/&gt;  
  &lt;/message&gt;
  &lt;/definitions&gt;  
  </code></pre>
  
  <p>exception stack trace: </p>
  
  <pre><code>06-14 15:45:49.527: D/AndroidRuntime(2055): &gt;&gt;&gt;&gt;&gt;&gt; AndroidRuntime START com.android.internal.os.RuntimeInit &lt;&lt;&lt;&lt;&lt;&lt;
  06-14 15:45:49.527: D/AndroidRuntime(2055): CheckJNI is ON
  06-14 15:45:50.587: D/AndroidRuntime(2055): Calling main entry com.android.commands.pm.Pm
  06-14 15:45:50.637: D/AndroidRuntime(2055): Shutting down VM
  06-14 15:45:50.657: D/dalvikvm(2055): GC_CONCURRENT freed 101K, 71% free 297K/1024K, external 0K/0K, paused 1ms+1ms
  06-14 15:45:50.657: I/AndroidRuntime(2055): NOTE: attach of thread 'Binder Thread #3' failed
  06-14 15:45:50.669: D/jdwp(2055): Got wake-up signal, bailing out of select
  06-14 15:45:50.677: D/dalvikvm(2055): Debugger has detached; object registry had 1 entries
  06-14 15:45:51.247: D/AndroidRuntime(2065): &gt;&gt;&gt;&gt;&gt;&gt; AndroidRuntime START com.android.internal.os.RuntimeInit &lt;&lt;&lt;&lt;&lt;&lt;
  06-14 15:45:51.247: D/AndroidRuntime(2065): CheckJNI is ON
  06-14 15:45:52.147: D/AndroidRuntime(2065): Calling main entry com.android.commands.am.Am
  06-14 15:45:52.197: I/ActivityManager(61): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.phpwebservice/.PhpwebservicedemoActivity } from pid 2065
  06-14 15:45:52.267: D/AndroidRuntime(2065): Shutting down VM
  06-14 15:45:52.317: D/dalvikvm(2065): GC_CONCURRENT freed 103K, 69% free 319K/1024K, external 0K/0K, paused 2ms+1ms
  06-14 15:45:52.389: V/Adapter(1868): URL = http://gsmadmin.com/zendtest/api?wsdl
  06-14 15:45:52.389: D/jdwp(2065): Got wake-up signal, bailing out of select
  06-14 15:45:52.389: D/dalvikvm(2065): Debugger has detached; object registry had 1 entries
  06-14 15:45:52.447: V/Adapter(1868): NAMESPACE = http://gsmadmin.com/zendtest/api
  06-14 15:45:52.447: V/Adapter(1868): METHOD_NAME = addition
  06-14 15:45:52.447: V/Adapter(1868): SOAP_ACTION = http://gsmadmin.com/zendtest/api#addition
  06-14 15:45:52.447: V/Adapter(1868): request = addition{param1=10; param2=2; }
  06-14 15:45:52.487: V/Adapter(1868): param1 = 10  param2 = 2
  06-14 15:45:53.737: W/System.err(1868): org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG &lt;definitions name='Ccc_Core_Model_Api_Server' targetNamespace='http://gsmadmin.com/zendtest/api'&gt;@2:385 in java.io.InputStreamReader@40541998) 
  06-14 15:45:53.757: W/System.err(1868):     at org.kxml2.io.KXmlParser.exception(KXmlParser.java:273)
  06-14 15:45:53.757: W/System.err(1868):     at org.kxml2.io.KXmlParser.require(KXmlParser.java:1424)
  06-14 15:45:53.757: W/System.err(1868):     at org.ksoap2.SoapEnvelope.parse(SoapEnvelope.java:127)
  06-14 15:45:53.766: W/System.err(1868):     at org.ksoap2.transport.Transport.parseResponse(Transport.java:63)
  06-14 15:45:53.766: W/System.err(1868):     at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:100)
  06-14 15:45:53.766: W/System.err(1868):     at com.phpwebservice.Adapter.addition(Adapter.java:59)
  06-14 15:45:53.777: W/System.err(1868):     at com.phpwebservice.PhpwebservicedemoActivity.onCreate(PhpwebservicedemoActivity.java:53)
  06-14 15:45:53.777: W/System.err(1868):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
  06-14 15:45:53.787: W/System.err(1868):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
  06-14 15:45:53.787: W/System.err(1868):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
  06-14 15:45:53.787: W/System.err(1868):     at android.app.ActivityThread.access$1500(ActivityThread.java:117)
  06-14 15:45:53.787: W/System.err(1868):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
  06-14 15:45:53.809: W/System.err(1868):     at android.os.Handler.dispatchMessage(Handler.java:99)
  06-14 15:45:53.809: W/System.err(1868):     at android.os.Looper.loop(Looper.java:123)
  06-14 15:45:53.809: W/System.err(1868):     at android.app.ActivityThread.main(ActivityThread.java:3683)
  06-14 15:45:53.809: W/System.err(1868):     at java.lang.reflect.Method.invokeNative(Native Method)
  06-14 15:45:53.817: W/System.err(1868):     at java.lang.reflect.Method.invoke(Method.java:507)
  06-14 15:45:53.817: W/System.err(1868):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
  06-14 15:45:53.817: W/System.err(1868):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
  06-14 15:45:53.817: W/System.err(1868):     at dalvik.system.NativeStart.main(Native Method)
  06-14 15:45:53.817: V/log_tag(1868): total addition = 0.0
  06-14 15:45:54.069: I/ActivityManager(61): Displayed com.phpwebservice/.PhpwebservicedemoActivity: +1s835ms
  06-14 15:45:59.297: D/dalvikvm(126): GC_EXPLICIT freed 4K, 50% free 3003K/5895K, external 5903K/7371K, paused 63ms
  </code></pre>
  
  <p>thanks in advance</p>