Examples of SoapObject


Examples of org.ksoap2.serialization.SoapObject

    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

Examples of org.ksoap2.serialization.SoapObject

          }
          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

Examples of org.ksoap2.serialization.SoapObject

    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

Examples of org.ksoap2.serialization.SoapObject

    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

Examples of org.ksoap2.serialization.SoapObject

    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

Examples of org.ksoap2.serialization.SoapObject

        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

Examples of org.ksoap2.serialization.SoapObject

        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

Examples of org.ksoap2.serialization.SoapObject

        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

Examples of org.ksoap2.serialization.SoapObject

  {
  }

  public SoapObject createSoapRequest(String namespace, String name)
  {
    return new SoapObject(namespace, name);
  }
View Full Code Here

Examples of org.ksoap2.serialization.SoapObject

  public List<AddressStore> listAddressStores()
  {
    WebservicesClientManager wcm = (WebservicesClientManager) Engine.instance().getManager(
            WebservicesClientManager.ID);
    List<AddressStore> res = new LinkedList();
    SoapObject request = wcm.createSoapRequest("http://aktera.iritgo.de/webservices/address",
            "listAddressStoresRequest");
    SEnvelope envelope = wcm.createEnvelopeForCurrentUser(request);

    try
    {
      Vector<Object> results = wcm.sendToCurrentServer(envelope);

      for (Object o : results.toArray())
      {
        SoapObject so = (SoapObject) o;
        AddressStore as = new AddressStore();
        as.setName(wcm.getPropertyAsString(so, "name"));
        as.setTitle(wcm.getPropertyAsString(so, "title"));
        res.add(as);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.