simpligility / ksoap2-android

ksoap2-android - SOAP support for Android
http://simpligility.github.io/ksoap2-android/
Other
543 stars 247 forks source link

Soap request changes by device #133

Open hadmir opened 5 years ago

hadmir commented 5 years ago

Same request is sent as different HTTP request on 2 different phones:

Request:

SoapObject request = new SoapObject(http://server.naviservices.zmo.digitech.cz/, "getTour");
addStringProperty(request, "id", "q27uw3");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = false;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE("http:/someurl.com", 5000);
androidHttpTransport.call("http://server.naviservices.zmo.digitech.cz/getTour", envelope);

Sony device (Android 8.0) and most (all?) other phones:

<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>
        <n0:getTour id="o0" c:root="1"
            xmlns:n0="http://server.naviservices.zmo.digitech.cz/">
            <id i:type="d:string">q27uw3</id>
        </n0:getTour>
    </v:Body>
</v:Envelope>

Zebra device TC75 (Android 5.1.1):

<soap:Envelope
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:spp="http://www.wi-fi.org/specifications/hotspot2dot0/v1.0/spp">
    <soap:Header />
    <soap:Body>
        <n0:getTour id="o0" n1:root="1"
            xmlns:n0="http://server.naviservices.zmo.digitech.cz/"
            xmlns:n1="http://schemas.xmlsoap.org/soap/encoding/">
            <n0:id n3:type="n2:string"
                xmlns:n2="http://www.w3.org/2001/XMLSchema"
                xmlns:n3="http://www.w3.org/2001/XMLSchema-instance">q27uw3
            </n0:id>
        </n0:getTour>
    </soap:Body>
</soap:Envelope>