erickou1124 / ksoap2-android

Automatically exported from code.google.com/p/ksoap2-android
0 stars 0 forks source link

I get an error: unexpected type (position:END_DOCUMENT null@1:0 in java.io.InputStreamReader@44ef91e8) #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
When I execute line: Transport.call(SOAP_ACTION, Convert);
I get an error:   unexpected type (position:END_DOCUMENT null@1:0 in 
java.io.InputStreamReader@44ef91e8) 

My code:
try {
    Transport.setXmlVersionTag("<?xml version=\"1.0\" encoding= \"UTF-8\" ?>");
    Transport.debug = true;
    Transport.call(SOAP_ACTION, Convert);
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (XmlPullParserException e) {
    // TODO Auto-generated catch block
    tv.setText(e.getMessage()); 
    e.printStackTrace();
    }

Generated xml:
<?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:c="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:v="http://schemas.xmlsoap.org/soap/envelope/">
<v:Header />
<v:Body>
    <GetAccountData xmlns="http://tempuri.org/IBPMonlineService/" id="o0" c:root="1">
        <Count i:type="d:int">1</Count>
        <CountSpecified i:type="d:boolean">true</CountSpecified>
    </GetAccountData>
</v:Body>
</v:Envelope>

I think this problem -- <v:Header />

How can I delete this line in xml?

Original issue reported on code.google.com by zone.pro...@yandex.ru on 29 May 2011 at 4:49

GoogleCodeExporter commented 9 years ago
What makes you think that? It could be a null response or all sorts of other 
stuff. In any case.. most likely an issue with your code base rather than 
ksoap. Please provide more detail 

Original comment by mosa...@gmail.com on 6 Jun 2011 at 10:44

GoogleCodeExporter commented 9 years ago
Closing since no valid problem provided.

Original comment by mosa...@gmail.com on 5 Jul 2011 at 9:05