Why same kSoap code create different HTTP request on different phones?

41 views
Skip to first unread message

Mirza Hadžič

unread,
Jul 11, 2019, 4:51:04 AM7/11/19
to ksoap2-android

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>
Reply all
Reply to author
Forward
0 new messages