Menu

#7 xsd:int not generated properly

open
nobody
None
5
2010-10-03
2010-10-03
No

public void sendSMS(java.lang.String id, java.lang.String password, int type, java.lang.String to, java.lang.String message, java.util.Calendar date) throws Exception {
SoapObject _client = new SoapObject("", "sendSMS");
_client.addProperty("id", id);
_client.addProperty("password", password);
_client.addProperty("type", type + ""); //===============> this generated code converts the variable type into a string instead of keeping an int.
// remove + "" and int is being generated.
_client.addProperty("to", to);
_client.addProperty("message", message);
_client.addProperty("date", date);
SoapSerializationEnvelope _envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
_envelope.bodyOut = _client;
AndroidHttpTransport _ht = new AndroidHttpTransport(Configuration.getWsUrl());
_ht.call("", _envelope);
}

wsdl is publicly available at http://pennytel.com/pennytelapi/services/PennyTelAPI?wsdl

Discussion


Log in to post a comment.

MongoDB Logo MongoDB