2 Replies Latest reply on Jun 29, 2015 8:59 AM by da_andrea

    android ksoap2 and jboss eap 6.2  webservice call problems


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




        • 1. Re: android ksoap2 and jboss eap 6.2  webservice call problems

          Judging from the server.log, the issue seems to be with the soap action that you're specifying. By looking at the wsdl, I'd say you likely need to set an empty string soap action. In any case, if you can successfully invoke the endpoint with a different client, try capturing the message going on the wire and compare with the one you get when using the android client. Then try changing something in the client to achieve what you need (that is, to have the same message).

          • 2. Re: android ksoap2 and jboss eap 6.2  webservice call problems

            thank you very much for your answer .

            I used soapgui and sow that soap_action should be empty so i used the statement SOAP_ACTION = "";

            and the call from android to webservice works too


            hallo Andrea