Guest User

Untitled

a guest
Apr 6th, 2020
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.37 KB | None | 0 0
  1. sending
  2.  
  3.  
  4.   try {
  5.             SoapObject soapObject = new SoapObject(Configs.WEB_SERVICE_NAMESPACE, str);
  6.             for (int i = 0; i < list.size(); i++) {
  7.                 soapObject.addProperty(list.get(i).getName(), list.get(i).getValue());
  8.             }
  9.             SoapSerializationEnvelope soapSerializationEnvelope = new SoapSerializationEnvelope(110);
  10.             soapSerializationEnvelope.dotNet = true;
  11.             soapSerializationEnvelope.setOutputSoapObject(soapObject);
  12.             HttpTransportSE httpTransportSE = new HttpTransportSE(str2, (int) Configs.LOAD_DATA_TIMER);
  13.             httpTransportSE.call(Configs.WEB_SERVICE_NAMESPACE + str, soapSerializationEnvelope);
  14.             Object response = soapSerializationEnvelope.getResponse();
  15.             if (response != null) {
  16.                 return new String(Base64.decode(new JSONObject(response.toString()).getString("Response").getBytes()));
  17.             }
  18.             return null;
  19. for classes look here:
  20. http://kobjects.org/ksoap2/doc/api/org/ksoap2/serialization/SoapSerializationEnvelope.html
  21.  
  22. public class SoapSerializationEnvelope extends SoapEnvelope {
  23.     private static final String ANY_TYPE_LABEL = "anyType";
  24.     private static final String ARRAY_MAPPING_NAME = "Array";
  25.     private static final String ARRAY_TYPE_LABEL = "arrayType";
  26.     static final Marshal DEFAULT_MARSHAL = new DM();
  27.     private static final String HREF_LABEL = "href";
  28.     private static final String ID_LABEL = "id";
  29.     private static final String ITEM_LABEL = "item";
  30.     private static final String NIL_LABEL = "nil";
  31.     private static final String NULL_LABEL = "null";
  32.     protected static final int QNAME_MARSHAL = 3;
  33.     protected static final int QNAME_NAMESPACE = 0;
  34.     protected static final int QNAME_TYPE = 1;
  35.     private static final String ROOT_LABEL = "root";
  36.     private static final String TYPE_LABEL = "type";
  37.     static /* synthetic */ Class class$org$ksoap2$serialization$SoapObject;
  38.     protected boolean addAdornments = true;
  39.     public boolean avoidExceptionForUnknownProperty;
  40.     protected Hashtable classToQName = new Hashtable();
  41.     public boolean dotNet;
  42.     Hashtable idMap = new Hashtable();
  43.     public boolean implicitTypes;
  44.     Vector multiRef;
  45.     public Hashtable properties = new Hashtable();
  46.     protected Hashtable qNameToClass = new Hashtable();
  47.     public boolean skipNullProperties;
  48. }
Add Comment
Please, Sign In to add comment