android ksoap2 and jboss eap 6.2 webservice call problems
da_andrea Jun 29, 2015 6:11 AMHi 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
Aandrea
this is the call of android
public void callWS(View vv){
String NAMESPACE = "http://hello_webservice/";
String URL = "http://192.168.116.1:8080/scriptEJB/HelloWSService/HelloWSImpl?wsdl";
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");
request.addProperty(propInfo);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);
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();
e.printStackTrace();
}
txtResult.setText(str);
-
server.log.zip 5.3 KB
-
android_error.txt.zip 271 bytes
-
HelloWSImpl.wsdl.zip 774 bytes
-
HelloWSImpl.java 579 bytes