public BSBBiometricSignatureVerification( java.lang.Object paramObj, BSBExtendedSoapSerializationEnvelope __envelope) { if (paramObj == null) return; AttributeContainer inObj = (AttributeContainer) paramObj; SoapObject soapObject = (SoapObject) inObj; if (soapObject.hasProperty("dssResult")) { java.lang.Object j = soapObject.getProperty("dssResult"); this.dssResult = (BSBSignatureVerification) __envelope.get(j, BSBSignatureVerification.class); } if (soapObject.hasProperty("result")) { java.lang.Object obj = soapObject.getProperty("result"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.result = BSBEnums.BiometricVerificationResult.fromString(j.toString()); } } else if (obj != null && obj instanceof BSBEnums.BiometricVerificationResult) { this.result = (BSBEnums.BiometricVerificationResult) obj; } } if (soapObject.hasProperty("signatures")) { java.lang.Object j = soapObject.getProperty("signatures"); this.signatures = new BSBArrayOfBiometricSignatureReference(j, __envelope); } }
protected String doInBackground(Integer... params) { try { SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); SoapObject request = new SoapObject(Utilities.connection.NAMESPACE, "getuser"); request.addProperty("Reg_id", params[0]); envelope.bodyOut = request; HttpTransportSE transport = new HttpTransportSE( Utilities.connection.url + Utilities.connection.x + Utilities.connection.exs); try { transport.call( Utilities.connection.NAMESPACE + Utilities.connection.SOAP_PREFIX + "getuser", envelope); } catch (IOException e) { e.printStackTrace(); return "*"; } catch (XmlPullParserException e) { e.printStackTrace(); return "*"; } result = envelope.getResponse().toString(); if (envelope.bodyIn != null) { SoapPrimitive resultSOAP = (SoapPrimitive) ((SoapObject) envelope.bodyIn).getProperty(0); result = resultSOAP.toString(); } } catch (Exception e) { e.printStackTrace(); result = "*"; } return result; }
/** * 注册用户 * * @param name 用户名 * @param pwd 密码 * @param dept 部门 * @param tel 电话 */ protected void registerUser(String name, String pwd, String dept, String tel) { intiWebserviceStr(); // 初始化服务地址 try { // 注册 SoapObject request = new SoapObject(NameSpace, MethodName); // NameSpace // webService方法中的参数,这个根据你的webservice来,可以没有。 // 请注意,参数名称和参数类型,客户端和服务端一定要一致,否则将可能获取不到你想要的值 request.addProperty("name", name); request.addProperty("password", pwd); request.addProperty("dept", dept); request.addProperty("tel", tel); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet = true; // 访问.NET的webservice envelope.setOutputSoapObject(request); HttpTransportSE ht = new HttpTransportSE(host + webService); ht.call(soapAction, envelope); // 调用call方法,访问webservice if (envelope.getResponse() != null) { SoapPrimitive response = (SoapPrimitive) envelope.getResponse(); if ("true".equals(response.toString())) { Toast.makeText(UserRegisterActivity.this, "注册成功!", Toast.LENGTH_SHORT).show(); this.finish(); } else { Toast.makeText(UserRegisterActivity.this, "注册失败!请稍后再试!", Toast.LENGTH_SHORT).show(); } } } catch (Exception e) { Toast.makeText(UserRegisterActivity.this, "网络连接异常!" + e.getMessage(), Toast.LENGTH_SHORT) .show(); } }
public DMCreateResponse( java.lang.Object paramObj, DMExtendedSoapSerializationEnvelope __envelope) { super(paramObj, __envelope); if (paramObj == null) return; AttributeContainer inObj = (AttributeContainer) paramObj; if (inObj instanceof SoapObject) { SoapObject soapObject = (SoapObject) inObj; int size = soapObject.getPropertyCount(); for (int i0 = 0; i0 < size; i0++) { // if you have compilation error here, please use a ksoap2.jar and ExKsoap2.jar from libs // folder (in the generated zip file) PropertyInfo info = soapObject.getPropertyInfo(i0); java.lang.Object obj = info.getValue(); if (info.name.equals("object")) { if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this._object = j.toString(); } } else if (obj != null && obj instanceof String) { this._object = (String) obj; } continue; } } } }
public wsFolderWithPeople(SoapObject soapObject) { if (soapObject == null) return; if (soapObject.hasProperty("folder")) { SoapObject j = (SoapObject) soapObject.getProperty("folder"); folder = new wsFolder(j); } if (soapObject.hasProperty("people")) { SoapObject j = (SoapObject) soapObject.getProperty("people"); people = new wsPeople(j); } if (soapObject.hasProperty("peopleCode")) { Object obj = soapObject.getProperty("peopleCode"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; peopleCode = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { peopleCode = (Integer) obj; } } if (soapObject.hasProperty("peopleCodeSpecified")) { Object obj = soapObject.getProperty("peopleCodeSpecified"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; peopleCodeSpecified = Boolean.parseBoolean(j.toString()); } else if (obj != null && obj instanceof Boolean) { peopleCodeSpecified = (Boolean) obj; } } }
public getFolderInfo(SoapObject soapObject) { if (soapObject == null) return; if (soapObject.hasProperty("folderRSN")) { Object obj = soapObject.getProperty("folderRSN"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; folderRSN = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { folderRSN = (Integer) obj; } } if (soapObject.hasProperty("folderRSNSpecified")) { Object obj = soapObject.getProperty("folderRSNSpecified"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; folderRSNSpecified = Boolean.parseBoolean(j.toString()); } else if (obj != null && obj instanceof Boolean) { folderRSNSpecified = (Boolean) obj; } } if (soapObject.hasProperty("displayOptions")) { SoapObject j = (SoapObject) soapObject.getProperty("displayOptions"); displayOptions = new VectorwsDisplayInfoOptionFlag(j); } }
private boolean importRouteItem(int routeId) { DatabaseHandler db = new DatabaseHandler(context); String username = ((BaseApplication) context).getUsername(); try { List<RouteItem> routeItems = db.getRouteItems(routeId); for (int i = 0; i < routeItems.size(); i++) { RouteItem routeItem = routeItems.get(i); SoapObject request = new SoapObject(Config.WEBSERVICE_NAMESPACE, Config.WEBSERVICE_METHOD_ROUTE_ITEM_IMPORT); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet = true; request.addProperty(getPropertyInfo("username", String.class, username)); request.addProperty(getPropertyInfo("routeId", Integer.class, routeItem.getRouteId())); request.addProperty(getPropertyInfo("title", String.class, routeItem.getTitle())); request.addProperty( getPropertyInfo("description", String.class, routeItem.getDescription())); request.addProperty( getPropertyInfo("address", String.class, routeItem.getAddress().getAddressLine(0))); request.addProperty( getPropertyInfo("city", String.class, routeItem.getAddress().getLocality())); request.addProperty( getPropertyInfo("country", String.class, routeItem.getAddress().getCountryName())); request.addProperty( getPropertyInfo("countryCode", String.class, routeItem.getAddress().getCountryCode())); request.addProperty( getPropertyInfo("postalCode", String.class, routeItem.getAddress().getPostalCode())); request.addProperty(getPropertyInfo("longitude", Double.class, routeItem.getLongitude())); request.addProperty(getPropertyInfo("latitude", Double.class, routeItem.getLatitude())); request.addProperty( getPropertyInfo("dateCreated", Long.class, routeItem.getDateCreated().getTime())); request.addProperty( getPropertyInfo("dateModified", Long.class, routeItem.getDateModified().getTime())); envelope.setOutputSoapObject(request); SoapPrimitive response = callWebService( Config.WEBSERVICE_URL, Config.WEBSERVICE_NAMESPACE, Config.WEBSERVICE_METHOD_ROUTE_ITEM_IMPORT, envelope); if (response != null) { db.setRouteItemImported(Integer.parseInt(response.toString())); } } } catch (Exception e) { MessageHelper.LogErrorMessage(context, LOG_TAG, e.toString()); return false; } finally { db.close(); } return true; }
public int insertarCausaRechazoRequerimiento(Requerimiento.Rechazo causaRechazoRequerimiento) { // Nombre del método del servicio Web String webMethodName = "InsertarCausaRechazoRequerimiento"; SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy'T'hh:mm:ss"); // Parseo de fechas String fechaCreacion = ""; if (causaRechazoRequerimiento.getFechaCreacion() != null) { fechaCreacion = sdf.format(causaRechazoRequerimiento.getFechaCreacion()); } Log.d(TAG, "FechaCreacion: " + fechaCreacion); // Creación del llamado al servicio web SoapObject request = new SoapObject(NAMESPACE, webMethodName); // Colocamos los parámetros al servicio web request.addProperty("texto", causaRechazoRequerimiento.getTexto()); request.addProperty("usuarioId", causaRechazoRequerimiento.getIdUsuario()); request.addProperty("fechaCreacion", fechaCreacion); request.addProperty("estadoVigente", causaRechazoRequerimiento.getEstadoVigente()); request.addProperty("sugerenciaId", causaRechazoRequerimiento.getIdReq()); // Creación del contenedor (Envelope) que incluirá el llamado SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); // Indicación que es un servicio web .NET envelope.dotNet = true; // Inclusión del llamado envelope.setOutputSoapObject(request); // Creación llamado objeto HTTP HttpTransportSE httpTransport = new HttpTransportSE(URL); try { // Invocación servicio web httpTransport.call(SOAP_ACTION + webMethodName, envelope); // Obtenemos la respuesta SoapPrimitive response = (SoapPrimitive) envelope.getResponse(); // Retorna si la inserción es correcta return Integer.parseInt(response.toString()); } catch (Exception e) { // Error en el llamado al servicio web. (Ej: no hay internet, servidor caído, etc) Log.e( TAG, "Error en llamado de servicio web (no hay internet, servidor caído, etc): " + SOAP_ACTION + webMethodName); e.printStackTrace(); } // Retorna si no se pudo insertar la causa de rechazo de requerimiento return 0; }
public VectorString(SoapObject soapObject) { if (soapObject == null) return; if (soapObject != null) { int size = soapObject.getPropertyCount(); for (int i0 = 0; i0 < size; i0++) { Object obj = soapObject.getProperty(i0); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j0 = (SoapPrimitive) soapObject.getProperty(i0); String j1 = j0.toString(); add(j1); } } } }
public VectorByte(SoapObject soapObject) { if (soapObject != null) { int size = soapObject.getPropertyCount(); for (int i0 = 0; i0 < size; i0++) { Object obj = soapObject.getProperty(i0); if (obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j0 = (SoapPrimitive) soapObject.getProperty(i0); Byte.valueOf(j0.toString()); // Byte j1=j0.toString().getBytes(); Byte j1 = Byte.valueOf(j0.toString()); add(j1); } } } }
public sendHtmlEmail(SoapObject soapObject) { if (soapObject == null) return; if (soapObject.hasProperty("toEmail")) { Object obj = soapObject.getProperty("toEmail"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; toEmail = j.toString(); } else if (obj != null && obj instanceof String) { toEmail = (String) obj; } } if (soapObject.hasProperty("fromEmail")) { Object obj = soapObject.getProperty("fromEmail"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; fromEmail = j.toString(); } else if (obj != null && obj instanceof String) { fromEmail = (String) obj; } } if (soapObject.hasProperty("ccEmail")) { Object obj = soapObject.getProperty("ccEmail"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; ccEmail = j.toString(); } else if (obj != null && obj instanceof String) { ccEmail = (String) obj; } } if (soapObject.hasProperty("subject")) { Object obj = soapObject.getProperty("subject"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; subject = j.toString(); } else if (obj != null && obj instanceof String) { subject = (String) obj; } } if (soapObject.hasProperty("body")) { Object obj = soapObject.getProperty("body"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; body = j.toString(); } else if (obj != null && obj instanceof String) { body = (String) obj; } } }
public ClientDeviceXml(Object paramObj, ExtendedSoapSerializationEnvelope __envelope) { if (paramObj == null) return; AttributeContainer inObj = (AttributeContainer) paramObj; if (inObj instanceof SoapObject) { SoapObject soapObject = (SoapObject) inObj; int size = soapObject.getPropertyCount(); for (int i0 = 0; i0 < size; i0++) { // if you have compilation error here, please use a ksoap2.jar and ExKsoap2.jar from libs // folder (in the generated zip file) PropertyInfo info = soapObject.getPropertyInfo(i0); Object obj = info.getValue(); if (info.name.equals("DeviceToken")) { if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.DeviceToken = j.toString(); } } else if (obj != null && obj instanceof String) { this.DeviceToken = (String) obj; } continue; } if (info.name.equals("DeviceType")) { if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.DeviceType = Integer.parseInt(j.toString()); } } else if (obj != null && obj instanceof Integer) { this.DeviceType = (Integer) obj; } continue; } if (info.name.equals("Id")) { if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.Id = j.toString(); } } else if (obj != null && obj instanceof String) { this.Id = (String) obj; } continue; } } } }
public static boolean invokeLoginWS(String userName, String passWord, String webMethName) { boolean loginStatus = false; // Create request SoapObject request = new SoapObject(NAMESPACE, webMethName); // Property which holds input parameters PropertyInfo unamePI = new PropertyInfo(); PropertyInfo passPI = new PropertyInfo(); // Set Username unamePI.setName("username"); // Set Value unamePI.setValue(userName); // Set dataType unamePI.setType(String.class); // Add the property to request object request.addProperty(unamePI); // Set Password passPI.setName("password"); // Set dataType passPI.setValue(passWord); // Set dataType passPI.setType(String.class); // Add the property to request object request.addProperty(passPI); // Create envelope SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); // Set output SOAP object envelope.setOutputSoapObject(request); // Create HTTP call object HttpTransportSE androidHttpTransport = new HttpTransportSE(URL); try { // Invoke web service androidHttpTransport.call(SOAP_ACTION + webMethName, envelope); // Get the response SoapPrimitive response = (SoapPrimitive) envelope.getResponse(); // Assign it to boolean variable variable loginStatus = Boolean.parseBoolean(response.toString()); } catch (Exception e) { // Assign Error Status true in static variable 'errored' CheckLoginActivity.errored = true; e.printStackTrace(); } // Return booleam to calling object return loginStatus; }
private void importLog() { DatabaseHandler db = new DatabaseHandler(context); try { List<CustomLog> logs = db.getLog(); for (int i = 0; i < logs.size(); i++) { CustomLog customLog = logs.get(i); SoapObject request = new SoapObject(Config.WEBSERVICE_NAMESPACE, Config.WEBSERVICE_METHOD_LOG_IMPORT); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet = true; request.addProperty(getPropertyInfo("logId", Integer.class, customLog.getLogId())); request.addProperty(getPropertyInfo("os", String.class, customLog.getOs())); request.addProperty(getPropertyInfo("device", String.class, customLog.getDevice())); request.addProperty(getPropertyInfo("model", String.class, customLog.getModel())); request.addProperty(getPropertyInfo("product", String.class, customLog.getProduct())); request.addProperty(getPropertyInfo("message", String.class, customLog.getMessage())); request.addProperty(getPropertyInfo("tag", String.class, customLog.getTag())); request.addProperty(getPropertyInfo("username", String.class, customLog.getUsername())); request.addProperty( getPropertyInfo("logAddedOn", Long.class, customLog.getDateCreated().getTime())); envelope.setOutputSoapObject(request); SoapPrimitive response = callWebService( Config.WEBSERVICE_URL, Config.WEBSERVICE_NAMESPACE, Config.WEBSERVICE_METHOD_LOG_IMPORT, envelope); if (response != null) { db.deleteLog(Integer.parseInt(response.toString())); } } } catch (Exception e) { MessageHelper.LogErrorMessage(context, LOG_TAG, e.toString()); } finally { db.close(); } }
private void importRoute() { DatabaseHandler db = new DatabaseHandler(context); String username = ((BaseApplication) context).getUsername(); try { List<Route> routes = db.getRoutes(); for (int i = 0; i < routes.size(); i++) { Route route = routes.get(i); SoapObject request = new SoapObject(Config.WEBSERVICE_NAMESPACE, Config.WEBSERVICE_METHOD_ROUTE_IMPORT); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet = true; request.addProperty(getPropertyInfo("username", String.class, username)); request.addProperty(getPropertyInfo("routeId", Integer.class, route.getRouteId())); request.addProperty(getPropertyInfo("title", String.class, route.getTitle())); request.addProperty(getPropertyInfo("description", String.class, route.getDescription())); request.addProperty( getPropertyInfo("dateCreated", Long.class, route.getDateCreated().getTime())); request.addProperty( getPropertyInfo("dateModified", Long.class, route.getDateModified().getTime())); envelope.setOutputSoapObject(request); SoapPrimitive response = callWebService( Config.WEBSERVICE_URL, Config.WEBSERVICE_NAMESPACE, Config.WEBSERVICE_METHOD_ROUTE_IMPORT, envelope); if (response != null) { if (importRouteItem(route.getRouteId())) db.setRouteImported(Integer.parseInt(response.toString())); } } } catch (Exception e) { MessageHelper.LogErrorMessage(context, LOG_TAG, e.toString()); } finally { db.close(); } }
public ArrayList<Prioridad> obtenerTodasPrioridadesDelBug() { // Nombre del método del servicio Web String webMethodName = "ObtenerTodasPrioridadesDelBugJSON"; // Creación del llamado al servicio web SoapObject request = new SoapObject(NAMESPACE, webMethodName); // Creación del contenedor (Envelope) que incluirá el llamado SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); // Indicación que es un servicio web .NET envelope.dotNet = true; // Inclusión del llamado envelope.setOutputSoapObject(request); // Creación llamado objeto HTTP HttpTransportSE httpTransport = new HttpTransportSE(URL); try { // Invocación servicio web httpTransport.call(SOAP_ACTION + webMethodName, envelope); // Obtenemos la respuesta SoapPrimitive response = (SoapPrimitive) envelope.getResponse(); // Conversión respuesta a un string json String jsonResponse = response.toString(); return jsonToListaPrioridadBug(jsonResponse); } catch (Exception e) { // Error en el llamado al servicio web. (Ej: no hay internet, servidor caído, etc) Log.e( TAG, "Error en llamado de servicio web (no hay internet, servidor caído, etc): " + SOAP_ACTION + webMethodName); e.printStackTrace(); } // Retorna null si no se pudo obtener el usuario return null; }
private double KliciWebServis(String izValute, String vValuto) { SoapObject Request = new SoapObject(NAMESPACE, METHOD_NAME); Request.addProperty("FromCurrency", izValute); Request.addProperty("ToCurrency", vValuto); SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); soapEnvelope.dotNet = true; soapEnvelope.setOutputSoapObject(Request); HttpTransportSE aht = new HttpTransportSE(URL); try { aht.call(SOAP_ACTION, soapEnvelope); SoapPrimitive result = (SoapPrimitive) soapEnvelope.getResponse(); return Double.parseDouble(result.toString()); } catch (Exception e) { txtView1.setText("Potrebujete dostop do interneta!!!\nnapaka: " + e.toString()); } return -888; }
public issueFolder(SoapObject soapObject) { if (soapObject == null) return; if (soapObject.hasProperty("folderRSN")) { Object obj = soapObject.getProperty("folderRSN"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; folderRSN = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { folderRSN = (Integer) obj; } } if (soapObject.hasProperty("folderRSNSpecified")) { Object obj = soapObject.getProperty("folderRSNSpecified"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; folderRSNSpecified = Boolean.parseBoolean(j.toString()); } else if (obj != null && obj instanceof Boolean) { folderRSNSpecified = (Boolean) obj; } } }
public wsValidProcess(SoapObject soapObject) { if (soapObject == null) return; if (soapObject.hasProperty("processCode")) { Object obj = soapObject.getProperty("processCode"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; processCode = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { processCode = (Integer) obj; } } if (soapObject.hasProperty("processCodeSpecified")) { Object obj = soapObject.getProperty("processCodeSpecified"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; processCodeSpecified = Boolean.parseBoolean(j.toString()); } else if (obj != null && obj instanceof Boolean) { processCodeSpecified = (Boolean) obj; } } if (soapObject.hasProperty("processDesc")) { Object obj = soapObject.getProperty("processDesc"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; processDesc = j.toString(); } else if (obj != null && obj instanceof String) { processDesc = (String) obj; } } }
public SkillDto(SoapObject soapObject) { if (soapObject == null) return; if (soapObject.hasProperty("SkillDescription")) { Object obj = soapObject.getProperty("SkillDescription"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; skillDescription = j.toString(); } else if (obj != null && obj instanceof String) { skillDescription = (String) obj; } } if (soapObject.hasProperty("SkillId")) { Object obj = soapObject.getProperty("SkillId"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; skillId = j.toString(); } else if (obj != null && obj instanceof String) { skillId = (String) obj; } } if (soapObject.hasProperty("SkillName")) { Object obj = soapObject.getProperty("SkillName"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; skillName = j.toString(); } else if (obj != null && obj instanceof String) { skillName = (String) obj; } } }
public void calculate() { final String URL = "https://api.monitoredsecurity.com/SWS/incidents.asmx?wsdl"; final String NAMESPACE = "https://www.monitoredsecurity.com/"; final String METHOD_NAME = "IncidentGetList"; final String SOAP_ACTION = "https://www.monitoredsecurity.com/IncidentGetList"; // NAMESPACE+METHOD; // String SOAP_ACTION = "http://www.w3schools.com/webservices/CelsiusToFahrenheit"; // String METHOD_NAME = "CelsiusToFahrenheit"; // String NAMESPACE = "http://www.w3schools.com/webservices/"; // String URL = "http://www.w3schools.com/webservices/tempconvert.asmx"; try { SoapObject Request = new SoapObject(NAMESPACE, METHOD_NAME); // Request.addProperty("Celsius", 33); SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); soapEnvelope.dotNet = true; soapEnvelope.setOutputSoapObject(Request); FakeX509TrustManager.allowAllSSL(); HttpTransportSE transport = new HttpTransportSE(URL); // HttpTransportSE transport = new KeepAliveHttpsTransportSE( // URL, 443, "/rpc/soap/jirasoapservice-v2", 1000); transport.call(SOAP_ACTION, soapEnvelope); SoapFault error = (SoapFault) soapEnvelope.bodyIn; System.out.println("Error message : " + error.toString()); SoapPrimitive resultString = (SoapPrimitive) soapEnvelope.getResponse(); Log.i("TAG", "Result Celsius: " + resultString.toString()); } catch (Exception ex) { Log.e("TAG", "Error: " + ex.getMessage()); } }
public QMPStudent(java.lang.Object paramObj, QMPExtendedSoapSerializationEnvelope __envelope) { if (paramObj == null) return; AttributeContainer inObj = (AttributeContainer) paramObj; SoapObject soapObject = (SoapObject) inObj; if (soapObject.hasProperty("FullName")) { java.lang.Object obj = soapObject.getProperty("FullName"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.FullName = j.toString(); } } else if (obj != null && obj instanceof String) { this.FullName = (String) obj; } } if (soapObject.hasProperty("StudentId")) { java.lang.Object obj = soapObject.getProperty("StudentId"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.StudentId = Integer.parseInt(j.toString()); } } else if (obj != null && obj instanceof Integer) { this.StudentId = (Integer) obj; } } }
public String hi(List<HeaderProperty> headers) { SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); soapEnvelope.implicitTypes = true; soapEnvelope.dotNet = true; SoapObject soapReq = new SoapObject("http://soap.api.controller.web.payjar.com/", "hi"); soapEnvelope.setOutputSoapObject(soapReq); HttpTransportSE httpTransport = new HttpTransportSE(url, timeOut); try { if (headers != null) { httpTransport.call("http://soap.api.controller.web.payjar.com/hi", soapEnvelope, headers); } else { httpTransport.call("http://soap.api.controller.web.payjar.com/hi", soapEnvelope); } Object retObj = soapEnvelope.bodyIn; if (retObj instanceof SoapFault) { SoapFault fault = (SoapFault) retObj; Exception ex = new Exception(fault.faultstring); if (eventHandler != null) eventHandler.Wsdl2CodeFinishedWithException(ex); } else { SoapObject result = (SoapObject) retObj; if (result.getPropertyCount() > 0) { Object obj = result.getProperty(0); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; String resultVariable = j.toString(); return resultVariable; } else if (obj != null && obj instanceof String) { String resultVariable = (String) obj; return resultVariable; } } } } catch (Exception e) { if (eventHandler != null) eventHandler.Wsdl2CodeFinishedWithException(e); e.printStackTrace(); } return ""; }
public String deleleAnnouncement(int announcementId) { String result = ""; OPERATION_NAME = "deleteAnnouncement"; SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE, OPERATION_NAME); // request.addProperty("announcementId", announcementId); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet = false; envelope.setOutputSoapObject(request); int Time_Out = 10000; HttpTransportSE httpTransport = new HttpTransportSE(SOAP_ADDRESS, Time_Out); try { httpTransport.call(SOAP_ACTION, envelope); SoapPrimitive response = (SoapPrimitive) envelope.getResponse(); result = response.toString(); } catch (Exception exception) { Log.e(tag, exception.toString()); } return result; }
public searchPeople(SoapObject soapObject) { if (soapObject == null) return; if (soapObject.hasProperty("criteria")) { SoapObject j = (SoapObject) soapObject.getProperty("criteria"); criteria = new VectorwsSearchCriteria(j); } if (soapObject.hasProperty("startIndex")) { Object obj = soapObject.getProperty("startIndex"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; startIndex = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { startIndex = (Integer) obj; } } if (soapObject.hasProperty("startIndexSpecified")) { Object obj = soapObject.getProperty("startIndexSpecified"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; startIndexSpecified = Boolean.parseBoolean(j.toString()); } else if (obj != null && obj instanceof Boolean) { startIndexSpecified = (Boolean) obj; } } if (soapObject.hasProperty("count")) { Object obj = soapObject.getProperty("count"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; count = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { count = (Integer) obj; } } if (soapObject.hasProperty("countSpecified")) { Object obj = soapObject.getProperty("countSpecified"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; countSpecified = Boolean.parseBoolean(j.toString()); } else if (obj != null && obj instanceof Boolean) { countSpecified = (Boolean) obj; } } if (soapObject.hasProperty("orderBy")) { SoapObject j = (SoapObject) soapObject.getProperty("orderBy"); orderBy = new VectorString(j); } }
@Override protected String doInBackground(String... arg0) { // TODO Auto-generated method stub String returnValue = "mahi"; SoapObject Request = new SoapObject(NAMESPACE, METHOD_NAME); Request.addProperty("Celsius", "35"); SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); soapEnvelope.dotNet = true; soapEnvelope.setOutputSoapObject(Request); HttpTransportSE aht = new HttpTransportSE(URL); try { aht.call(SOAP_ACTION, soapEnvelope); SoapPrimitive resultString = (SoapPrimitive) soapEnvelope.getResponse(); returnValue = resultString.toString(); } catch (Exception e) { e.printStackTrace(); } return returnValue; }
public wsValidOperator(SoapObject soapObject) { if (soapObject == null) return; if (soapObject.hasProperty("AND")) { Object obj = soapObject.getProperty("AND"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; aND = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { aND = (Integer) obj; } } if (soapObject.hasProperty("BETWEEN")) { Object obj = soapObject.getProperty("BETWEEN"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; bETWEEN = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { bETWEEN = (Integer) obj; } } if (soapObject.hasProperty("CLOSE_PARENTHESES")) { Object obj = soapObject.getProperty("CLOSE_PARENTHESES"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; cLOSE_PARENTHESES = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { cLOSE_PARENTHESES = (Integer) obj; } } if (soapObject.hasProperty("ENDS_WITH")) { Object obj = soapObject.getProperty("ENDS_WITH"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; eNDS_WITH = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { eNDS_WITH = (Integer) obj; } } if (soapObject.hasProperty("EQUAL")) { Object obj = soapObject.getProperty("EQUAL"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; eQUAL = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { eQUAL = (Integer) obj; } } if (soapObject.hasProperty("EQUAL_IGNORE_CASE")) { Object obj = soapObject.getProperty("EQUAL_IGNORE_CASE"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; eQUAL_IGNORE_CASE = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { eQUAL_IGNORE_CASE = (Integer) obj; } } if (soapObject.hasProperty("GREATER_THAN")) { Object obj = soapObject.getProperty("GREATER_THAN"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; gREATER_THAN = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { gREATER_THAN = (Integer) obj; } } if (soapObject.hasProperty("GREATER_THAN_EQUAL")) { Object obj = soapObject.getProperty("GREATER_THAN_EQUAL"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; gREATER_THAN_EQUAL = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { gREATER_THAN_EQUAL = (Integer) obj; } } if (soapObject.hasProperty("IN")) { Object obj = soapObject.getProperty("IN"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; iN = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { iN = (Integer) obj; } } if (soapObject.hasProperty("IS_NOT_NULL")) { Object obj = soapObject.getProperty("IS_NOT_NULL"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; iS_NOT_NULL = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { iS_NOT_NULL = (Integer) obj; } } if (soapObject.hasProperty("IS_NULL")) { Object obj = soapObject.getProperty("IS_NULL"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; iS_NULL = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { iS_NULL = (Integer) obj; } } if (soapObject.hasProperty("LESS_THAN")) { Object obj = soapObject.getProperty("LESS_THAN"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; lESS_THAN = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { lESS_THAN = (Integer) obj; } } if (soapObject.hasProperty("LESS_THAN_EQUAL")) { Object obj = soapObject.getProperty("LESS_THAN_EQUAL"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; lESS_THAN_EQUAL = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { lESS_THAN_EQUAL = (Integer) obj; } } if (soapObject.hasProperty("LIKE")) { Object obj = soapObject.getProperty("LIKE"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; lIKE = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { lIKE = (Integer) obj; } } if (soapObject.hasProperty("NONE")) { Object obj = soapObject.getProperty("NONE"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; nONE = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { nONE = (Integer) obj; } } if (soapObject.hasProperty("NOT_EQUAL")) { Object obj = soapObject.getProperty("NOT_EQUAL"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; nOT_EQUAL = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { nOT_EQUAL = (Integer) obj; } } if (soapObject.hasProperty("OPEN_PARENTHESES")) { Object obj = soapObject.getProperty("OPEN_PARENTHESES"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; oPEN_PARENTHESES = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { oPEN_PARENTHESES = (Integer) obj; } } if (soapObject.hasProperty("OR")) { Object obj = soapObject.getProperty("OR"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; oR = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { oR = (Integer) obj; } } if (soapObject.hasProperty("STARTS_WITH")) { Object obj = soapObject.getProperty("STARTS_WITH"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; sTARTS_WITH = Integer.parseInt(j.toString()); } else if (obj != null && obj instanceof Number) { sTARTS_WITH = (Integer) obj; } } }
public CheckSaleReqBlock1Type( AttributeContainer inObj, ExtendedSoapSerializationEnvelope envelope) { if (inObj == null) return; SoapObject soapObject = (SoapObject) inObj; if (soapObject.hasProperty("CheckAction")) { Object obj = soapObject.getProperty("CheckAction"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.CheckAction = Enums.checkActionType.fromString(j.toString()); } } else if (obj != null && obj instanceof Enums.checkActionType) { this.CheckAction = (Enums.checkActionType) obj; } } if (soapObject.hasProperty("AccountInfo")) { Object j = soapObject.getProperty("AccountInfo"); this.AccountInfo = (AccountInfoType) envelope.get(j, AccountInfoType.class); } if (soapObject.hasProperty("DataEntryMode")) { Object obj = soapObject.getProperty("DataEntryMode"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.DataEntryMode = Enums.dataEntryModeType.fromString(j.toString()); } } else if (obj != null && obj instanceof Enums.dataEntryModeType) { this.DataEntryMode = (Enums.dataEntryModeType) obj; } } if (soapObject.hasProperty("CheckType")) { Object obj = soapObject.getProperty("CheckType"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.CheckType = Enums.checkTypeType.fromString(j.toString()); } } else if (obj != null && obj instanceof Enums.checkTypeType) { this.CheckType = (Enums.checkTypeType) obj; } } if (soapObject.hasProperty("VerifyInfo")) { Object j = soapObject.getProperty("VerifyInfo"); this.VerifyInfo = (VerifyInfoType) envelope.get(j, VerifyInfoType.class); } if (soapObject.hasProperty("Amt")) { Object obj = soapObject.getProperty("Amt"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.Amt = new BigDecimal(j.toString()); } } else if (obj != null && obj instanceof BigDecimal) { this.Amt = (BigDecimal) obj; } } if (soapObject.hasProperty("SECCode")) { Object obj = soapObject.getProperty("SECCode"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.SECCode = j.toString(); } } else if (obj != null && obj instanceof String) { this.SECCode = (String) obj; } } if (soapObject.hasProperty("ConsumerInfo")) { Object j = soapObject.getProperty("ConsumerInfo"); this.ConsumerInfo = (ConsumerInfoType) envelope.get(j, ConsumerInfoType.class); } if (soapObject.hasProperty("AdditionalTxnFields")) { Object j = soapObject.getProperty("AdditionalTxnFields"); this.AdditionalTxnFields = (AdditionalTxnFieldsType) envelope.get(j, AdditionalTxnFieldsType.class); } if (soapObject.hasProperty("PaymentMethodKey")) { Object obj = soapObject.getProperty("PaymentMethodKey"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.PaymentMethodKey = j.toString(); } } else if (obj != null && obj instanceof String) { this.PaymentMethodKey = (String) obj; } } if (soapObject.hasProperty("RecurringData")) { Object j = soapObject.getProperty("RecurringData"); this.RecurringData = (RecurringDataType) envelope.get(j, RecurringDataType.class); } if (soapObject.hasProperty("TokenValue")) { Object obj = soapObject.getProperty("TokenValue"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.TokenValue = j.toString(); } } else if (obj != null && obj instanceof String) { this.TokenValue = (String) obj; } } }
public bankDepositDetails(SoapObject soapObject) { if (soapObject == null) return; if (soapObject.hasProperty("accountNumber")) { Object obj = soapObject.getProperty("accountNumber"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; accountNumber = j.toString(); } else if (obj != null && obj instanceof String) { accountNumber = (String) obj; } } if (soapObject.hasProperty("amountInCents")) { Object obj = soapObject.getProperty("amountInCents"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; amountInCents = j.toString(); } else if (obj != null && obj instanceof String) { amountInCents = (String) obj; } } if (soapObject.hasProperty("bankName")) { Object obj = soapObject.getProperty("bankName"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; bankName = j.toString(); } else if (obj != null && obj instanceof String) { bankName = (String) obj; } } if (soapObject.hasProperty("branchCode")) { Object obj = soapObject.getProperty("branchCode"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; branchCode = j.toString(); } else if (obj != null && obj instanceof String) { branchCode = (String) obj; } } if (soapObject.hasProperty("defaultPM")) { Object obj = soapObject.getProperty("defaultPM"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; defaultPM = j.toString(); } else if (obj != null && obj instanceof String) { defaultPM = (String) obj; } } if (soapObject.hasProperty("pmId")) { Object obj = soapObject.getProperty("pmId"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; pmId = j.toString(); } else if (obj != null && obj instanceof String) { pmId = (String) obj; } } }
public PosGiftCardSaleRspType( AttributeContainer inObj, ExtendedSoapSerializationEnvelope envelope) { if (inObj == null) return; SoapObject soapObject = (SoapObject) inObj; if (soapObject.hasProperty("RspCode")) { Object obj = soapObject.getProperty("RspCode"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.RspCode = Integer.parseInt(j.toString()); } } else if (obj != null && obj instanceof Integer) { this.RspCode = (Integer) obj; } } if (soapObject.hasProperty("RspText")) { Object obj = soapObject.getProperty("RspText"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.RspText = j.toString(); } } else if (obj != null && obj instanceof String) { this.RspText = (String) obj; } } if (soapObject.hasProperty("AuthCode")) { Object obj = soapObject.getProperty("AuthCode"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.AuthCode = j.toString(); } } else if (obj != null && obj instanceof String) { this.AuthCode = (String) obj; } } if (soapObject.hasProperty("BalanceAmt")) { Object obj = soapObject.getProperty("BalanceAmt"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.BalanceAmt = new BigDecimal(j.toString()); } } else if (obj != null && obj instanceof BigDecimal) { this.BalanceAmt = (BigDecimal) obj; } } if (soapObject.hasProperty("SplitTenderCardAmt")) { Object obj = soapObject.getProperty("SplitTenderCardAmt"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.SplitTenderCardAmt = new BigDecimal(j.toString()); } } else if (obj != null && obj instanceof BigDecimal) { this.SplitTenderCardAmt = (BigDecimal) obj; } } if (soapObject.hasProperty("SplitTenderBalanceDueAmt")) { Object obj = soapObject.getProperty("SplitTenderBalanceDueAmt"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.SplitTenderBalanceDueAmt = new BigDecimal(j.toString()); } } else if (obj != null && obj instanceof BigDecimal) { this.SplitTenderBalanceDueAmt = (BigDecimal) obj; } } if (soapObject.hasProperty("PointsBalanceAmt")) { Object obj = soapObject.getProperty("PointsBalanceAmt"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.PointsBalanceAmt = new BigDecimal(j.toString()); } } else if (obj != null && obj instanceof BigDecimal) { this.PointsBalanceAmt = (BigDecimal) obj; } } if (soapObject.hasProperty("Rewards")) { Object obj = soapObject.getProperty("Rewards"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.Rewards = j.toString(); } } else if (obj != null && obj instanceof String) { this.Rewards = (String) obj; } } if (soapObject.hasProperty("Notes")) { Object obj = soapObject.getProperty("Notes"); if (obj != null && obj.getClass().equals(SoapPrimitive.class)) { SoapPrimitive j = (SoapPrimitive) obj; if (j.toString() != null) { this.Notes = j.toString(); } } else if (obj != null && obj instanceof String) { this.Notes = (String) obj; } } }