Package org.ksoap2.serialization

Examples of org.ksoap2.serialization.SoapSerializationEnvelope


      }
    }

    HttpTransportSE httpTransport = new HttpTransportSE(url);

    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);

      out.println(soapEnvelope.getResult());

      return 1;
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here


        endpoint = host + servicePath;

        httpTransport = new HttpTransportSE(endpoint);
        httpTransport.debug = bDebug;
       
        soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER12);
        new MarshalHashtable().register(soapEnvelope);
        new MarshalBase64().register(soapEnvelope);
    }
View Full Code Here

                }
                return cacheResult;
            }
        }
        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);
View Full Code Here

  void setup() throws Exception {
    ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();

    try {
      soapServlet = new ServicesServlet();
      SoapSerializationEnvelope envelope = soapServlet.getEnvelope();
      new MarshalHashtable().register(envelope);
      new MarshalBase64().register(envelope);

      logInfo("SOAP server started.");
      webApp = new WebApp(getWebAppDescriptor());
View Full Code Here

        baseURL.append(WebApp.webAppDescriptor.context);
        return baseURL.toString();
    }
   
    public synchronized void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
        SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapSerializationEnvelope.VER12);
        new MarshalHashtable().register(envelope);
        new MarshalBase64().register(envelope);
       
        this.setEnvelope(envelope);
        super.doPost(req, res);
View Full Code Here

    try {

      SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER10);

      soapServlet = new SoapServlet();
      log.info("SOAP server started.");
      webApp = new WebApp(getWebAppDescriptor());
      webApp.start(bc);
      log.info("Web application started.");
      bc.addServiceListener(this);
View Full Code Here


  void open(String host) throws Exception {
    endpoint = host + "/soap/services/OSGiFramework";

    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";
View Full Code Here

      } else {
        //TODO
      }
    }

    HttpTransportSE httpTransport = new HttpTransportSE(url);

    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);

      out.println(soapEnvelope.getResult());

      return 1;
    } catch (Exception e) {
View Full Code Here

    public void open(String host) {
        this.host = host;
        endpoint = host + servicePath;

        httpTransport = new HttpTransportSE(endpoint);
        httpTransport.debug = bDebug;
       
        soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER12);
        new MarshalHashtable().register(soapEnvelope);
        new MarshalBase64().register(soapEnvelope);
View Full Code Here

TOP

Related Classes of org.ksoap2.serialization.SoapSerializationEnvelope

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.