Package org.ksoap2.serialization

Examples of org.ksoap2.serialization.MarshalHashtable


    return createEnvelope(request, AppContext.instance().getUserName(), AppContext.instance().getUserPassword());
  }

  public void addRequestParameter(SoapObject request, String name, Class type, Object value)
  {
    PropertyInfo param = new PropertyInfo();

    param.name = name;
    param.namespace = request.getNamespace();
    param.type = type;
    request.addProperty(param, value);
View Full Code Here


    return envelope;
  }

  public static void addRequestParameter(SoapObject request, String name, Class type, Object value)
  {
    PropertyInfo param = new PropertyInfo();
    param.name = name;
    param.namespace = request.getNamespace();
    param.type = type;
    request.addProperty(param, value);
  }
View Full Code Here

    httpTransport = new HttpTransportSE(endpoint);
    soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER10);
    httpTransport.debug = true;

    SoapObject rpc = new SoapObject("http://www.w3.org/2001/12/soap-envelope", "getBundles");
    soapEnvelope.env = "http://www.w3.org/2001/12/soap-envelope";
    soapEnvelope.bodyOut = rpc;
    httpTransport.call("getBundles", soapEnvelope);

    remoteBC = new BundleContextImpl(this);
View Full Code Here

          }
          return cacheResult;
        }
      }
      try {
        SoapObject rpc = new SoapObject("http://www.w3.org/2001/12/soap-envelope", opName);
        for (int i=0; i<params.length; i++) {
          if(bDebug) System.out.println("doCall   param " + i + " = " + params[i]);
          rpc.addProperty("item"+i, params[i]);
        }
        soapEnvelope.bodyOut = rpc;

        if(bDebug) {
          System.out.println("doCall " + opName +
View Full Code Here

    if(obj == null) {
      return null;
    }
    long[] la;
    if (obj instanceof SoapObject) {
      SoapObject so = (SoapObject) obj;
      la = new long[so.getPropertyCount()];
      for(int i = 0; i < la.length; i++) {
        la[i] = new Long(so.getProperty(i).toString()).longValue();
      }
    } else {
      la = new long[Array.getLength(obj)];
      for(int i = 0; i < la.length; i++) {
        la[i] = ((Long)Array.get(obj, i)).longValue();
View Full Code Here

    SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER10);
    httpTransport.debug = bDebug;
    soapEnvelope.env = "http://www.w3.org/2001/12/soap-envelope";

    try {
      SoapObject rpc = new SoapObject("http://www.w3.org/2001/12/soap-envelope", methodName);
      for (int i=0; i<params.length; i++) {
        if(bDebug) System.out.println("doCall   param " + i + " = " + params[i]);
        rpc.addProperty("item"+i, params[i]);
      }
      soapEnvelope.bodyOut = rpc;

      if(bDebug) System.out.println("doCall " + methodName + "(" + toDisplay(params) + ")");
      httpTransport.call(methodName, soapEnvelope);
View Full Code Here

    if(obj == null) {
      return null;
    }
    long[] la;
    if (obj instanceof SoapObject) {
      SoapObject so = (SoapObject) obj;
      la = new long[so.getPropertyCount()];
      for(int i = 0; i < la.length; i++) {
        la[i] = new Long(so.getProperty(i).toString()).longValue();
      }
    } else {
      la = new long[Array.getLength(obj)];
      for(int i = 0; i < la.length; i++) {
        la[i] = ((Long)Array.get(obj, i)).longValue();
View Full Code Here

        try {
            soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER12);
            new MarshalHashtable().register(soapEnvelope);
            new MarshalBase64().register(soapEnvelope);
           
            SoapObject rpc = new SoapObject(
                    "http://www.w3.org/2001/12/soap-envelope", opName);
           
            for (int i = 0; i < params.length; i++) {
                if (bDebug)
                    System.out.println("doCall   param " + i + " = "
                            + params[i]);
                rpc.addProperty("item" + i, params[i]);
            }
            soapEnvelope.setOutputSoapObject(rpc);
           
            if (bDebug) {
                System.out.println("doCall " + opName + "("
View Full Code Here

        if (obj == null) {
            return null;
        }
        long[] la;
        if (obj instanceof SoapObject) {
            SoapObject so = (SoapObject) obj;
            la = new long[so.getPropertyCount()];
            for (int i = 0; i < la.length; i++) {
                la[i] = new Long(so.getProperty(i).toString()).longValue();
            }
        } else {
            la = new long[Array.getLength(obj)];
            for (int i = 0; i < la.length; i++) {
                la[i] = ((Long) Array.get(obj, i)).longValue();
View Full Code Here

        if (obj == null) {
            return null;
        }
        String[] str;
        if (obj instanceof SoapObject) {
            SoapObject so = (SoapObject) obj;
            str = new String[so.getPropertyCount()];
            for (int i=0; i < str.length; i++) {
                str[i] = so.getProperty(i).toString();
            }
        } if (obj instanceof Vector) {
            Vector v = (Vector) obj;
            str = new String[v.size()];
            for (int i=0; i < str.length; i++) {
View Full Code Here

TOP

Related Classes of org.ksoap2.serialization.MarshalHashtable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.