2 Replies Latest reply on Jun 29, 2015 8:59 AM by Andrea D'Angelo

    android ksoap2 and jboss eap 6.2  webservice call problems

    Andrea D'Angelo Newbie

      Hi to all,

      i developed a simple webservice with jboss developer studio and try to call it from a simple android app with ksoap library

      the problem is that if i call the webservice from a sinmple web app with axis there is no problem.


      when i try to call the webservice from android app i recevie a warning in a log file from jboss

      and an error from android app.


      i could not understand where there is a mistake.


      thank you very much




      this is the call of android


      public void callWS(View vv){

          String NAMESPACE = "http://hello_webservice/";

         String URL = "";

          String METHOD_NAME = "hello";

          String SOAP_ACTION = "http://hello_webservice/hello";

          String str = "";

        SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);

        PropertyInfo propInfo = new PropertyInfo();

        propInfo.name = "arg0";

        propInfo.type = PropertyInfo.STRING_CLASS;

        propInfo.setValue("John Smith");


        SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);


        HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);

        try {

        androidHttpTransport.call(SOAP_ACTION, envelope);

        SoapPrimitive resultsRequestSOAP = (SoapPrimitive) envelope.getResponse();

        str = resultsRequestSOAP.toString();

        } catch (Exception e) {

        str = e.getMessage();